CN109474668B - CDN service switching method and device, computer equipment and storage medium - Google Patents

CDN service switching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109474668B
CN109474668B CN201811201189.5A CN201811201189A CN109474668B CN 109474668 B CN109474668 B CN 109474668B CN 201811201189 A CN201811201189 A CN 201811201189A CN 109474668 B CN109474668 B CN 109474668B
Authority
CN
China
Prior art keywords
cdn
address
sequence
alternative
preset
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.)
Active
Application number
CN201811201189.5A
Other languages
Chinese (zh)
Other versions
CN109474668A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811201189.5A priority Critical patent/CN109474668B/en
Publication of CN109474668A publication Critical patent/CN109474668A/en
Application granted granted Critical
Publication of CN109474668B publication Critical patent/CN109474668B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

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

Abstract

The invention belongs to the field of content delivery networks, and discloses a CDN service switching method, a device, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a preset CDN address, and sending a page access request according to the preset CDN address; acquiring page information returned from the preset CDN address according to the page access request; judging whether the page information is abnormal or not; if the page information is abnormal, acquiring an alternative CDN address; sequencing the alternative CDN addresses to obtain a CDN address sequence; and switching the preset CDN address according to the CDN address sequence. The CDN service switching method provided by the invention can realize that the availability of the CDN is judged from the client, thereby expanding the range of CDN disaster recovery and improving the efficiency of CDN disaster recovery.

Description

