CN110769058A - Acceleration method and system based on multiple CDN service providers - Google Patents

Acceleration method and system based on multiple CDN service providers Download PDF

Info

Publication number
CN110769058A
CN110769058A CN201911029598.6A CN201911029598A CN110769058A CN 110769058 A CN110769058 A CN 110769058A CN 201911029598 A CN201911029598 A CN 201911029598A CN 110769058 A CN110769058 A CN 110769058A
Authority
CN
China
Prior art keywords
cdn
service
cdn service
acceleration
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911029598.6A
Other languages
Chinese (zh)
Other versions
CN110769058B (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.)
Guangzhou 61 Information Technology Co Ltd
Original Assignee
Guangzhou 61 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou 61 Information Technology Co Ltd filed Critical Guangzhou 61 Information Technology Co Ltd
Priority to CN201911029598.6A priority Critical patent/CN110769058B/en
Publication of CN110769058A publication Critical patent/CN110769058A/en
Application granted granted Critical
Publication of CN110769058B publication Critical patent/CN110769058B/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/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
    • H04L67/63Routing a service request depending on the request content or context
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • 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/52Network services specially adapted for the location of the user terminal

Abstract

The application discloses an acceleration method and system based on multiple CDN service providers, wherein the method comprises the following steps: the method comprises the steps that a user side sends available CDN query information to a server side, so that the server side feeds back N CDN service acceleration domain names with preset weights according to state information of a current CDN service provider when receiving the CDN query information; the user side sequentially tests the N CDN service acceleration domain names according to the preset weight of the N CDN service acceleration domain names; and when the user side tests the available CDN service acceleration domain name, stopping the test, and binding the available CDN service acceleration domain name into an acceleration domain name for providing CDN resources for the user side. According to the method and the device, the CDN acceleration quotient selected by the user can be controlled on the large granularity and the small granularity, the problem that the service resources of the CDN service quotient of a single user are unavailable is solved and processed at the user side, the other users are affected without large switching, negative effects brought when the CDN service quotient is switched are reduced, and user experience is improved.

Description

