CN109769040A - Content delivery network service switching method, device, equipment and storage medium - Google Patents
Content delivery network service switching method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109769040A CN109769040A CN201811535411.5A CN201811535411A CN109769040A CN 109769040 A CN109769040 A CN 109769040A CN 201811535411 A CN201811535411 A CN 201811535411A CN 109769040 A CN109769040 A CN 109769040A
- Authority
- CN
- China
- Prior art keywords
- domain name
- access
- spare
- cdn service
- designated
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000008859 change Effects 0.000 claims abstract description 16
- 230000004044 response Effects 0.000 claims description 34
- 238000012360 testing method Methods 0.000 claims description 33
- 238000004590 computer program Methods 0.000 claims description 17
- 230000004807 localization Effects 0.000 claims description 3
- 238000001514 detection method Methods 0.000 claims description 2
- 238000004891 communication Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 7
- 230000001133 acceleration Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 210000004556 brain Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 238000006386 neutralization reaction Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000006641 stabilisation Effects 0.000 description 1
- 238000011105 stabilization Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of content delivery network service switching method, device, computer equipment and storage mediums, applied to technical field of communication network, for solving the problem of that user accesses domain name appearance access failure to the CDN service of CDN service provider offer when something goes wrong.The method include that client accesses the first designated domain name, the CDN service that the first designated domain name access has the first CDN service provider to provide;If the number of the failure of the first designated domain name described in the client connected reference reaches preset threshold, then client change second designated domain name of access, the CDN service that the second designated domain name access has the second CDN service provider to provide, and the content that second designated domain name is distributed in CDN service is identical as the content that first designated domain name is distributed in CDN service.
Description
Technical field
The present invention relates to technical field of communication network more particularly to a kind of content delivery network service switching methods, dress
It sets, computer equipment and storage medium.
Background technique
Currently, many enterprises when running domain name can with more than two CDN (Content Delivery Network, i.e.,
Content distributing network) service provider cooperates, and it is the CDN service that its domain name provides by CDN service provider.As first CDN
When the CDN service that service provider provides goes wrong, needs operation maintenance personnel to be manually switched to second CDN service and provide
The CDN service that quotient provides takes CDN since the operating process of manual switching CDN service provider is cumbersome and time-consuming relatively long
There is the problem of CDN service can not provide in the small probability problem being likely to occur in business or partial region, and operation maintenance personnel is generally not
Can in time switch CDN service provider, this result in when first CDN service provider provide CDN service when something goes wrong,
User accesses domain name and is likely to the case where access failure occur, greatly affected the experience of user, is unfavorable for enterprise to domain name
Normal operation.
Therefore, the technical solution for finding a kind of CDN service that automatic switchover CDN service provider provides becomes this field skill
The problem of art personnel's urgent need to resolve.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide one kind may be implemented automatically switch CDN service provider mention
Content delivery network service switching method, device, computer equipment and the storage medium of the CDN service of confession.
A kind of content delivery network service switching method, comprising:
Access the first designated domain name, the CDN clothes that the first designated domain name access has the first CDN service provider to provide
Business;
If the number of the failure of the first designated domain name described in connected reference reaches preset threshold, the second specified domain of access is changed
Name, the CDN service that the second designated domain name access has the second CDN service provider to provide, and second designated domain name exists
The content distributed in CDN service is identical as the content that first designated domain name is distributed in CDN service.
A kind of content delivery network service switching device, comprising:
Access modules, for accessing the first designated domain name, the first designated domain name access has the first CDN service provider
The CDN service of offer;
Module is changed, if the number for the failure of the first designated domain name described in connected reference reaches preset threshold, is changed
The second designated domain name is accessed, the second designated domain name access has the CDN service of the second CDN service provider offer, and described
The content that second designated domain name is distributed in CDN service is identical as the content that first designated domain name is distributed in CDN service.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing
The computer program run on device realizes that the service of above content distribution network is cut when the processor executes the computer program
Change method.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter
Above content distribution network service switch method is realized when calculation machine program is executed by processor.
Above content distribution network service switch method, device, computer equipment and storage medium, first client visit the
One designated domain name, the CDN service that the first designated domain name access has the first CDN service provider to provide;Finally, if the visitor
The number of the failure of first designated domain name described in the connected reference of family end reaches preset threshold, then the client change access second refers to
Localization name, the CDN service that the second designated domain name access has the second CDN service provider to provide, and second specified domain
The content that name is distributed in CDN service is identical as the content that first designated domain name is distributed in CDN service.As it can be seen that this hair
It is bright to realize through change domain name the CDN service that the offer of CDN service provider is provided, it avoids first CDN service and provides
Quotient provide CDN service when something goes wrong, user access domain name occur access failure the case where, be conducive to improve user experience and
Be conducive to enterprise to the normal operation of domain name.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is an application environment schematic diagram of content delivery network service switching method in one embodiment of the invention;
Fig. 2 is a flow chart of content delivery network service switching method in one embodiment of the invention;
Fig. 3 is that content delivery network service switching method accesses test under an application environment in one embodiment of the invention
The flow diagram of domain name;
Fig. 4 is that content delivery network service switching method determines second under an application environment in one embodiment of the invention
The flow diagram of designated domain name;
Fig. 5 be in one embodiment of the invention content delivery network service switching method preset under an application environment it is spare
The flow diagram of domain name priority;
Fig. 6 is content delivery network service switching method pre- equipment under another application environment in one embodiment of the invention
With the flow diagram of domain name priority;
Fig. 7 is the structural schematic diagram of content delivery network service switching device in one embodiment of the invention;
Fig. 8 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Content delivery network service switching method provided by the present application, can be applicable in the application environment such as Fig. 1, wherein
Client is communicated by network with server.Wherein, client can be, but not limited to various personal computers, notebook electricity
Brain, smart phone, tablet computer and portable wearable device.Server can use the either multiple services of independent server
The server cluster of device composition is realized.
In one embodiment, it as shown in Fig. 2, providing a kind of content delivery network service switching method, applies in this way
It is illustrated, may include steps of for client in Fig. 1:
S101, the first designated domain name of access, the first designated domain name access have the first CDN service provider to provide
CDN service;
It is understood that client accesses the first designated domain name, first designated domain name is that access has the first CDN clothes
The CDN service that business provider provides, primarily to allowing the client that the CDN service can be used carries out acceleration service,
Improve the access speed to first designated domain name.Specifically, first designated domain name can access CDN service in advance,
When the client accesses first designated domain name, i.e., the described client is asked to the first designated domain name server sending
When asking, the CDN service that first CDN service provider provides can be with the content of the first designated domain name described in accelerated loading.Than
Such as, client accesses first shopping website, which has accessed the CDN service of the first CDN service provider offer,
So the CDN service that first service provider provides can be with the content of first shopping website of accelerated loading.
If the number of the failure of the first designated domain name described in S102, connected reference reaches preset threshold, access second is changed
Designated domain name, the CDN service that the second designated domain name access has the second CDN service provider to provide, and described second is specified
The content that domain name is distributed in CDN service is identical as the content that first designated domain name is distributed in CDN service.
It is understood that content and first designated domain name that second designated domain name is distributed in CDN service
The content distributed in CDN service is identical, this allows for the client and accesses the content and visit got after the second designated domain name
Ask content that the first designated domain name is got be it is the same, difference therein out will not be discovered using the user of the client, from
And the switching of CDN service can be completed in the case where not affecting user experience.Specifically, if the client is continuously visited
Ask that the number of the first designated domain name failure reaches preset threshold, it may be considered that first CDN service provider provides
CDN service there are failures, at this time, the client can pass through change and access second designated domain name, i.e., the described visitor
Family end issues access request to the second designated domain name server, and the CDN service that second CDN service provider provides can
With the content of the second designated domain name described in accelerated loading.For example, the number of first shopping website of connected reference failure reaches
Preset 3 times, first shopping website is the CDN service for having the first CDN service provider of access to provide, at this point, in order to allow visitor
Family end access domain name can still enjoy the acceleration of CDN service, and client can be arrived by changing the domain name of the first shopping website
Spare domain name, the spare domain name are the spare domain names of first shopping website, and with the content of first shopping website being
, accessed the second CDN service provider offer CDN service, thus client access first shopping website not at
The number of function reaches 3 times of preset times, can also benefit from CDN service and accelerates to access the service of identical content.
Further, before change accesses the second designated domain name, cause to visit to exclude described this earth fault of client
It asks domain name unsuccessful situation, needs to judge local network connection, as shown in figure 3, can also include as follows
Step:
The test domain name of S201, access preset, the test domain name can be accessed normally;
If testing domain name described in S202, successful access, the number of the failure of the first designated domain name described in connected reference is detected
Whether preset threshold is reached;
If S203, the access test domain name failure, issue the warning message about this earth fault of client;
If the number of the failure of the first designated domain name described in S204, connected reference does not reach preset threshold, described in access
First designated domain name.
For step S201, first designated domain name may be led to institute by the interference of described this earth fault of client
It states client and accesses that first designated domain name is unsuccessful, the CDN service that first CDN service provider provides can be described
Client is mistakenly considered problematic.In a particular embodiment, the domain name that can be normally accessed, the client access preset are preset
Test domain name.For example, presetting a shopping website that can be normally accessed, client can be visited the shopping website
It asks.
For step S202, it is to be understood that above-mentioned test domain name refers to be used to test local network connection
The domain name of situation, and can normally be accessed by the client.Exclude described this earth fault of client cause access domain name not at
The case where function.Specifically, if testing domain name described in the client successful access, illustrate that the local network connection of client does not have
Problematic, then whether the number for detecting the failure of the first designated domain name described in the client connected reference reaches preset threshold.Than
Such as, client access is a shopping website, and client can first attempt the content that access obtains the shopping website, if can visit
It asks the content for getting the shopping website, then illustrates not going wrong for local network connection.
For step S203, the warning message can be warning word, letter or sending sound etc., be embodied
In example, if the client accesses the test domain name failure, illustrate that the client local network connection is bad, then
The client issues the warning message about described this earth fault of client.For example, client access is a shopping network
It stands, client cannot get the content on shopping website, then illustrate that the connection of local network there is a problem, Ke Yi
Content shows the words such as letter error (mistake) or Chinese display " webpage loss " on webpage.
For step S204, in a particular embodiment, if the number of the failure of the first designated domain name described in connected reference does not have
Reach preset threshold, illustrates that the CDN service that first CDN service provider provides is normally that then the client can
To continue to access first designated domain name.For example, the number of first shopping website of connected reference failure has not reached pre-
If 3 times, first shopping website be have access the first CDN service provider provide CDN service, then client can continue
Access the shopping website.
Further, before change accesses the second designated domain name, in order to allow client that can get fast response time
The high spare domain name with stability reduces the switching between CDN service, needs to carry out priority to each spare domain name
It distinguishes, as described in Figure 4, this method can also include the following steps:
S301, preset each spare domain name is obtained, each backup domain name has been respectively connected to different CDN services and provides
The CDN service that quotient provides;
S302, the priority for obtaining each spare domain name;
S303, determine the backup domain name of highest priority in each spare domain name as the second designated domain name.
For step S301, above-mentioned spare domain name refers to multiple domain names identical with the first designated domain name content,
Multiple spare domain names are set, and each backup domain name is respectively connected to the CDN clothes that different CDN service providers provide
Business, be in order to guarantee the client first domain name access failure number reach preset times when, the visitor
Family end can change domain name of the backup domain name as next access automatically, and have corresponding CDN service provider
The CDN service of offer carries out acceleration service to the domain name.Specifically, the client can preset multiple spare domain names, work as institute
State the access of the first designated domain name it is unsuccessful when, at this time, the spare domain name can be come out by automatic change, multiple described
Spare domain name just has multiple selections, can improve the success rate for getting content, and user demand is guaranteed.For example, being equipped with standby
With domain name A, spare domain name B and spare domain name C, then the CDN service that the first CDN service provider can be provided, the 2nd CDN take
The CDN service that the CDN service and third CDN service provider that business provider provides provide is respectively connected to spare domain name A, spare
Domain name B and spare domain name C, i.e., each different CDN services can accelerate different spare domain names, and client could obtain out these
Spare domain name carries out the deciding grade and level of priority to next step.
For step S302, it is to be understood that in a particular embodiment, the client is can be according to presetting
Priority rule all spare domain names are carried out with the division of priority, the client can just identify obtain it is each
The priority of the spare domain name.For example, being equipped with spare domain name A, spare domain name B and spare domain name C, it may be predetermined that judgement
The rule of each backup domain name priority, according to priority rule can to spare domain name A, spare domain name B and spare domain name C into
Row deciding grade and level, client, which can just identify, gets the corresponding priority of each spare domain name.
For step S303, it is to be understood that in a particular embodiment, the client can first predefine judgement
The rule of each backup domain name priority carries out the deciding grade and level of priority to each spare domain name, can also pass through hand
The mode of dynamic setting carries out the deciding grade and level of priority to each spare domain name.It is determined from each spare domain name described
The spare domain name of highest priority, the spare domain name of this highest priority are intended for the second designated domain name and go to described
Client is changed automatically, so that it is guaranteed that providing CDN service there are also the CDN service quotient carries out acceleration service to domain name.Than
Such as, it is equipped with spare domain name A, spare domain name B and spare domain name C, the grade of manual setting is respectively level-one, second level and three-level,
Middle three-level is greater than second level, second level is greater than level-one, then spare domain name C is the spare domain name of highest priority, i.e., spare domain name C can be with
As the second designated domain name.
Further, the priority of each spare domain name can first pass through the sound for testing each spare domain name in advance
Speed is answered to define the level, as described in Figure 5, before the priority for obtaining each spare domain name, the method also includes:
S401, access to each spare domain name test, obtains each spare domain name when access test
Response speed;
S402, the priority that each spare domain name is determined according to the response speed of each spare domain name, wherein
Response speed is faster, then priority is higher.
For step S401, it is to be understood that for the available fast response time to each spare domain name
Slowly, specifically, test access can be carried out to each spare domain name, the client can be by advance with each described
The CDN service that spare domain name respectively accesses carries out acceleration access to each spare domain name respectively.It is then possible to obtain and remember
The response time length of each spare domain name is recorded, length of time determines each spare dns response speed according to response
The speed of degree.For example, being equipped with spare domain name A, spare domain name B and spare domain name C, is loaded access by client respectively, client
The response time for recording each spare domain name is 1s, 2s, 3s, it may be considered that the response speed of spare domain name A is most fast, spare
The response speed of domain name B is taken second place, the response speed of spare domain name C is minimum, and client can get each spare domain name
Response speed.
For step S402, it is to be understood that the priority is can be determined by the response speed,
Wherein, the response speed is faster, then the priority is higher, and when the speed of the response speed can be by the response
Between length determine that the response time is shorter, then the response speed is faster.The speed of the response speed can also lead to
The form that the server response time Digital size is defined as text is crossed, it finally can be by way of text to each
The priority of the spare domain name is defined the level.For example, being equipped with spare domain name A, spare domain name B and spare domain name C, three spare
The response speed of domain name can be showed by the length of the response time tested out with written form as fast, neutralization
Slowly, spare domain name A, spare domain name B and spare domain name C priority are respectively three-level, second level and level-one, then three-level is greater than two
Grade, second level are greater than level-one, i.e., spare domain name A highest priority, spare domain name B priority takes second place, spare domain name C priority most
It is low.If encountering the response time the same two or more spare domain names, i.e. priority is the same spare domain name,
It may be considered that it is feasible that the client, which arbitrarily distributes the backup domain name as second designated domain name,.Cause
This, the client can be randomly assigned the priority of the response time the same spare domain name.For example, being equipped with spare
Domain name A, spare domain name B and spare domain name C, the response time of three spare domain names be it is the same, at this time, client can be random
Distribute that spare domain name A is highest priority, spare domain name B is that take second place priority, spare domain name C is lowest priority.
Further, the priority of each spare domain name can also first pass through each spare domain name of test in advance
The height of stability is defined the level, as described in Figure 6, before the priority for obtaining each spare domain name, the method
Further include:
S501, access to each spare domain name test, obtains each spare domain name when access test
Packet loss;
S502, the priority that each spare domain name is determined according to the packet loss of each spare domain name, wherein lose
Packet rate is smaller, then priority is higher.
For step S501, it is to be understood that for the size of the packet loss of available each spare domain name,
It specifically, can be with when the CDN service that the CDN service quotient using each spare domain name provides accelerate access
The number for obtaining and recording the loss quantity of each spare domain name content-data packet, according to the spare domain name content-data
The number of the loss quantity of packet calculates the packet loss of each spare domain name.In general, the content of load may
By other influences such as network fluctuations, the case where partial content data packet or full content data packet are likely to occur loss.Than
Such as, client accesses the spare domain name and the data packet requested is 100, but due to network fluctuation problem, finally gets
Data packet only has 90, this just illustrates that the phenomenon that data-bag lost, packet loss 10% occurs in the spare domain name;For another example, if
There are spare domain name A, spare domain name B, is loaded by client obtain content respectively, the data packet of spare domain name A request is 100,
The data finally obtained are surrounded by 100, and spare domain name A packet loss is 0, the data packet of spare domain name B request is 100, finally
The data packet got only has 90, and spare domain name B packet loss is 10%.
For step S502, it is to be understood that in the present embodiment, the priority of spare domain name can pass through the packet loss
For rate come what is determined, the packet loss is smaller, then the priority is higher, and the packet loss also can reflect out the stability,
The packet loss is smaller, then the stability is higher, i.e., the described stability is high, and the priority is also high.The stability
Height can be by way of the server packet loss size be defined as text.It finally can be by way of text pair
The priority of each spare domain name is defined the level.For example, it is equipped with spare domain name A, spare domain name B and spare domain name C, three
The stability of spare domain name can show by the packet loss size of record with written form as stabilization, it is relatively steady and
Surely, spare domain name A, spare domain name B and spare domain name C priority are respectively three-level, second level and level-one, then three-level is greater than two
Grade, second level are greater than level-one, i.e., spare domain name A highest priority, spare domain name B priority takes second place, spare domain name C priority most
It is low.If encountering the same two or more spare domain name of the packet loss, i.e. priority is the same spare domain name, institute
State the priority that client can arbitrarily be randomly assigned the same two or more spare domain name of the packet loss.For example, setting
There are spare domain name A, spare domain name B and spare domain name C, the packet loss size of three spare domain names is the same, and at this time, client can
It is to take second place priority, spare domain name C for lowest priority to distribute spare domain name A as highest priority, spare domain name B.
In conclusion client access first refers to first above provide a kind of content delivery network service switching method
Localization name, the CDN service that the first designated domain name access has the first CDN service provider to provide;Finally, if the client
The number of the failure of first designated domain name described in connected reference reaches preset threshold, then client change second specified domain of access
Name, the CDN service that the second designated domain name access has the second CDN service provider to provide, and second designated domain name exists
The content distributed in CDN service is identical as the content that first designated domain name is distributed in CDN service.As it can be seen that the present invention is real
Show through change domain name and the CDN service of CDN service provider offer is provided, has avoided first CDN service provider and mention
When something goes wrong, user accesses domain name and the case where access failure occurs the CDN service of confession, is conducive to improve user experience and advantageous
In enterprise to the normal operation of domain name.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process
Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit
It is fixed.
In one embodiment, a kind of content delivery network service switching device, content delivery network service switching are provided
Content delivery network service switching method corresponds in device and above-described embodiment.As shown in fig. 7, the content distributing network takes
Business switching device includes access modules 601 and change module 602.Detailed description are as follows for each functional module:
Access modules 601, for accessing the first designated domain name, the first designated domain name access has the first CDN service to mention
The CDN service provided for quotient;
Module 602 is changed, if the number for the failure of the first designated domain name described in connected reference reaches preset threshold, is become
More access the second designated domain name, the CDN service that the second designated domain name access has the second CDN service provider to provide, and institute
State the content phase that the content that the second designated domain name is distributed in CDN service is distributed in CDN service with first designated domain name
Together.
Further, the content delivery network service switching device can also include:
Domain name access modules are tested, for the test domain name of access preset, the test domain name can be accessed normally;
Detection module, if detecting the mistake of the first designated domain name described in connected reference for testing domain name described in successful access
Whether the number lost reaches preset threshold.
Further, the content delivery network service switching device can also include:
Alarm module is issued, if issuing the report about this earth fault of client for accessing the test domain name failure
Alert information;
First designated domain name access modules, if the number for the failure of the first designated domain name described in connected reference does not reach
Preset threshold then accesses first designated domain name.
Further, the content delivery network service switching device can also include:
Spare domain Name acquisition module, for obtaining preset each spare domain name, each backup domain name is respectively connected to
The CDN service for thering are different CDN service providers to provide;
Priority obtains module, for obtaining the priority of each spare domain name;
Determining module, for determining the backup domain name of highest priority in each spare domain name as the second specified domain
Name.
Further, the content delivery network service switching device can also include:
Response speed obtains module, for accessing test to each spare domain name, obtains each when access is tested
The response speed of a spare domain name;
Response speed determining module, for determining each backup domain according to the response speed of each spare domain name
The priority of name, wherein response speed is faster, then priority is higher.
Further, the content delivery network service switching device can also include:
Packet loss obtains module, for accessing test to each spare domain name, obtains each when access is tested
The packet loss of the spare domain name;
Priority Determination module, for determining each spare domain name according to the packet loss of each spare domain name
Priority, wherein packet loss is smaller, then priority is higher.
In conclusion above provide a kind of content delivery network service switching device, the access of access modules 601 the first
One designated domain name, the CDN service that the first designated domain name access has the first CDN service provider to provide;Finally, if access mould
The number of the failure of first designated domain name described in 601 connected reference of block reaches preset threshold, then changes the change of module 602 access second
Designated domain name, the CDN service that the second designated domain name access has the second CDN service provider to provide, and described second is specified
The content that domain name is distributed in CDN service is identical as the content that first designated domain name is distributed in CDN service.As it can be seen that this
Invention realizes through change domain name the CDN service for switching the offer of CDN service provider, avoids first CDN service and mentions
For quotient provide CDN service when something goes wrong, user access domain name occur access failure the case where, be conducive to improve user experience
Be conducive to enterprise to the normal operation of domain name.
Specific restriction about content delivery network service switching device may refer to above for content distributing network
The restriction of service switch method, details are not described herein.The modules that above content distribution network services in switching device can be complete
Portion or part are realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of calculating
In processor in machine equipment, it can also be stored in a software form in the memory in computer equipment, in order to processor
It calls and executes the corresponding operation of the above modules.
In one embodiment, a kind of computer equipment is provided, which can be client, internal junction
Composition can be as shown in Figure 8.The computer equipment includes the processor connected by system bus, memory, network interface, shows
Display screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment
Memory includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer
Program.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The meter
The network interface for calculating machine equipment is used to communicate with external server by network connection.When the computer program is executed by processor
To realize a kind of content delivery network service switching method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory
And the computer program that can be run on a processor, processor realize content distribution in above-described embodiment when executing computer program
The step of network service switch method, such as step S101 shown in Fig. 2 to step S102.Alternatively, processor executes computer
The function of each module/unit of content delivery network service switching device in above-described embodiment is realized when program, such as shown in Fig. 7
Module 601 to module 602 function.To avoid repeating, which is not described herein again.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program realizes the step of content delivery network service switching method in above-described embodiment, such as Fig. 2 institute when being executed by processor
The step S101 to step S102 shown.Alternatively, realizing content distribution in above-described embodiment when computer program is executed by processor
Network services the function of each module/unit of switching device, such as module 601 shown in Fig. 7 to the function of module 602.To avoid
It repeats, which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of content delivery network service switching method characterized by comprising
Access the first designated domain name, the CDN service that the first designated domain name access has the first CDN service provider to provide;
If the number of the failure of the first designated domain name described in connected reference reaches preset threshold, the second designated domain name of access is changed,
The CDN service that the second designated domain name access has the second CDN service provider to provide, and second designated domain name is in CDN
The content distributed in service is identical as the content that first designated domain name is distributed in CDN service.
2. content delivery network service switching method according to claim 1, which is characterized in that refer in change access second
Before localization name, further includes:
The test domain name of access preset, the test domain name can be accessed normally;
If testing domain name described in successful access, whether the number for detecting the failure of the first designated domain name described in connected reference reaches pre-
If threshold value.
3. content delivery network service switching method according to claim 1 or 2, which is characterized in that in change access the
Before two designated domain names, further includes:
Preset each spare domain name is obtained, each backup domain name is respectively connected to what different CDN service providers provided
CDN service;
Obtain the priority of each spare domain name;
Determine the backup domain name of highest priority in each spare domain name as the second designated domain name.
4. content delivery network service switching method according to claim 3, which is characterized in that each described standby obtaining
Before the priority of domain name, the method also includes:
It accesses test to each spare domain name, obtains the response speed of each spare domain name when access test;
The priority of each spare domain name is determined according to the response speed of each spare domain name, wherein response speed
Faster, then priority is higher.
5. content delivery network service switching method according to claim 3, which is characterized in that each described standby obtaining
Before the priority of domain name, the method also includes:
It accesses test to each spare domain name, obtains the packet loss of each spare domain name when access test;
The priority of each spare domain name is determined according to the packet loss of each spare domain name, wherein packet loss is smaller,
Then priority is higher.
6. a kind of content delivery network service switching device characterized by comprising
Access modules, for accessing the first designated domain name, the first designated domain name access has the offer of the first CDN service provider
CDN service;
Module is changed, if the number for the failure of the first designated domain name described in connected reference reaches preset threshold, changes access
Second designated domain name, the CDN service that the second designated domain name access has the second CDN service provider to provide, and described second
The content that designated domain name is distributed in CDN service is identical as the content that first designated domain name is distributed in CDN service.
7. content delivery network service switching device according to claim 6, which is characterized in that the content distributing network
Service switching device further include:
Domain name access modules are tested, for the test domain name of access preset, the test domain name can be accessed normally;
Detection module, if detecting the failure of the first designated domain name described in connected reference for testing domain name described in successful access
Whether number reaches preset threshold.
8. content delivery network service switching device according to claim 6 or 7, which is characterized in that the content distribution
Network services switching device further include:
Spare domain Name acquisition module, for obtaining preset each spare domain name, each backup domain name has been respectively connected to not
The CDN service provided with CDN service provider;
Priority obtains module, for obtaining the priority of each spare domain name;
Determining module, for determining the backup domain name of highest priority in each spare domain name as the second designated domain name.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor
The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to
Content delivery network service switching method described in any one of 5.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization content delivery network service as described in any one of claims 1 to 5 when the computer program is executed by processor
Switching method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535411.5A CN109769040A (en) | 2018-12-14 | 2018-12-14 | Content delivery network service switching method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811535411.5A CN109769040A (en) | 2018-12-14 | 2018-12-14 | Content delivery network service switching method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109769040A true CN109769040A (en) | 2019-05-17 |
Family
ID=66451899
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811535411.5A Pending CN109769040A (en) | 2018-12-14 | 2018-12-14 | Content delivery network service switching method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109769040A (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110381081A (en) * | 2019-08-07 | 2019-10-25 | 上海千杉网络技术发展有限公司 | Network Access Method, device and electronic equipment |
CN111464585A (en) * | 2019-12-05 | 2020-07-28 | 厦门靠谱云股份有限公司 | Multi-cloud-based high-availability CDN service mechanism |
CN111526185A (en) * | 2020-04-10 | 2020-08-11 | 广东小天才科技有限公司 | Data downloading method, device, system and storage medium |
CN112187804A (en) * | 2020-09-29 | 2021-01-05 | 北京金山云网络技术有限公司 | Communication method and device of server, computer equipment and storage medium |
CN112202760A (en) * | 2020-09-28 | 2021-01-08 | 厦门美柚股份有限公司 | Webpage access method, device, terminal and medium |
CN112260853A (en) * | 2020-09-17 | 2021-01-22 | 北京大米科技有限公司 | Disaster recovery switching method and device, storage medium and electronic equipment |
CN112954087A (en) * | 2021-02-20 | 2021-06-11 | 每日互动股份有限公司 | Domain name connection method and device for SaaS (software as a service), computer equipment and storage medium |
CN113301079A (en) * | 2020-06-03 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data acquisition method, system, computing device and storage medium |
CN113301177A (en) * | 2021-04-27 | 2021-08-24 | 百果园技术(新加坡)有限公司 | Domain name anti-blocking method and device |
CN113676563A (en) * | 2021-08-19 | 2021-11-19 | 平安普惠企业管理有限公司 | Scheduling method, device, equipment and storage medium of content distribution network service |
CN114363155A (en) * | 2022-01-05 | 2022-04-15 | 北京爱学习博乐教育科技有限公司 | Backup recovery method and system for CDN resources |
CN115361279A (en) * | 2022-08-12 | 2022-11-18 | 广州博冠信息科技有限公司 | Configuration data updating method and device, electronic equipment and computer readable medium |
CN115396286A (en) * | 2022-08-25 | 2022-11-25 | 税友信息技术有限公司 | Cloud content distribution network switching method, device, equipment and medium of PC (personal computer) end |
CN116708459A (en) * | 2023-07-20 | 2023-09-05 | 广州东瑞科技有限公司 | Service access automatic switching method, system, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102932451A (en) * | 2012-10-31 | 2013-02-13 | 北龙中网(北京)科技有限责任公司 | Solving system specific to content distribution network |
US8700945B1 (en) * | 2011-09-23 | 2014-04-15 | Amazon Technologies, Inc. | Content delivery failover |
CN105959405A (en) * | 2016-06-24 | 2016-09-21 | 北京兰云科技有限公司 | CDN video scheduling system and method, CDN scheduling server and client |
CN107888717A (en) * | 2017-12-26 | 2018-04-06 | 北京搜狐新媒体信息技术有限公司 | A kind of domain name determines method, apparatus and electronic equipment |
CN108737532A (en) * | 2018-05-11 | 2018-11-02 | 北京大米科技有限公司 | A kind of resource acquiring method, client, computer equipment and readable medium |
-
2018
- 2018-12-14 CN CN201811535411.5A patent/CN109769040A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8700945B1 (en) * | 2011-09-23 | 2014-04-15 | Amazon Technologies, Inc. | Content delivery failover |
CN102932451A (en) * | 2012-10-31 | 2013-02-13 | 北龙中网(北京)科技有限责任公司 | Solving system specific to content distribution network |
CN105959405A (en) * | 2016-06-24 | 2016-09-21 | 北京兰云科技有限公司 | CDN video scheduling system and method, CDN scheduling server and client |
CN107888717A (en) * | 2017-12-26 | 2018-04-06 | 北京搜狐新媒体信息技术有限公司 | A kind of domain name determines method, apparatus and electronic equipment |
CN108737532A (en) * | 2018-05-11 | 2018-11-02 | 北京大米科技有限公司 | A kind of resource acquiring method, client, computer equipment and readable medium |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110381081A (en) * | 2019-08-07 | 2019-10-25 | 上海千杉网络技术发展有限公司 | Network Access Method, device and electronic equipment |
CN111464585A (en) * | 2019-12-05 | 2020-07-28 | 厦门靠谱云股份有限公司 | Multi-cloud-based high-availability CDN service mechanism |
CN111526185A (en) * | 2020-04-10 | 2020-08-11 | 广东小天才科技有限公司 | Data downloading method, device, system and storage medium |
CN113301079A (en) * | 2020-06-03 | 2021-08-24 | 阿里巴巴集团控股有限公司 | Data acquisition method, system, computing device and storage medium |
CN113301079B (en) * | 2020-06-03 | 2022-11-18 | 阿里巴巴集团控股有限公司 | Data acquisition method, system, computing device and storage medium |
CN112260853B (en) * | 2020-09-17 | 2023-07-21 | 北京大米科技有限公司 | Disaster recovery switching method, device, storage medium and electronic equipment |
CN112260853A (en) * | 2020-09-17 | 2021-01-22 | 北京大米科技有限公司 | Disaster recovery switching method and device, storage medium and electronic equipment |
CN112202760A (en) * | 2020-09-28 | 2021-01-08 | 厦门美柚股份有限公司 | Webpage access method, device, terminal and medium |
CN112187804A (en) * | 2020-09-29 | 2021-01-05 | 北京金山云网络技术有限公司 | Communication method and device of server, computer equipment and storage medium |
CN112954087A (en) * | 2021-02-20 | 2021-06-11 | 每日互动股份有限公司 | Domain name connection method and device for SaaS (software as a service), computer equipment and storage medium |
CN113301177A (en) * | 2021-04-27 | 2021-08-24 | 百果园技术(新加坡)有限公司 | Domain name anti-blocking method and device |
CN113676563A (en) * | 2021-08-19 | 2021-11-19 | 平安普惠企业管理有限公司 | Scheduling method, device, equipment and storage medium of content distribution network service |
CN113676563B (en) * | 2021-08-19 | 2022-11-08 | 平安普惠企业管理有限公司 | Scheduling method, device, equipment and storage medium of content distribution network service |
CN114363155A (en) * | 2022-01-05 | 2022-04-15 | 北京爱学习博乐教育科技有限公司 | Backup recovery method and system for CDN resources |
CN115361279A (en) * | 2022-08-12 | 2022-11-18 | 广州博冠信息科技有限公司 | Configuration data updating method and device, electronic equipment and computer readable medium |
CN115396286A (en) * | 2022-08-25 | 2022-11-25 | 税友信息技术有限公司 | Cloud content distribution network switching method, device, equipment and medium of PC (personal computer) end |
CN116708459A (en) * | 2023-07-20 | 2023-09-05 | 广州东瑞科技有限公司 | Service access automatic switching method, system, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109769040A (en) | Content delivery network service switching method, device, equipment and storage medium | |
US11586673B2 (en) | Data writing and reading method and apparatus, and cloud storage system | |
US10425242B2 (en) | IoT provisioning service | |
CN108287669B (en) | Date storage method, device and storage medium | |
US20180109650A1 (en) | Automatic provisioning of iot devices | |
CN109189785A (en) | Date storage method, device, computer equipment and storage medium | |
CN109474668A (en) | CDN service switching method, device, computer equipment and storage medium | |
CN110046029A (en) | Data processing method and device applied to multi-level buffer in cluster | |
CN113296685B (en) | Data processing method and device and computer readable storage medium | |
CN107870802B (en) | Virtual machine migration method and device | |
CN108540315A (en) | Distributed memory system, method and apparatus | |
CN113220540B (en) | Service management method, device, computer equipment and storage medium | |
CN111309245B (en) | Hierarchical storage writing method and device, reading method and device and system | |
CN103559093A (en) | Resource allocation method and device for servers | |
CN109783564A (en) | Support the distributed caching method and equipment of multinode | |
WO2020256831A1 (en) | Smart contract information redirect to updated version of smart contract | |
CN104753987B (en) | A kind of distributed conversation management method and system | |
CN112256433B (en) | Partition migration method and device based on Kafka cluster | |
JP2015506112A (en) | Redirecting requests to a second location during a temporary failure | |
CN113391937B (en) | Method, electronic device and computer program product for storage management | |
CN116233245A (en) | Remote multi-activity system, information processing method thereof and configuration server | |
CN104598463A (en) | Method and method for switching database | |
CN103631535A (en) | Method and device for achieving space distribution in storage pool | |
CN111752466A (en) | Data storage method and device | |
CN114244905A (en) | Data forwarding method and device, computer equipment and 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 | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20190517 |