CDN service switching method and device, computer equipment and storage medium
Technical Field
The present invention belongs to the field of content delivery networks, and more particularly, to a CDN service switching method, apparatus, computer device, and storage medium.
Background
A Content Delivery Network (CDN) is a layer of intelligent virtual Network on the basis of the existing internet, which is formed by placing node servers at various places in the Network. When the page is accessed, the CDN downloads all resource packets of the page from the original service website in advance, decompresses the resource packets, and then opens the resource packets locally, so that the access speed of the page can be increased. If the original service website is accessed directly, the access speed is slow. Therefore, the availability of the CDN is guaranteed to guarantee a faster access speed.
Currently, most CDN disaster recovery schemes check whether a CDN is available through a server, and if not, take the CDN off-line. The disaster recovery refers to switching to another CDN when a CDN fails, so as to prevent the CDN from being unavailable. However, there are many possibilities of CDN faults, for example, a CDN server network fault, a CDN node fault, whether a local network is normal, a network congestion or a fault occurs at an intermediate node, a CDN node is attacked by a large flow or a CC, and the like, and a server detection method can only eliminate the case where the CDN node fails, and cannot cover other cases, so that the problem of CDN availability still cannot be completely solved, and the efficiency of CDN disaster recovery is not high.
Disclosure of Invention
The embodiment of the invention provides a CDN service switching method, a CDN service switching device, computer equipment and a storage medium, and aims to solve the problem of low CDN disaster recovery efficiency.
A CDN service switching method comprises the following steps:
acquiring a preset CDN address, and sending a page access request according to the preset CDN address;
acquiring page information returned from the preset CDN address according to the page access request;
judging whether the page information is abnormal or not;
if the page information is abnormal, obtaining alternative CDN addresses, wherein the number of the alternative CDN addresses is n, and n is a positive integer;
sequencing the n alternative CDN addresses to obtain a CDN address sequence;
and switching the preset CDN address according to the CDN address sequence.
A CDN service switching apparatus, comprising:
the device comprises a preset address acquisition module, a page access request sending module and a page access request sending module, wherein the preset address acquisition module is used for acquiring a preset CDN address and sending a page access request according to the preset CDN address;
the page information acquisition module is used for acquiring page information returned from the preset CDN address according to the page access request;
the page information judging module is used for judging whether the page information is abnormal or not;
an alternative address obtaining module, configured to obtain an alternative CDN address if the page information is abnormal, where the alternative CDN addresses are n, and n is a positive integer;
an address sequence obtaining module, configured to sequence the n candidate CDN addresses to obtain a CDN address sequence;
and the preset address switching module is used for switching the preset CDN address according to the CDN address sequence.
A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the CDN service switching method is implemented.
A computer-readable storage medium, which stores a computer program, which when executed by a processor, implements the steps of the CDN service switching method described above.
According to the CDN service switching method, the device, the computer equipment and the storage medium, the preset CDN address is obtained, and then the page access request is sent according to the preset CDN address; acquiring page information returned from a preset CDN address according to the page access request, and judging whether the returned page information is abnormal or not; if the page information is abnormal, obtaining alternative CDN addresses, and sequencing the alternative CDN addresses to obtain a CDN address sequence; and finally, switching the CDN addresses according to the CDN address sequence. The switching of the CDN address is carried out according to whether the page information obtained by the client is abnormal or not and the CDN address sequence obtained by sequencing, so that the CDN disaster recovery effect from the client is realized, the situations that the network fault of a CDN server, the local network is abnormal, a CDN node is attacked by large flow and the like cannot be detected can be avoided, the CDN disaster recovery range is expanded, and the CDN disaster recovery efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic diagram of an application environment of a CDN service switching method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a CDN service switching method according to an embodiment of the present invention;
FIG. 3 is another flowchart of a CDN service switching method according to an embodiment of the present invention;
FIG. 4 is another flowchart of a CDN service switching method according to an embodiment of the present invention;
FIG. 5 is another flowchart of a CDN service switching method according to an embodiment of the present invention;
FIG. 6 is another flowchart of a CDN service switching method according to an embodiment of the present invention;
FIG. 7 is another flowchart of a CDN service switching method according to an embodiment of the present invention;
FIG. 8 is a schematic block diagram of a CDN service switching apparatus according to an embodiment of the present invention;
fig. 9 is a schematic block diagram of an address sequence obtaining module in the CDN service switching device according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of a computer device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The CDN service switching method provided by the application can be applied to an application environment as shown in FIG. 1, wherein a client communicates with a server through a network, the server obtains a preset CDN address through the client, and then sends a page access request according to the preset CDN address; acquiring page information returned from a preset CDN address according to the page access request; judging whether the page information is abnormal or not, and if the page information is abnormal, the server side acquires an alternative CDN address; sequencing the alternative CDN addresses to obtain a CDN address sequence; and finally, switching the preset CDN address according to the CDN address sequence, so that the client sends a page access request through the switched preset CDN address. The client may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server can be implemented by an independent server or a server cluster composed of a plurality of servers.
Optionally, the CDN service switching method provided by the present application may also be applied to the client separately, where the client may be but is not limited to various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, that is, the CDN service switching method is applied to the separate client.
In an embodiment, as shown in fig. 2, a CDN service switching method is provided, which is described by taking a client as an example where the method is applied to a client separately, and includes the following steps:
s201: and acquiring a preset CDN address, and sending a page access request according to the preset CDN address.
The preset CDN address refers to a CDN address accessed by a client in a default mode. Alternatively, the preset CDN address may be preset at the client, for example, by configuring a domain name of the preset CDN address at the client.
The page access request refers to a request sent by a client to access a page resource, such as accessing a web page, transmitting a picture or downloading a file. Optionally, during initialization, the client sends a test page access request to the preset CDN address, that is, sends a test request to the preset CDN address, so as to determine whether the preset CDN address is available. The initialization is to set an application environment when the client is started. It should be understood that the client may also send a normal page access request to the preset CDN address, and determine whether the preset CDN address is available according to the returned page information.
Specifically, the client acquires a preset CDN address, then acquires a page access request according to the operation of a user, and sends the page access request to the preset CDN address for access.
S202: and obtaining page information returned from the preset CDN address according to the page access request.
It can be understood that after the client sends the page access request to the preset CDN address, the client may obtain the returned page information from the preset CDN address according to the sent page access request under the condition that the preset CDN address operates normally. The page information includes information of page resources such as a web page, a file, or a link, for example, information such as a size of the file, a picture format, or a data value of the web page. And the page information is stored in a position preset by the client.
Specifically, after sending a page access request to a preset CDN address, a client acquires page information acquired from the preset CDN address, and stores the page information in a preset storage location.
In one embodiment, step S202 further includes: if the returned page information is not received within the preset time, it is determined that the returned page information is abnormal, and step S204 is directly executed.
The preset time may be set according to actual conditions, for example, the normal return time is 2 to 10 seconds, and the preset time may be set to 10 seconds. If the returned page information is not received within the preset time, it is indicated that the preset CDN address has a fault and cannot normally return a result, and the client determines that the returned page information is abnormal.
Specifically, a waiting timer may be triggered after the client sends a page access request to the preset CDN address, and the time of waiting for the timer is compared with preset time; and if the returned page information is not received after the time of waiting the timer is longer than the preset time, the client judges that the returned page information is abnormal.
S203: and judging whether the page information is abnormal or not.
Specifically, the client may determine whether the returned page information is abnormal according to the return speed of the returned page information, whether the returned page information is error information or whether the returned page information is complete, or the like. For example, when the return speed of the returned page information is slower than the normal return speed, the returned page information is a blank value, and it can be determined that the returned page information is abnormal. For example, when the returned page information is "no page to be accessed" or an error code beginning with 200, it may be determined that the returned page information is abnormal.
S204: if the page information is abnormal, obtaining alternative CDN addresses, wherein the number of the alternative CDN addresses is n, and n is a positive integer.
Optionally, the alternative CDN address may be preset in the client, and may be implemented by configuring a domain name of n CDN addresses at the client, where n is a positive integer.
Optionally, in step S201, the client may set a preset CDN address according to a randomly selected result. For example, an identifier, such as address 1, address 2, address 3, or the like, is set for the alternative CDN address, a random algorithm is set according to the identifier, and an alternative CDN address corresponding to the identifier obtained as a result of the random algorithm is set as the preset CDN address. The preset CDN address may also be set according to the distance between the candidate CDN address and the network of the client, for example, the candidate CDN address closest to the network of the client is preferably set as the preset CDN address.
S205: and sequencing the n alternative CDN addresses to obtain a CDN address sequence.
Specifically, when the client determines that the page information obtained from the preset CDN address is abnormal, the n alternative CDN addresses are sorted to obtain a CDN address sequence. The sequencing can be performed according to indexes such as a network distance between the alternative CDN address and the client, a network delay value of the alternative CDN address or a load of the alternative CDN address, so that the alternative CDN addresses are sequenced from good to bad according to performance, and a CDN address sequence is obtained. Furthermore, the client performs switching of the preset CDN address through the CDN address sequence obtained by sequencing, so that the preset CDN address keeps an available state, the availability problem of the CDN address is solved, and the purpose of CDN disaster recovery is achieved. For example, the alternative CDN addresses are ordered from near to far according to the network distance between the alternative CDN address and the client, so that the client can preferentially access the alternative CDN address whose network distance is closest.
Optionally, the alternative CDN addresses include preset CDN addresses, and when the alternative CDN addresses are ranked, the preset CDN addresses may be ranked together, for example, the client may rank the alternative CDN addresses according to network delay values of the alternative CDN addresses, which can be understood that the ranking of the preset CDN addresses is later. It is understood that the pre-set CDN address may be excluded from the alternative CDN address.
S206: and switching the preset CDN address according to the CDN address sequence.
Specifically, the client switches the preset CDN address according to the obtained CDN address sequence, that is, switches the preset CDN address to the alternative CDN address ranked first, sets the alternative CDN address ranked first in the CDN address sequence as the preset CDN address, and the client accesses according to the switched preset CDN address.
In a specific embodiment, after the client sends the page access request through the switched preset CDN address, the step S201 is executed again; and when the client judges that the page information returned by the updated preset CDN address is normal, the step execution is finished, and a corresponding page access link is carried out. When the client determines that the page information returned by the updated preset CDN address is abnormal, the alternative CDN addresses are no longer ordered, the preset CDN addresses are directly switched to the alternative CDN addresses ordered as the second according to the CDN address order obtained last time for access, that is, the alternative CDN address ordered as the second is set as the preset CDN address, and then the step S201 is returned to. And circularly executing the steps until the page information is judged to be normal.
In a specific embodiment, when all the alternative CDN addresses are determined to be unavailable, the client sends a page access request to the original page address. Specifically, the client repeatedly executes steps S201 to S206, and if it is determined that all the alternative CDN addresses are unavailable, the client acquires an original page address, switches the preset CDN address to the original page address, and sends a page access request through the original page address.
Optionally, the client repeatedly executes steps S201 to S205 while sending the page access request to the original page address, where the client sends the simulated page access request to the preset CDN address. If one of the alternative CDN addresses is available, the alternative CDN address of the client is set as a preset CDN address, and then the original page address is switched to the preset CDN address.
Optionally, when the page information returned from the preset CDN address is normal, the page access is continued according to the preset CDN address.
In the embodiment corresponding to fig. 2, a preset CDN address is obtained, and then a page access request is sent according to the preset CDN address; acquiring page information returned from a preset CDN address according to the page access request, and judging whether the returned page information is abnormal or not; if the page information is abnormal, obtaining alternative CDN addresses, and sequencing the alternative CDN addresses to obtain a CDN address sequence; and finally, switching the CDN addresses according to the CDN address sequence. Because the switching of the CDN address is performed according to whether the page information obtained by the client is abnormal or not and the CDN address sequence obtained by sequencing, the effect of carrying out CDN disaster recovery from the client is realized, the situations that the network fault of a CDN server, the local network is abnormal, a CDN node is attacked by large flow and the like cannot be detected in the prior art can be avoided, the range of CDN disaster recovery is expanded, and the efficiency of CDN disaster recovery is improved.
In an embodiment, in step S203, that is, determining whether the page information is abnormal or not, as shown in fig. 3, the method may specifically include:
s301: and matching the page information with a preset error code.
Alternatively, the error code refers to error information with a code number of 200, and the error code can be obtained through pre-configuration. If the returned page information is the same as the error code, it indicates that the preset CDN address has a fault such as a network anomaly, an excessive load, or a large-traffic attack, and the page information cannot be normally returned.
Specifically, all error information codes may be preset at the client, and when the returned page information is acquired, the client matches the returned page information with the preset error codes. Alternatively, a regular expression may be used to determine whether the returned page information belongs to an error code at the beginning of 200 or the like. Optionally, a regular expression is used to search for matching "error code" and "200" (or other error codes such as "201") in the returned page information, and when the search matches that "error code" and "200" (or other error codes such as "201") exist at the same time, for example, "error code: 200', the client outputs a result of successful matching; if only one of the error codes or 200 (or 201 and other error codes) is searched for and matched, or no match is searched for, the client outputs the result of failed matching. Optionally, whether matching is performed may be determined according to the size of the data value corresponding to the returned page information, since the error code is relatively small, a data threshold may be set, and matching of the error code may be performed when the data value corresponding to the returned page information is smaller than the set data threshold.
S302: and if the page information is successfully matched with the preset error code, the page information is abnormal.
Specifically, if the returned page information is successfully matched with the preset error code, which indicates that the preset CDN address has a fault corresponding to the preset error code, and the page information cannot be normally returned, the client determines that the page information is abnormal. Alternatively, a preset error code may be associated with specific fault information to form a corresponding table. For example, when the preset error code is a, the corresponding fault information is a network fault of the CDN address server; when the preset error code is B, the corresponding fault information is that the CDN address is attacked by large flow, and the like. And the client returns corresponding fault information according to the matched preset error code, so that a user can know the cause of the fault. Further, a historical fault record may be formed according to the alternative CDN address, the historical fault record may be analyzed, and if the number of times of occurrence of a certain fault of a certain alternative CDN address exceeds a certain number of times, the client sends a prompt message to prompt the user to perform operations such as removing the fault from the alternative CDN address or replacing the alternative CDN address.
In the embodiment corresponding to fig. 3, by matching the page information with the preset error code, if the page information is successfully matched with the preset error code, the page information is abnormal. And judging whether the returned page information is abnormal according to a preset error code, and providing a basis for sequencing and switching whether to perform alternative CDN address. Meanwhile, whether the preset CDN address is abnormal or not is judged according to the preset error code, a conclusion can be rapidly obtained, and the judging efficiency of CDN address faults is improved.
In an embodiment, in step S203, that is, determining whether the page information is abnormal or not, as shown in fig. 4, the method may specifically include the following steps:
s401: the data value of the page information is compared with the corresponding page resource data value.
The data value of the page information refers to the size of data of the page information, such as the size of a picture or the size of a downloaded file, which is transmitted to and stored in the client. And the corresponding page resource data value refers to the size of the page resource corresponding to the page access request. Optionally, the corresponding page resource data value may be obtained by the client according to a corresponding field at the back end of the page resource, for example, when the picture of the page resource is accessed, the data value of the picture may be obtained through a "picture size" field of the page resource.
Specifically, when a page access request is sent to a preset CDN address, a client side obtains a corresponding page resource data value; and then after the preset transmission time, the client acquires the data value of the page information, and finally compares the data value of the page information with the corresponding data value of the page resource so as to judge whether the return of the page information is abnormal or not. The preset transmission time may be set according to an actual situation, and is not limited herein.
S402: and if the ratio of the data value of the page information to the corresponding page resource data value does not reach the preset threshold value, the page information is abnormal.
Specifically, the client compares the data value of the page information with the corresponding page resource data value, and if the ratio of the data value of the page information to the corresponding page resource data value does not reach a preset threshold value, it indicates that the preset CDN address may have faults such as an overload, a large-traffic attack, and a CDN server network anomaly, the client determines that the page information is abnormal. The preset threshold may be set according to actual conditions, for example, 10%, 20%, or 30%.
For example, if the preset threshold is 20%, the picture of the page resource is 1M (corresponding page resource data value), and the picture size (data value of the page information) corresponding to the page information is 100K, the ratio of the data value of the page information to the corresponding page resource data value is 100/1000 ═ 10%, which is less than 20% of the preset threshold, which indicates that there is a fault in the CDN address, and thus the client outputs the result that the page information is abnormal.
In the embodiment corresponding to fig. 4, by comparing the data value of the page information with the corresponding page resource data value, if the ratio of the data value of the page information to the corresponding page resource data value does not reach the preset threshold, the page information is abnormal. And judging whether the returned page information is abnormal or not according to the data value of the page information, and providing a basis for sequencing and switching of subsequent CDN addresses.
In one embodiment, the page information includes a Digest sequence of MD5, where the Digest sequence of MD5 refers to a hash value obtained by the MD5 Algorithm, and the MD5 Algorithm specifically refers to the MD5Message Digest Algorithm (MD5Message-Digest Algorithm), which is a cryptographic hash function that generates a 128-bit (16-byte) hash value to ensure the integrity of the information transmission. In step S203, that is, it is determined whether the page information is abnormal, as shown in fig. 5, the method may specifically include:
s501: and acquiring the MD5 standard abstract sequence corresponding to the page information.
Specifically, the MD5 standard digest sequence is provided in advance in the page resource corresponding to the page access request, and the client may obtain the MD5 standard digest sequence in the page resource through a preset CDN address, where the MD5 standard digest sequence corresponds to the page information. After sending a page access request to a preset CDN address, the client acquires an MD5 standard digest sequence corresponding to page information from the preset CDN address.
S502: and after the page information is transmitted to the client, calculating the MD5 summary sequence of the page information stored in the client to obtain an MD5 test summary sequence.
It should be understood that when the returned page information is received, the client generates an MD5 digest file corresponding to the page information at a preset storage location. Optionally, when the page information is transmitted for a preset time, or when the CDN address and the transmission window prompt of the client are completed, for example, when the download transmission window progress of the picture or file is 100%, the client considers that the transmission of the page information is completed; at this time, the client acquires the MD5 digest file stored in the client, and then recalculates the MD5 digest sequence of the MD5 digest file through the MD5 algorithm to obtain another hash value, and the hash value is used as an MD5 test digest sequence.
S503: the MD5 test digest sequence was compared to the MD5 standard digest sequence.
Specifically, after acquiring the MD5 test digest sequence, the client compares the MD5 test digest sequence with the MD5 standard digest sequence, and determines whether the two sequences are consistent. Alternatively, regular expressions may be used to determine whether the MD5 test digest sequence matches the MD5 standard digest sequence to determine whether the two sequences are consistent, or an equal formula may be used to determine whether the MD5 test digest sequence is equal to the MD5 standard digest sequence to determine whether the two sequences are consistent.
S504: if the MD5 test digest sequence is not equal to the MD5 standard digest sequence, the page information is abnormal.
Specifically, if the MD5 test digest sequence is not equal to the MD5 standard digest sequence, which indicates that the returned page information is incomplete, and the CDN address has a fault, the client determines that the page information is abnormal.
In the embodiment corresponding to fig. 5, by acquiring the MD5 standard digest sequence corresponding to the page information; after the page information is transmitted to the client, calculating an MD5 summary sequence of the page information stored in the client to obtain an MD5 test summary sequence; and comparing the MD5 test digest sequence with the MD5 standard digest sequence, wherein if the MD5 test digest sequence is not equal to the MD5 standard digest sequence, the page information is abnormal. Whether the page information is completely downloaded is judged according to the MD5 summary sequence, so that whether the CDN address is abnormal is judged, and a basis can be provided for sequencing and switching the CDN address.
In an embodiment, in step S205, that is, ordering the alternative CDN addresses to obtain a CDN address order, as shown in fig. 6, the method specifically includes the following steps:
s601: and sending a first simulated page access request according to the alternative CDN address, and acquiring the sending time and the returning time of the first simulated page access request.
The first simulated page access request is a simulated page access request sent by the client according to the alternative CDN address. The sending time of the first simulated page access request refers to the time from the client sending a request to the alternative CDN address receiving the request; the return time of the first simulated page access request refers to the time from when the client sends a request to when the client receives page information returned from the alternative CDN address.
Specifically, when the returned page information is judged to be abnormal, the client sends a first simulation page access request to each alternative CDN address according to the alternative CDN address, and then obtains sending time and returning time of the first simulation page access request of each alternative CDN address. The alternative CDN address may include a preset CDN address.
S602: and acquiring a first network distance and a first network delay value between a first simulated page access request sending address and an alternative CDN address according to the sending time and the returning time of the first simulated page access request.
Specifically, according to the sending time of the first simulated page access request, the client may obtain the network distance between the sending address (client) of the first simulated page access request and the alternative CDN address, that is, the network transmission speed multiplied by the sending time of the first simulated page access request may reach the corresponding network distance. In addition, according to the return time of the first simulated page access request, the client may obtain the network delay value of the first simulated page access request sending address (client) and the alternative CDN address. Optionally, the time returned may be taken as the network delay value. It can be understood that if there is a fault in a certain alternative CDN address, the return time of the page access request may be infinite, so a return time threshold may be set, and if the return time of the page access request of a certain alternative CDN address exceeds the return time threshold, the network delay value of the alternative CDN address is set to a larger value, for example, "999 seconds".
S603: and sequencing the alternative CDN addresses according to the size of the first network distance or the size of the first network delay value in a sequence from small to large to obtain a CDN address sequence.
Specifically, the client may sort the alternative CDN addresses in a descending order according to the first network distance to obtain a CDN address order. Or the client sorts the alternative CDN addresses according to the size of the first network delay value in a descending order to obtain a CDN address order.
In the embodiment corresponding to fig. 6, the sending time and the returning time of the first simulated page access request are obtained by sending the first simulated page access request according to the alternative CDN address; then, according to the sending time and the returning time of the first simulated page access request, a first network distance and a first network delay value between the sending address of the first simulated page access request and the alternative CDN address are obtained; and finally, sequencing the alternative CDN addresses according to the size of the first network distance or the size of the first network delay value in a sequence from small to large to obtain a CDN address sequence. The CDN address sequence is determined according to the network distance and the network delay value between the first simulated page access request sending address (client) and the alternative CDN address, actual use requirements of the client are met better, and the obtained CDN address sequence is more accurate. Meanwhile, according to the CDN address sequence determined by the embodiment, the situations that the local network abnormality of the client cannot be covered, the network fault of a CDN server or the CDN address is attacked by large flow and the like can be avoided, the usability problem of the CDN address is solved, and the disaster recovery efficiency of the CDN address is improved.
In an embodiment, in step S205, that is, ordering the alternative CDN addresses to obtain a CDN address order, as shown in fig. 7, the method specifically includes the following steps:
s701: and sending a second simulated page access request according to the alternative CDN address, and acquiring the sending time and the returning time of the second simulated page access request.
The second simulated page access request refers to a simulated page access request sent by the CDN monitoring end to the alternative CDN address. And the monitoring terminal is connected with the alternative CDN address and is used for monitoring whether the alternative CDN address is normal or not. Optionally, the client may enable the CDN monitoring end to send a simulated page access request at regular time, determine whether the alternative CDN address is normal according to page information returned by the simulated page access request, and determine whether the alternative CDN address has a fault. The sending time of the second simulated page access request refers to the time from the time when the CDN monitoring end sends the request to the time when the alternative CDN address receives the request; the return time of the second simulated page access request refers to the time from the CDN monitoring end sending the request to the CDN monitoring end receiving the page information returned from the alternative CDN address. It is understood that the monitoring end may also be integrated in the client.
Specifically, when the client determines that the returned page information is abnormal, the CDN monitoring end sends a second simulated page access request according to each CDN address, and then obtains the sending time and the returning time of the first simulated page access request for each alternative CDN address. The alternative CDN address may include a preset CDN address.
S702: and acquiring a second network distance and a second network delay value between the CDN monitoring end and the alternative CDN address according to the sending time and the returning time of the second simulated page access request.
Specifically, according to the sending time of the second simulated page access request, the client may obtain a second network distance between the CDN monitoring end and the CDN address. In addition, according to the return time of the second simulated page access request, the client can obtain a second network delay value of the CDN monitoring end and the CDN address. The process of obtaining the network distance and the network delay value is the same as that of the embodiment corresponding to fig. 6, and is not described herein again.
S703: and sequencing the alternative CDN addresses according to the size of the second network distance from small to large to obtain a first CDN address sequence.
Specifically, the client sorts the alternative CDN addresses in a descending order according to the second network distance to obtain a first CDN address order.
S704: and sequencing the alternative CDN addresses according to the size of the second network delay value and the sequence from small to large to obtain a second CDN address sequence.
Specifically, the client sorts the alternative CDN addresses in a descending order according to the size of the second network delay value, to obtain a second CDN address order.
S705: obtaining the sequence value of the alternative CDN address according to the following formula:
Ci=αAi+βBi
wherein i is the serial number of the alternative CDN address, i is a positive integer, i is less than or equal to n, CiSequential value for ith alternative CDN address, AiFirst CDN Address order for the ith alternative CDN Address, BiAnd alpha and beta are weight values of the first CDN address sequence and the second CDN address sequence respectively.
Specifically, the client substitutes the first CDN address order and the second CDN address order obtained in step S703 and step S704 into the above formula, so as to obtain a sequence value of the CDN addresses. It is understood that the sequential values are values representing sequential sizes, and may be integers or fractions. Alternatively, the weight value may be specifically set as needed, where the sum of the weight values α and β is 1.
Optionally, the first network distance and the first network delay value obtained in fig. 6 may be calculated together with the second network distance and the second network delay value in the embodiment of the present invention, that is, the calculation result of the client and the calculation result of the monitoring end are considered comprehensively.
Optionally, the CDN address order may be determined by combining other indicators of the alternative CDN addresses, for example, stability of the alternative CDN address, and the like, and only specific weights of the other indicators, the network distance, and the network delay need to be determined. The stability of the alternative CDN address may be determined by the number of times of failure of the alternative CDN address in the history data.
S706: and determining the CDN address sequence according to the sequence value of the alternative CDN address.
Specifically, the client sorts the obtained sequence values of the alternative CDN addresses in a descending order to obtain a CDN address sequence.
In the embodiment corresponding to fig. 7, a second simulated page access request is sent according to the alternative CDN address, and the sending time and the returning time of the second simulated page access request are obtained; acquiring a second network distance and a second network delay value between the CDN monitoring end and the alternative CDN address according to the sending time and the returning time of the second simulated page access request; then, sequencing the alternative CDN addresses according to the size of the second network distance from small to large in sequence to obtain a first CDN address sequence, and sequencing the alternative CDN addresses according to the size of the second network delay value from small to large in sequence to obtain a second address sequence; then, acquiring a sequence value of the alternative CDN address according to a formula; and finally, determining the CDN address sequence according to the sequence value of the alternative CDN address. The simulated page access request is sent from the CDN monitoring end to determine the sequence of the alternative CDN addresses, so that the process of ordering the alternative CDN addresses does not occupy the computer resources of the client, and the computer system performance of the client is improved. Furthermore, the formula of the embodiment of the present invention may sort the alternative CDN addresses by combining the result obtained by the client, so that the result of the sorting better conforms to the actual situation, the effectiveness of sorting the alternative CDN addresses is improved, the client obtains a stable CDN-switched address when switching according to the obtained CDN address sequence, the availability problem of the CDN addresses is solved, and the disaster recovery efficiency of the CDN is improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
In an embodiment, a CDN service switching device is provided, where the CDN service switching device corresponds to the CDN service switching method in the foregoing embodiment one to one. As shown in fig. 8, the CDN service switching device includes a preset address obtaining module 801, a page information obtaining module 802, a page information determining module 803, an alternative address obtaining module 804, an address sequence obtaining module 805, and a preset address switching module 806. The functional modules are explained in detail as follows:
the preset address obtaining module 801 is configured to obtain a preset CDN address, and send a page access request according to the preset CDN address.
A page information obtaining module 802, configured to obtain, according to the page access request, page information returned from the preset CDN address.
The page information determining module 803 is configured to determine whether the page information is abnormal.
An alternative address obtaining module 804, configured to obtain an alternative CDN address if the page information is abnormal, where the alternative CDN addresses are n, and n is a positive integer.
An address sequence obtaining module 805, configured to sequence the n candidate CDN addresses to obtain a CDN address sequence.
The preset address switching module 806 is configured to switch the preset CDN address according to the CDN address sequence.
Alternatively, the page information judgment module 803 includes a code matching unit and a first result output unit.
And the code matching unit is used for matching the page information with a preset error code.
And the first result output unit is used for judging the page information is abnormal if the page information is successfully matched with the preset error code.
Alternatively, the page information judgment module 803 includes a data value comparison unit and a second result output unit.
And the data value comparison unit is used for comparing the data value of the page information with the corresponding page resource data value.
And the second result output unit is used for determining that the page information is abnormal if the ratio of the data value of the page information to the corresponding page resource data value does not reach the preset threshold value.
Alternatively, the page information includes an MD5 digest sequence, and the page information determination module 803 includes a standard sequence acquisition unit, a test sequence acquisition unit, a sequence comparison unit, and a third result output unit.
And the standard sequence acquisition unit is used for acquiring the MD5 standard abstract sequence corresponding to the page information.
And the test sequence acquisition unit is used for calculating the MD5 summary sequence of the page information stored in the client after the page information is transmitted to the client, so as to obtain the MD5 test summary sequence.
And the sequence comparison unit is used for comparing the MD5 test digest sequence with the MD5 standard digest sequence.
And the third result output unit is used for judging that the page information is abnormal if the MD5 test summary sequence is not equal to the MD5 standard summary sequence.
Further, as shown in fig. 9, the address order acquisition module 805 includes a first time acquisition unit 901, a first index acquisition unit 902, and a first address sorting unit 903.
A first time obtaining unit 901, configured to send a first simulated page access request according to the alternative CDN address, and obtain sending time and returning time of the first simulated page access request.
A first index obtaining unit 902, configured to obtain a first network distance and a first network delay value between a sending address of the first simulated page access request and the alternative CDN address according to the sending time and the returning time of the first simulated page access request.
A first address sorting unit 903, configured to sort, according to the size of the first network distance or the size of the first network delay value, the alternative CDN addresses in a sequence from small to large, so as to obtain a CDN address sequence.
Optionally, the address sequence acquiring module 805 includes a second time acquiring unit, a second index acquiring unit, a third address sorting unit, a fourth address sorting unit, a sequence value acquiring unit, and an address sequence determining unit.
And the second time obtaining unit is used for sending a second simulated page access request according to the alternative CDN address and obtaining the sending time and the returning time of the second simulated page access request.
And the second index obtaining unit is used for obtaining a second network distance between the CDN monitoring end and the alternative CDN address and a second network delay value according to the sending time and the returning time of the second simulation page access request.
And the third address sequencing unit is used for sequencing the alternative CDN addresses according to the size of the second network distance and the sequence from small to large to obtain the sequence of the first CDN addresses.
And the fourth address sequencing unit is used for sequencing the alternative CDN addresses according to the size of the second network delay value and the sequence from small to large to obtain the second CDN address sequence.
A sequence value obtaining unit, configured to obtain a sequence value of the alternative CDN address according to the following formula:
Ci=αAi+βBi
wherein i is the serial number of the alternative CDN address, i is a positive integer, i is less than or equal to n, CiSequential value for ith alternative CDN address, AiFirst CDN Address order for the ith alternative CDN Address, BiAnd alpha and beta are weight values of the first CDN address sequence and the second CDN address sequence respectively.
And the address sequence determining unit is used for determining the CDN address sequence according to the sequence value of the alternative CDN address.
For specific limitations of the CDN service switching device, reference may be made to the above limitations on the CDN service switching method, which is not described herein again. The various modules in the CDN service switching device described above may be implemented in whole or in part by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external server through a network connection. The computer program is executed by a processor to implement a CDN service switching method.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
acquiring a preset CDN address, and sending a page access request according to the preset CDN address;
acquiring page information returned from a preset CDN address according to the page access request;
judging whether the page information is abnormal or not;
if the page information is abnormal, obtaining alternative CDN addresses, wherein the number of the alternative CDN addresses is n, and n is a positive integer;
sequencing the n alternative CDN addresses to obtain a CDN address sequence;
and switching the preset CDN address according to the CDN address sequence.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a preset CDN address, and sending a page access request according to the preset CDN address;
acquiring page information returned from a preset CDN address according to the page access request;
judging whether the page information is abnormal or not;
if the page information is abnormal, obtaining alternative CDN addresses, wherein the number of the alternative CDN addresses is n, and n is a positive integer;
sequencing the n alternative CDN addresses to obtain a CDN address sequence;
and switching the preset CDN address according to the CDN address sequence.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. A CDN service switching method is characterized by comprising the following steps:
acquiring a preset CDN address, and sending a page access request according to the preset CDN address;
acquiring page information returned from the preset CDN address according to the page access request;
judging whether the page information is abnormal or not;
if the page information is abnormal, obtaining alternative CDN addresses, wherein the number of the alternative CDN addresses is n, and n is a positive integer;
sequencing the n alternative CDN addresses to obtain a CDN address sequence;
switching the preset CDN address according to the CDN address sequence;
the sequencing the alternative CDN addresses to obtain a CDN address sequence includes:
sending a second simulated page access request according to the alternative CDN address, and acquiring the sending time and the returning time of the second simulated page access request;
acquiring a second network distance and a second network delay value between the CDN monitoring end and the alternative CDN address according to the sending time and the returning time of the second simulation page access request;
sequencing the alternative CDN addresses according to the size of the second network distance in a sequence from small to large to obtain a first CDN address sequence;
sequencing the alternative CDN addresses according to the magnitude of the second network delay value and the sequence from small to large to obtain a second CDN address sequence;
obtaining a sequence value of the alternative CDN address according to the following formula:
Ci=αAi+βBi
wherein i is the serial number of the alternative CDN address, i is a positive integer, i is less than or equal to n, CiSequential value for the ith alternative CDN address, AiThe first CDN address order for the ith alternative CDN address, BiFor the second CDN address order of the ith alternative CDN address, α and β are weight values of the first CDN address order and the second CDN address order, respectively, and the sum of the weight values α and β is 1;
and determining the CDN address sequence according to the sequence value of the alternative CDN address.
2. The CDN service switching method of claim 1, wherein the determining whether the page information is abnormal includes:
matching the page information with a preset error code;
and if the page information is successfully matched with the preset error code, the page information is abnormal.
3. The CDN service switching method of claim 1, wherein the determining whether the page information is abnormal includes:
comparing the data value of the page information with the corresponding page resource data value;
and if the ratio of the data value of the page information to the corresponding page resource data value does not reach a preset threshold value, the page information is abnormal.
4. The CDN service switching method of claim 1 wherein the page information includes an MD5 digest sequence;
the judging whether the page information is abnormal includes:
acquiring an MD5 standard abstract sequence corresponding to the page information;
after the page information is transmitted to a client, calculating an MD5 summary sequence of the page information stored in the client to obtain an MD5 test summary sequence;
comparing the MD5 test digest sequence to the MD5 standard digest sequence;
if the MD5 test digest sequence is not equal to the MD5 standard digest sequence, the page information is abnormal.
5. The CDN service switching method of claim 1, wherein the sorting the alternative CDN addresses to obtain a CDN address order comprises:
sending a first simulated page access request according to the alternative CDN address, and acquiring the sending time and the returning time of the first simulated page access request;
acquiring a first network distance and a first network delay value between a first simulation page access request sending address and the alternative CDN address according to the sending time and the returning time of the first simulation page access request;
and sequencing the alternative CDN addresses according to the size of the first network distance or the size of the first network delay value in a sequence from small to large to obtain the CDN address sequence.
6. A CDN service switching apparatus, comprising:
the device comprises a preset address acquisition module, a page access request sending module and a page access request sending module, wherein the preset address acquisition module is used for acquiring a preset CDN address and sending a page access request according to the preset CDN address;
the page information acquisition module is used for acquiring page information returned from the preset CDN address according to the page access request;
the page information judging module is used for judging whether the page information is abnormal or not;
an alternative address obtaining module, configured to obtain an alternative CDN address if the page information is abnormal, where the alternative CDN addresses are n, and n is a positive integer;
an address sequence obtaining module, configured to sequence the n candidate CDN addresses to obtain a CDN address sequence;
the preset address switching module is used for switching the preset CDN address according to the CDN address sequence;
the address sequence acquisition module comprises:
the second time obtaining unit is used for sending a second simulated page access request according to the alternative CDN address and obtaining the sending time and the returning time of the second simulated page access request;
the second index obtaining unit is used for obtaining a second network distance and a second network delay value between the CDN monitoring end and the alternative CDN address according to the sending time and the returning time of the second simulation page access request;
the third address sequencing unit is used for sequencing the alternative CDN addresses according to the size of the second network distance and the sequence from small to large to obtain a first CDN address sequence;
the fourth address sequencing unit is used for sequencing the alternative CDN addresses according to the size of the second network delay value and the sequence from small to large to obtain a second CDN address sequence;
a sequence value obtaining unit, configured to obtain a sequence value of the alternative CDN address according to the following formula:
Ci=αAi+βBi
wherein i is the serial number of the alternative CDN address, i is a positive integer, i is less than or equal to n, CiSequential value for ith alternative CDN address, AiFirst CDN Address order for the ith alternative CDN Address, BiA second CDN address sequence of the ith alternative CDN address is set, alpha and beta are weight values of the first CDN address sequence and the second CDN address sequence respectively, and the sum of the weight values alpha and beta is 1;
and the address sequence determining unit is used for determining the CDN address sequence according to the sequence value of the alternative CDN address.
7. The CDN service switching device of claim 6, wherein the address order obtaining module includes a first time obtaining unit, a first index obtaining unit, and a first address ordering unit;
the first time obtaining unit is configured to send a first simulated page access request according to the alternative CDN address, and obtain sending time and returning time of the first simulated page access request;
the first index obtaining unit is configured to obtain a first network distance and a first network delay value between the first simulated page access request sending address and the alternative CDN address according to the sending time and the returning time of the first simulated page access request;
the first address sorting unit is configured to sort the alternative CDN addresses according to a sequence from small to large according to the size of the first network distance or the size of the first network delay value, so as to obtain the CDN address sequence.
8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the CDN service switching method as recited in any one of claims 1 through 5.
9. A computer-readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the CDN service switching method as recited in any one of claims 1-5.
CN201811201189.5A 2018-10-16 2018-10-16 CDN service switching method and device, computer equipment and storage medium Active CN109474668B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811201189.5A CN109474668B (en) 2018-10-16 2018-10-16 CDN service switching method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811201189.5A CN109474668B (en) 2018-10-16 2018-10-16 CDN service switching method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109474668A CN109474668A (en) 2019-03-15
CN109474668B true CN109474668B (en) 2022-03-04