Acceleration method and system based on multiple CDN service providers
Technical Field
The application relates to the technical field of basic network application, in particular to an acceleration method and system based on multiple CDN service providers.
Background
When accessing the CDN, generally, for the same site, resources of the same CDN service provider are used. When the service resources of the service provider have problems, the service end can perform all switching on the CDN in general, which can solve the situation that the CDN service provider has a large area of abnormal conditions, but because the CDN service provider has a certain coverage, which is actually not 100% available, when an individual user or a user within a specific range has a problem, all the switched service provider resources may not necessarily meet the bandwidth requirement of the individual user at that time, the resources that can be provided may not be optimal, and the problem that a part of users cannot be covered after switching may be solved, but also the problem that a new CDN service provider may also have a problem that a new CDN service provider cannot cover may also cause another part of users to access the resources. Therefore, if a problem occurs in a local area or some users, all the handovers will have more negative effects, resulting in poor user experience.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present application is to provide an acceleration method and system based on multiple CDN service providers, so as to reduce negative effects caused by switching of the CDN service providers and improve user experience.
In order to solve the above problem, an embodiment of the present application provides an acceleration method based on multiple CDN service providers, which at least includes the following steps:
the method comprises the steps that a user side sends available CDN query information to a server side, so that the server side feeds back N CDN service acceleration domain names with preset weights according to state information of a current CDN service provider when receiving the CDN query information;
the user side sequentially tests the N CDN service acceleration domain names according to preset weight of the N CDN service acceleration domain names;
and when the user side tests the available CDN service acceleration domain name, stopping the test, and binding the available CDN service acceleration domain name into an acceleration domain name for providing CDN resources for the user side.
Further, the method also comprises the following steps:
and when the user side detects the unavailable CDN service acceleration domain name, feeding back service abnormal information to the service side, and continuously detecting the next CDN service acceleration domain name.
Further, the method also comprises the following steps:
and when the server side receives the abnormal service information, adjusting the preset weight of the CDN service acceleration domain name corresponding to the abnormal service information.
Further, the service abnormality information includes location information of the user terminal;
when the server receives the abnormal service information, adjusting the preset weight of the CDN service acceleration domain name corresponding to the abnormal service information, including:
and when the server receives the abnormal service information, the server adjusts the preset weight of the CDN service acceleration domain name corresponding to the abnormal service information according to the position information of the user side in the abnormal service information.
Further, when the user side tests the available CDN service acceleration domain name, stopping the test, and binding the available CDN service acceleration domain name as an acceleration domain name that provides CDN resources to the user side includes:
and when the user side tests the available CDN service acceleration domain name, stopping the test, and binding the available CDN service acceleration domain name into the CDN resource using process of the user side, and providing the acceleration domain name of the CDN resource for the user side.
Further, the N CDN service acceleration domain names include a back-source domain name;
and the back source domain name is positioned at the last position in the test sequencing of the user terminal to the N CDN service acceleration domain names.
Further, the method also comprises the following steps: and when the current accumulated integral value of the user account is smaller than a preset score, pushing learning information for guiding garbage classification to the user terminal.
Further, an acceleration system based on multiple CDN service providers is also provided, which comprises a user side and a service side;
the user side is used for sending available CDN query information to the server side;
the server is used for feeding back N CDN service acceleration domain names with preset weight according to the state information of the current CDN service provider when the CDN query information is received;
the user side is further used for sequentially testing the N CDN service acceleration domain names according to preset weight of the N CDN service acceleration domain names, stopping the test when the available CDN service acceleration domain names are tested, and binding the available CDN service acceleration domain names into acceleration domain names which provide CDN resources for the user side.
Further, the user side is further configured to:
and when the unavailable CDN service acceleration domain name is detected, feeding back service abnormal information to the server side, and continuously detecting the next CDN service acceleration domain name.
Further, the server is further configured to:
and when the service abnormal information is received, adjusting the preset weight of the CDN service acceleration domain name corresponding to the service abnormal information.
Further, the service abnormality information includes location information of the user terminal;
the server is specifically configured to, when the service abnormality information is received, adjust the preset weight of the CDN service acceleration domain corresponding to the service abnormality information according to the location information of the user side in the service abnormality information.
The embodiment of the application has the following beneficial effects:
compared with the prior art, the embodiment can control the CDN accelerator selected by the user to be used in a large granularity and a small granularity, solves the problem that the service resources of the CDN service provider existing in a single user are unavailable, and automatically processes at the user side without performing large switching to influence other users.
Drawings
Fig. 1 is a schematic flowchart illustrating an acceleration method based on multiple CDN service providers according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an acceleration system based on multiple CDN service providers according to a second embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
Referring to fig. 1, a schematic flowchart of an acceleration method based on multiple CDN service providers according to an embodiment of the present application is shown in fig. 1, and includes:
step S1, the user side sends available CDN query information to the server side, so that when the server side receives the CDN query information, the server side feeds back N CDN service acceleration domain names with preset weights according to the state information of the current CDN service provider.
In this embodiment, when a front end (including a web or APP) of a user side receives a CDN resource access instruction initiated by a user, CDN query information is sent to a server side that manages CDN services. And the server side detects the current service state of each CDN service provider according to the received CDN query information, selects N CDN service acceleration domain names with preset weight according to the current service state of each CDN service provider and feeds the N CDN service acceleration domain names back to the user side. The N CDN service acceleration domain names are CDN service acceleration domain names available for server side test, and the N CDN service acceleration domain names need to comprise a source returning domain name. The method for selecting the N CDN service acceleration domain names is that a plurality of CDN service acceleration domain names with high preset weight and a source returning domain name are preferentially selected as the N CDN service acceleration domain names from all available CDN service acceleration domain names tested by a server side by the server side.
Preferably, the number of the CDN service acceleration domains fed back by the server is three, that is, the server selects a CDN service acceleration domain with a first preset weight, a CDN service acceleration domain with a second preset weight, and a source return domain from all the CDN service acceleration domains available for testing according to the current service state of each CDN service provider.
Step S2, the user side sequentially tests the N CDN service acceleration domain names according to the preset weight of the N CDN service acceleration domain names.
In this embodiment, after receiving the N CDN service acceleration domain names fed back by the server, the user ranks the N CDN service acceleration domain names from large to small according to the size of the preset weight, and sequentially tests the N CDNs in sequence. And the back source domain name in the N CDN service acceleration domain names is positioned at the last position in the test sequencing of the user end to the N CDN service acceleration domain names.
Step S3, when the user end tests an available CDN service acceleration domain name, the test is stopped, and the available CDN service acceleration domain name is bound to an acceleration domain name that provides CDN resources to the user end.
Specifically, when the user side tests the available CDN service acceleration domain name, the test is stopped, and the available CDN service acceleration domain name is bound to the acceleration domain name for providing the CDN resource to the user side in the process in which the user side uses the CDN resource this time.
In this embodiment, once the available CDN service acceleration domain name is selected, the acceleration domain name is used to load the resource in the process of using the resource in this round. This selection is only valid for the current round of usage, and the next time the user re-enters the site or re-enters the app, the step S1 is returned to avoid caching the available CDN service acceleration domain name at the front end, and to prevent the unavailability of the service provider from failing to refresh.
In this embodiment, when the user side detects an unavailable CDN service acceleration domain name, feeding back service abnormality information to the server side, and continuing to detect a next CDN service acceleration domain name.
In this embodiment, when the user side tests that the CDN service acceleration domain name with the first preset weight is available, the CDN service acceleration domain name with the first preset weight is used, and the test is ended; otherwise, testing the CDN service acceleration domain name with the second preset weight. And the like until the back source domain name is tested. When a certain CDN service acceleration domain name is unavailable or abnormal in the testing process of the user side, feeding back service abnormal information to the service side so that the service side dynamically adjusts the preset weight of the unavailable or abnormal CDN service acceleration domain name.
Because the CDN is a user-oriented service, tests in other places cannot represent the local actual situation of the user, and only the local test of the user can actually reflect the current situation of the user, the present embodiment can control the range of influence to the maximum extent by detecting the switching manner at the user side, that is, such switching is performed only by a single user, rather than by a large number of users, and at the same time, the weight of the service provider can be controlled at the service side, and the accelerated service provider finally used by the user is influenced by adjusting the weight. Namely, the method can not only influence a certain user with small granularity, but also integrally switch CDN service providers in a large range. The control of the small-granularity user side is realized by adopting a mode that the user side automatically detects service availability and automatically switches service providers; the switching in a large range can reduce the weight of the service provider to be removed to 0 through background weight control.
In this embodiment, the service exception information includes location information of the ue. And when the server receives the abnormal service information, adjusting the preset weight of the CDN service acceleration domain name corresponding to the abnormal service information according to the position information of the user side in the abnormal service information.
Through the service abnormal information fed back by the client, the server can acquire the region where the client is located, so that the weight mechanism of the server can adjust the weight of the service provider for different regions, and the appropriate CDN service acceleration domain name can be quickly determined for different regions.
Further, referring to fig. 2, a schematic structural diagram of an acceleration system based on multiple CDN servers according to a second embodiment of the present application is provided. Including a user terminal 1 and a service terminal 2.
The user side 1 is configured to send available CDN query information to the service side 2.
The server 2 is configured to feed back N CDN service acceleration domain names with preset weights according to the state information of the current CDN service provider when receiving the CDN query information.
The user side 1 is further configured to sequentially test the N CDN service acceleration domain names according to preset weight magnitudes of the N CDN service acceleration domain names, stop the test when an available CDN service acceleration domain name is tested, and bind the available CDN service acceleration domain name as an acceleration domain name that provides CDN resources to the user side 1.
In this embodiment, the user side 2 is further configured to, when detecting an unavailable CDN service acceleration domain name, feed back service anomaly information to the server side, and continue to detect a next CDN service acceleration domain name.
In this embodiment, the server 2 is further configured to, when receiving the abnormal service information, adjust a preset weight of the CDN service acceleration domain name corresponding to the abnormal service information.
In this embodiment, the service exception information includes location information of the user terminal 1. The server 2 is specifically configured to, when receiving the service abnormality information, adjust a preset weight of the CDN service acceleration domain corresponding to the service abnormality information according to the location information of the user side 1 in the service abnormality information.
Still another embodiment of the present application further provides a multi-CDN server-based acceleration terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor, when executing the computer program, implements the multi-CDN server-based acceleration method according to the foregoing embodiment.
The foregoing is a preferred embodiment of the present application, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations are also regarded as the protection scope of the present application.
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 a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

Claims (10)

1. A multi-CDN service provider-based acceleration method is characterized by at least comprising the following steps:
the method comprises the steps that a user side sends available CDN query information to a server side, so that the server side feeds back N CDN service acceleration domain names with preset weights according to state information of a current CDN service provider when receiving the CDN query information;
the user side sequentially tests the N CDN service acceleration domain names according to preset weight of the N CDN service acceleration domain names;
and when the user side tests the available CDN service acceleration domain name, stopping the test, and binding the available CDN service acceleration domain name into an acceleration domain name for providing CDN resources for the user side.
2. The multi-CDN provider-based acceleration method of claim 1, further comprising:
and when the user side detects the unavailable CDN service acceleration domain name, feeding back service abnormal information to the service side, and continuously detecting the next CDN service acceleration domain name.
3. The multi-CDN provider-based acceleration method of claim 2, further comprising:
and when the server side receives the abnormal service information, adjusting the preset weight of the CDN service acceleration domain name corresponding to the abnormal service information.
4. The multi-CDN service provider-based acceleration method of claim 3 wherein the service anomaly information includes location information of the user side;
when the server receives the abnormal service information, adjusting the preset weight of the CDN service acceleration domain name corresponding to the abnormal service information, including:
and when the server receives the abnormal service information, the server adjusts the preset weight of the CDN service acceleration domain name corresponding to the abnormal service information according to the position information of the user side in the abnormal service information.
5. The multi-CDN service provider-based acceleration method of claim 1, wherein the stopping the testing and binding the available CDN service acceleration domain name to an acceleration domain name that provides CDN resources to the user side when the user side tests the available CDN service acceleration domain name comprises:
and when the user side tests the available CDN service acceleration domain name, stopping the test, and binding the available CDN service acceleration domain name into the CDN resource using process of the user side, and providing the acceleration domain name of the CDN resource for the user side.
6. The multi-CDN service provider-based acceleration method according to any of claims 1-5 wherein N CDN service acceleration domain names comprise a back-source domain name;
and the back source domain name is positioned at the last position in the test sequencing of the user terminal to the N CDN service acceleration domain names.
7. An acceleration system based on multiple CDN service providers is characterized by comprising a user side and a service side;
the user side is used for sending available CDN query information to the server side;
the server is used for feeding back N CDN service acceleration domain names with preset weight according to the state information of the current CDN service provider when the CDN query information is received;
the user side is further used for sequentially testing the N CDN service acceleration domain names according to preset weight of the N CDN service acceleration domain names, stopping the test when the available CDN service acceleration domain names are tested, and binding the available CDN service acceleration domain names into acceleration domain names which provide CDN resources for the user side.
8. The multi-CDN provider based acceleration system of claim 7, wherein the user side is further configured to:
and when the unavailable CDN service acceleration domain name is detected, feeding back service abnormal information to the server side, and continuously detecting the next CDN service acceleration domain name.
9. The multi-CDN provider based acceleration system of claim 7, wherein the server is further configured to:
and when the service abnormal information is received, adjusting the preset weight of the CDN service acceleration domain name corresponding to the service abnormal information.
10. The multi-CDN provider-based acceleration system of claim 9, wherein the service anomaly information includes location information of the user side;
the server is specifically configured to, when the service abnormality information is received, adjust the preset weight of the CDN service acceleration domain corresponding to the service abnormality information according to the location information of the user side in the service abnormality information.
CN201911029598.6A 2019-10-25 2019-10-25 Acceleration method and system based on multiple CDN service providers Active CN110769058B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911029598.6A CN110769058B (en) 2019-10-25 2019-10-25 Acceleration method and system based on multiple CDN service providers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911029598.6A CN110769058B (en) 2019-10-25 2019-10-25 Acceleration method and system based on multiple CDN service providers