Family

ID=65664593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811201189.5A Active CN109474668B (en) 2018-10-16 2018-10-16 CDN service switching method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109474668B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977332A (en) * 2019-03-19 2019-07-05 广州品唯软件有限公司 The picture access method, apparatus and storage medium of mobile terminal
CN110071912B (en) * 2019-03-26 2021-05-04 创新先进技术有限公司 Data inspection method, device and system
CN110119290A (en) * 2019-04-12 2019-08-13 平安科技(深圳)有限公司 The spare page switching method of application program, device, computer equipment and storage medium
CN110460591B (en) * 2019-07-26 2021-11-09 南京理工大学 CDN flow abnormity detection device and method based on improved hierarchical time memory network
CN110839066B (en) * 2019-10-30 2022-07-15 金蝶软件(中国)有限公司 Data processing method and related equipment
CN111526185B (en) * 2020-04-10 2022-11-25 广东小天才科技有限公司 Data downloading method, device, system and storage medium
CN111885145A (en) * 2020-07-20 2020-11-03 北京百度网讯科技有限公司 Switching method, device, equipment and computer storage medium
CN112260853B (en) * 2020-09-17 2023-07-21 北京大米科技有限公司 Disaster recovery switching method and device, storage medium and electronic equipment
CN112615908B (en) * 2020-12-08 2023-04-18 广东荣文科技集团有限公司 Webpage processing method, electronic equipment and related product
CN112689153A (en) * 2020-12-16 2021-04-20 创盛视联数码科技(北京)有限公司 CDN node recommendation method and device, electronic equipment and storage medium
CN112787918B (en) * 2021-01-29 2022-07-26 杭州优云软件有限公司 Data center addressing and master-slave switching method based on service routing tree

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868935A (en) * 2012-08-24 2013-01-09 乐视网信息技术(北京)股份有限公司 Scheduling method for responding multiple sources in content distribution network (CDN)
CN103246721A (en) * 2013-05-03 2013-08-14 北京奇虎科技有限公司 Method and device for using browser to visit ticket booking website
CN104392008A (en) * 2014-12-19 2015-03-04 北京奇虎科技有限公司 Webpage data acquisition method, browser client end and CDN (content distribution network) server
CN104426925A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Webpage resource obtaining method and apparatus
CN104471918A (en) * 2014-03-24 2015-03-25 华为技术有限公司 Method of downloading files, device and system
CN105450675A (en) * 2016-01-25 2016-03-30 杭州施强网络科技有限公司 Method for selecting CDN service nodes through clients in streaming medium playing
CN105554125A (en) * 2015-04-24 2016-05-04 美通云动(北京)科技有限公司 Method for realizing webpage adaptation through CDN (content delivery network) and system thereof
CN107644044A (en) * 2016-07-22 2018-01-30 平安科技(深圳)有限公司 Content of pages generation method and device
CN108156013A (en) * 2016-12-02 2018-06-12 阿里巴巴集团控股有限公司 A kind of Page Service disaster recovery method, device and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170180470A1 (en) * 2015-12-21 2017-06-22 Le Holdings (Beijing) Co., Ltd. Method and electronic device for sending CDN address

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868935A (en) * 2012-08-24 2013-01-09 乐视网信息技术(北京)股份有限公司 Scheduling method for responding multiple sources in content distribution network (CDN)
CN103246721A (en) * 2013-05-03 2013-08-14 北京奇虎科技有限公司 Method and device for using browser to visit ticket booking website
CN104426925A (en) * 2013-08-21 2015-03-18 腾讯科技(深圳)有限公司 Webpage resource obtaining method and apparatus
CN104471918A (en) * 2014-03-24 2015-03-25 华为技术有限公司 Method of downloading files, device and system
CN104392008A (en) * 2014-12-19 2015-03-04 北京奇虎科技有限公司 Webpage data acquisition method, browser client end and CDN (content distribution network) server
CN105554125A (en) * 2015-04-24 2016-05-04 美通云动(北京)科技有限公司 Method for realizing webpage adaptation through CDN (content delivery network) and system thereof
CN105450675A (en) * 2016-01-25 2016-03-30 杭州施强网络科技有限公司 Method for selecting CDN service nodes through clients in streaming medium playing
CN107644044A (en) * 2016-07-22 2018-01-30 平安科技(深圳)有限公司 Content of pages generation method and device
CN108156013A (en) * 2016-12-02 2018-06-12 阿里巴巴集团控股有限公司 A kind of Page Service disaster recovery method, device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于P2P技术的CDN系统的设计与实现";王国凯;《中国优秀硕士论文全文数据库》;20120815;第1-61页 *