Publications (2)

Publication Number Publication Date
CN110769058A true CN110769058A (en) 2020-02-07
CN110769058B CN110769058B (en) 2021-11-19

Family

ID=69334095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911029598.6A Active CN110769058B (en) 2019-10-25 2019-10-25 Acceleration method and system based on multiple CDN service providers

Country Status (1)

Country Link
CN (1) CN110769058B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410691A (en) * 2014-11-27 2015-03-11 网宿科技股份有限公司 Method and system for website acceleration on basis of content delivery network
CN107888717A (en) * 2017-12-26 2018-04-06 北京搜狐新媒体信息技术有限公司 A kind of domain name determines method, apparatus and electronic equipment
CN108632397A (en) * 2017-03-22 2018-10-09 北京雪球信息科技有限公司 To the control method and system of network connection
CN110166526A (en) * 2019-04-15 2019-08-23 中国平安人寿保险股份有限公司 More CDN access management methods, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104410691A (en) * 2014-11-27 2015-03-11 网宿科技股份有限公司 Method and system for website acceleration on basis of content delivery network
US20170344657A1 (en) * 2014-11-27 2017-11-30 Wangsu Science & Technology Co., Ltd. Content delivery network (cdn)-based website acceleration method and system
CN108632397A (en) * 2017-03-22 2018-10-09 北京雪球信息科技有限公司 To the control method and system of network connection
CN107888717A (en) * 2017-12-26 2018-04-06 北京搜狐新媒体信息技术有限公司 A kind of domain name determines method, apparatus and electronic equipment
CN110166526A (en) * 2019-04-15 2019-08-23 中国平安人寿保险股份有限公司 More CDN access management methods, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110769058B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CN108306971B (en) Method and system for sending acquisition request of data resource
US9143974B2 (en) Method and device for sending a buffer status report
CN104320487A (en) HTTP dispatching system and method for content delivery network
AU2011267625B2 (en) Method, apparatus and system for updating metadata files
CN104185036B (en) A kind of video file time source method and device
US20020069241A1 (en) Method and apparatus for client-side proxy selection
EP2787742B1 (en) Method and system for transmitting network video
EP2515504A1 (en) Content delivery method, system and schedule server
CN103312752B (en) Point to point network information dispensing method, download node, index server and system
CN104602245B (en) Enhance the method and the network equipment of adjacent service device-to-device discovery resource allocation
CN110336848B (en) Scheduling method, scheduling system and scheduling equipment for access request
US11102272B2 (en) Method and device for downloading resource file
US20160330135A1 (en) Node distribution method and control center
EP3860092A1 (en) Method and apparatus for downloading resource file
US20170142196A1 (en) Method and apparatus for selecting source server
CN101965012B (en) Load balancing method and device
CN107979539A (en) Message processing method and device
US11805172B1 (en) File access service
CN110677475A (en) Micro-service processing method, device, equipment and storage medium
CN109286957A (en) Switching method, device, electronic equipment and the storage medium of a kind of time source link
CN110769058B (en) Acceleration method and system based on multiple CDN service providers
US9077735B2 (en) Method and related device for controlling service charging
EP3363159B1 (en) Adaptive precision for reporting consumption of streamed content
EP3672203A1 (en) Distribution method for distributed data computing, device, server and storage medium
US20180084519A1 (en) Terminal Device Positioning Method, Positioning Server, Access Point, and System

Legal Events

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