Also Published As

Publication number Publication date
CN109474668A (en) 2019-03-15

Similar Documents

Publication Publication Date Title
CN109474668B (en) CDN service switching method and device, computer equipment and storage medium
CN110737658B (en) Data fragment storage method, device, terminal and readable storage medium
CN109831487B (en) Fragmented file verification method and terminal equipment
CN112153170B (en) Method, device and equipment for accessing server and storage medium
US8171008B2 (en) Data retrieval
CN110727499A (en) Resource data acquisition method and device, computer equipment and storage medium
CN109586969B (en) Content distribution network disaster tolerance method and device, computer equipment and storage medium
CN103248711B (en) A kind of method of files passe and server
CN110602169B (en) Service calling method and device, computer equipment and storage medium
CN109617996B (en) File uploading and downloading method, server and computer readable storage medium
CN111399756B (en) Data storage method, data downloading method and device
CN109040191B (en) File downloading method and device, computer equipment and storage medium
CN112612618B (en) Interface current limiting method and device, computer equipment and storage medium
CN107426041B (en) Method and device for analyzing command
CN106534268B (en) Data sharing method and device
CN111212391B (en) Short message pushing method, device, equipment and readable medium
CN112948120A (en) Load balancing method, system, device and storage medium
CN111262822B (en) File storage method, device, block link point and system
CN110659151A (en) Data verification method and device and storage medium
KR20200037850A (en) Distributed data storage system
CN104994183A (en) Short network address determining method and device
CN110825330A (en) Cloud printing method, printing cloud box, system and storage medium based on file fragmentation
CN109842518B (en) Content distribution network disaster tolerance method and device, computer equipment and storage medium
CN108389124B (en) Data processing method, data processing device, computer equipment and storage medium
CN109150720B (en) Service chain message forwarding method, device, equipment and computer readable 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
GR01 Patent grant
GR01 Patent grant