CN111625359B - Method and device for determining CDN usage of user and terminal equipment - Google Patents

Method and device for determining CDN usage of user and terminal equipment Download PDF

Info

Publication number
CN111625359B
CN111625359B CN202010451954.XA CN202010451954A CN111625359B CN 111625359 B CN111625359 B CN 111625359B CN 202010451954 A CN202010451954 A CN 202010451954A CN 111625359 B CN111625359 B CN 111625359B
Authority
CN
China
Prior art keywords
cdn
domain name
usage
resource provider
total
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
CN202010451954.XA
Other languages
Chinese (zh)
Other versions
CN111625359A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202010451954.XA priority Critical patent/CN111625359B/en
Publication of CN111625359A publication Critical patent/CN111625359A/en
Application granted granted Critical
Publication of CN111625359B publication Critical patent/CN111625359B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a method, a device and a terminal device for determining CDN usage of a user, which comprises the steps of firstly obtaining a first domain name used by a target user in a current CDN resource provider, and obtaining the total CDN usage of the first domain name; if the number of the domain names used by the target user is multiple, determining the total CDN usage of the domain names except the first domain name according to the access amount of each domain name and the total CDN usage of the first domain name; and determining the CDN usage of the target user according to the total CDN usage of each domain name. According to the method, the CDN usage amount of the user is estimated through the domain name used by the user, and due to the fact that relevant data of the domain name is easy to obtain and the data accuracy is high; therefore, compared with a mode of estimating the CDN usage of a similar product, the mode of estimating the CDN usage of a user through the domain name is easier to realize, the accuracy is higher, and for a CDN resource provider, accurate expansion of sales is more facilitated.

Description

Method and device for determining CDN usage of user and terminal equipment
Technical Field
The invention relates to the technical field of data analysis, in particular to a method and a device for determining CDN usage of a user and terminal equipment.
Background
For a user with a CDN (Content Delivery Network) resource requirement, multiple CDN resource providers may be selected at the same time, so that a competitive relationship exists between the CDN resource providers; for CDN resource providers, in order to achieve accurate sales volume expansion, the total CDN usage of a certain user at each CDN resource provider needs to be obtained. In the related art, in order to obtain the total CDN usage of a certain user, the CDN usage of a product similar to a product operated by the user needs to be estimated; however, it is difficult to obtain the CDN usage of the similar product, and the accuracy of the method for estimating the total CDN usage of the user based on the CDN usage of the similar product is low.
Disclosure of Invention
The invention aims to provide a method, a device and a terminal device for determining the CDN usage of a user so as to improve the accuracy of estimating the CDN usage of the user.
In a first aspect, an embodiment of the present invention provides a method for determining a CDN usage amount of a user, where the method includes: acquiring a first domain name used by a target user in a current CDN resource provider, and acquiring the total CDN consumption of the first domain name; if the domain name used by the target user comprises a plurality of domain names, determining the total CDN usage of the domain names except the first domain name according to the access amount of each domain name and the total CDN usage of the first domain name; and determining the CDN usage of the target user according to the CDN total usage of each domain name.
In an optional embodiment, the step of obtaining the CDN total usage for the first domain name includes: acquiring a first CDN usage amount of a first domain name in a current CDN resource provider; sending a preset first data access request to the first domain name, and acquiring the data volume ratio provided by each CDN resource provider in request data returned by the first domain name; and determining the total CDN consumption of the first domain name according to the ratio of the first CDN consumption to the data consumption provided by each CDN resource provider.
In an optional embodiment, the step of determining, according to the visit amount of each domain name and the CDN total usage amount of the first domain name, the CDN total usage amount of domain names other than the first domain name includes: determining the domain names except the first domain name as second domain names one by one, and executing the following operations on the second domain names: calculating the ratio of the access quantity of the second domain name to the access quantity of the first domain name; and multiplying the access quantity ratio by the total CDN consumption of the first domain name to obtain the total CDN consumption of the second domain name.
In an optional embodiment, the step of determining the CDN usage of the target user according to the total CDN usage of each domain name includes: and determining the sum of the CDN total usage of each domain name as the CDN usage of the target user.
In an optional embodiment, the step of determining the CDN usage amount of the target user according to the total CDN usage amount of each domain name includes: for each domain name, obtaining CDN usage amount provided by each CDN resource provider for the domain name; and adding the CDN usage amount provided by each CDN resource provider to each domain name for each CDN resource provider to obtain the CDN usage amount provided by the CDN resource provider to the target user.
In an optional embodiment, the step of obtaining the CDN usage provided by each CDN resource provider for the domain name includes: sending a preset second data access request to the domain name, and acquiring the data volume ratio provided by each CDN resource provider in the request data returned by the domain name; and determining the CDN usage amount of each CDN resource provider for the domain name according to the total CDN usage amount of the domain name and the data amount ratio provided by each CDN resource provider.
In a second aspect, an embodiment of the present invention provides an apparatus for determining CDN usage of a user, where the apparatus includes: the domain name acquisition module is used for acquiring a first domain name used by a target user in a current CDN resource provider and acquiring the total CDN consumption of the first domain name; the first quantity determining module is used for determining the total CDN quantity of the domain names except the first domain name according to the access quantity of each domain name and the total CDN quantity of the first domain name if the domain names used by the target user comprise a plurality of domain names; and the second usage determining module is used for determining the CDN usage of the target user according to the total CDN usage of each domain name.
In an optional implementation manner, the domain name obtaining module is configured to: acquiring a first CDN usage amount of a first domain name in a current CDN resource provider; sending a preset first data access request to the first domain name, and acquiring the data volume ratio provided by each CDN resource provider in request data returned by the first domain name; and determining the total CDN utilization amount of the first domain name according to the first CDN utilization amount and the data quantity ratio provided by each CDN resource provider.
In a third aspect, an embodiment of the present invention provides a terminal device, including a processor and a memory, where the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the method for determining CDN usage of a user according to any one of the foregoing embodiments.
In a fourth aspect, embodiments of the present invention provide a machine-readable storage medium storing machine-executable instructions, which when invoked and executed by a processor, cause the processor to implement a method for determining CDN usage of a user as set forth in any one of the preceding embodiments.
The embodiment of the invention brings the following beneficial effects:
the invention provides a method, a device and a terminal device for determining the CDN usage of a user, which comprises the steps of firstly obtaining a first domain name used by a target user in a current CDN resource provider, and obtaining the total CDN usage of the first domain name; if the domain name used by the target user comprises a plurality of domain names, determining the total CDN usage of the domain names except the first domain name according to the access amount of each domain name and the total CDN usage of the first domain name; and then determining the CDN usage of the target user according to the CDN total usage of each domain name. According to the method, the CDN usage amount of the user is estimated through the domain name used by the user, and due to the fact that relevant data of the domain name is easy to obtain and the data accuracy is high; therefore, compared with a mode of estimating the CDN usage of a similar product, the mode of estimating the CDN usage of a user through the domain name is easier to realize, the accuracy is higher, and for a CDN resource provider, accurate expansion of sales is more facilitated.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the invention as set forth above.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings 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 some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a method for determining CDN usage of a user according to an embodiment of the present invention;
fig. 2 is a flowchart of another method for determining CDN usage of a user according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for determining CDN usage of a user according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a device for determining CDN usage of a user according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the 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.
In the related art, in order to obtain the total CDN usage of a certain user, the usage needs to be estimated according to the CDN usage of a product similar to a product operated by the user; however, it is difficult to obtain the CDN usage of similar products, and the accuracy of estimating the total CDN usage of the user based on the CDN usage of similar products is low.
Based on this, the embodiment of the present invention provides a method, an apparatus, and a terminal device for determining CDN usage of a user, where the technology may be applied to a process of determining total CDN usage of the user and determining CDN usage of each CDN resource provider in various scenarios. To facilitate understanding of the embodiment, first, a method for determining a CDN usage of a user disclosed in the embodiment of the present invention is described in detail, and as shown in fig. 1, the method is applied to a terminal device, where the terminal device may be a mobile terminal (e.g., a tablet computer, a mobile phone, etc.), a computer, or a dedicated terminal device; the method comprises the following specific steps:
step S102, a first domain name used by a target user in a current CDN resource provider is obtained, and the CDN total usage of the first domain name is obtained.
The CDN (Content Delivery Network) is generally a novel Network Content service system, and is also an intelligent virtual Network built on the existing Network basis, and by means of edge servers deployed in various places, a user can obtain required Content nearby through functional modules of load balancing, content Delivery, scheduling and the like of a central platform, so that Network congestion is reduced, and the access response speed and hit rate of the user are improved. Generally, for a user with CDN resource demand, at least one CDN resource provider may be selected to provide CDN resources for the user; the CDN resource provider may be an enterprise or company or the like that may provide CDN resources. In a specific implementation, if a target user selects multiple CDN resource providers at the same time, domain names used by the target user in different CDN resource providers may be the same or different.
The target user is usually a stock customer of the current CDN resource provider, and the stock customer is usually a customer existing in the current CDN resource provider, that is, a customer already using CDN resources of the current CDN resource provider; customer information of the inventory customers is stored in the current CDN resource provider, and the customer information comprises domain names used by the inventory customers in the current CDN resource provider, the use condition of the CDN, company information and the like.
In specific implementation, a first domain name used by a target user in a current CDN resource provider can be obtained from customer information of the current CDN resource provider, and a total CDN usage amount of the first domain name can be obtained by using a network bale plucking technique, where the total CDN usage amount is a sum of CDN usage amounts of the first domain name used by the first domain name in all CDN resource providers.
Step S104, if the domain names used by the target user include a plurality of domain names, determining the total CDN usage of the domain names other than the first domain name according to the access amount of each domain name and the total CDN usage of the first domain name.
When the domain name used by the target user includes a plurality of domain names, that is, the target user uses other domain names in addition to the first domain name. The access amount of each domain name is also the Page View amount (PV) of the Page corresponding to each domain name, and the Page View amount is usually a measure of the access amount of a website or a webpage user, specifically, the PV value may be how many pages of a certain website or how many times a certain webpage is viewed by all visitors in a specified time period; the method for measuring the page browsing amount can be that a request for a web server is sent from a browser, and after receiving the request, the web server sends a web page corresponding to the request to the browser, so that a PV is generated.
In specific implementation, the CDN total usage of the domain names other than the first domain name may be obtained according to the CDN total usage of the first domain name, the visited quantity of the first domain name, and the visited quantities of the domain names other than the first domain name. When there are a plurality of other domain names except the first domain name, for each other domain name, the relationship between the total CDN usage for the first domain name and the total CDN usage for the other domain names may be determined according to the relationship between the access amount of the first domain name and the access amounts of the other domain names, so that the total CDN usage for the other domain names is obtained based on the relationship and the total CDN usage for the first domain name, and the total CDN usage for all other domain names may be obtained in this manner.
And step S106, determining the CDN usage of the target user according to the CDN total usage of each domain name.
During specific implementation, the CDN usage of the target user may be estimated according to the total CDN usage of all domain names, for example, the total CDN usage of each domain name may be added, weighted and summed, and the like, so as to obtain the CDN usage of the target user; and obtaining the CDN consumption of the target user corresponding to each CDN resource provider according to the CDN total consumption of all the domain names.
The invention provides a method for determining the CDN usage of a user, which comprises the steps of firstly obtaining a first domain name used by a target user in a current CDN resource provider, and obtaining the total CDN usage of the first domain name; if the domain names used by the target user comprise a plurality of domain names, determining the total CDN usage amount of the domain names except the first domain name according to the access amount of each domain name and the total CDN usage amount of the first domain name; and then determining the CDN usage of the target user according to the CDN total usage of each domain name. According to the method, the CDN usage amount of the user is estimated through the domain name used by the user, and due to the fact that relevant data of the domain name is easy to obtain and the data accuracy is high; therefore, compared with a mode of estimating the CDN usage of similar products, the mode of estimating the user CDN usage through the domain name is easier to realize, the accuracy is higher, and for CDN resource providers, accurate expansion of sales is more facilitated.
The embodiment of the invention also provides another method for determining the CDN usage of the user, which is realized on the basis of the method in the embodiment; the method mainly describes a specific process of obtaining the total CDN usage for the first domain name (realized by the following steps S204 to S208), and a specific process of determining the CDN usage for the target user according to the total CDN usage for each domain name (realized by the following step S212); as shown in fig. 2, the method comprises the following specific steps:
step S202, a first domain name used by the target user in the current CDN resource provider is obtained.
Step S204, obtaining a first CDN usage amount of the first domain name in the current CDN resource provider.
The first domain name is a domain name used by a target user in a current CDN resource provider, and the usage amount of CDN resources used by the first domain name in the current CDN resource provider may be a first CDN usage amount, where the first CDN usage amount may be obtained from customer information stored by the current CDN resource provider, and the customer information is usually stored in a preset database.
Step S206, sending a preset first data access request to the first domain name, and obtaining a data amount ratio provided by each CDN resource provider in the request data returned by the first domain name.
The first data access request may be a request for accessing a web page corresponding to the first domain name, where the web page includes a customer product that can be provided by a target user, CDN resources provided by each CDN resource provider may pass through in the process of accessing the web page, and each CDN resource provider corresponds to a unique identity, and a CDN resource of which CDN resource provider is used may be identified by the identity.
The returned request data includes CDN usage provided by each CDN resource provider in the first data access request, and a data amount proportion provided by each CDN resource provider, that is, a proportion of CDN resources provided by each CDN resource provider may be calculated according to the CDN usage, and in some embodiments, the CDN resources may also be access bandwidth in a unit time. For example, when the first data access request is to access a video of 10G in the first domain name, the total requested bandwidth amount is known to be 10G, and if the CDN usage amount of the CDN resource provider 1 is detected to be 3g and the CDN usage amount of the CDN resource provider 2 is 7G in the request data, it is obtained that the data amount proportion of the CDN resource provider 1 is 30% and the data amount proportion of the CDN resource provider 2 is 70%.
Step S208, determining the total CDN usage for the first domain name according to the first CDN usage and a data amount ratio provided by each CDN resource provider.
In specific implementation, the CDN total usage for the first domain name may be determined according to a ratio of a first CDN usage of a current CDN resource provider to data provided by each CDN resource provider. For example, the CDN total usage for the first domain name may be obtained by dividing the first CDN usage for the current CDN resource provider by the data provided by the current CDN resource provider.
Step S210, if the domain names used by the target user include a plurality of domain names, determining the total CDN usage of the domain names other than the first domain name according to the access amount of each domain name and the total CDN usage of the first domain name.
Step S212, the sum of the CDN total usage of each domain name is used for determining the CDN usage of the target user.
And adding the total CDN usage of the first domain name to the total CDN usage of the domain names except the first domain name to obtain the CDN usage of the target user.
The method for determining the CDN usage of the user comprises the steps of firstly obtaining a first domain name used by a target user in a current CDN resource provider, and obtaining the first CDN usage of the first domain name in the current CDN resource provider; further sending a preset first data access request to the first domain name, and acquiring the data volume ratio provided by each CDN resource provider in the request data returned by the first domain name; determining the total CDN consumption of the first domain name according to the ratio of the first CDN consumption to the data consumption provided by each CDN resource provider; if the domain names used by the target user comprise a plurality of domain names, determining the total CDN usage of the domain names except the first domain name according to the access amount of each domain name and the total CDN usage of the first domain name; and then, determining the CDN consumption of the target user according to the sum of the CDN total consumption of each domain name. Compared with a mode of estimating the total CDN consumption of the user based on the CDN consumption of similar products, the mode can reduce the difficulty of estimating the CDN consumption of the user, and can improve the accuracy of estimating the CDN consumption.
The embodiment of the invention also provides another method for determining the CDN usage of the user, which is realized on the basis of the method in the embodiment; the method mainly describes a specific process of determining the total CDN usage of domain names except the first domain name according to the access amount of each domain name and the total CDN usage of the first domain name (realized by the following step S304), and a specific process of determining the total CDN usage of a target user according to the total CDN usage of each domain name (realized by the following steps S306-S308); as shown in fig. 3, the method comprises the following specific steps:
step S302, a first domain name used by the target user in the current CDN resource provider is obtained, and a CDN total usage amount of the first domain name is obtained.
Step S304, if the domain names used by the target user include a plurality of domain names, determining the domain names other than the first domain name as the second domain name one by one, and performing the following operations on the second domain name: calculating the ratio of the access quantity of the second domain name to the access quantity of the first domain name; and multiplying the access quantity ratio by the total CDN consumption of the first domain name to obtain the total CDN consumption of the second domain name.
In specific implementation, a domain name used by a target user can be queried through a preset website, a first domain name is generally input into the preset website for searching, and a recorded domain name list can be obtained, wherein the recorded domain name list comprises all domain names used by the target user. When at least one domain name is used by the user except the first domain name, the domain names except the first domain name are sequentially determined as a second domain name, then the ratio of the access amount of the second domain name to the access amount of the first domain name is calculated, and the ratio is multiplied by the total CDN usage amount of the first domain name, so that the total CDN usage amount of the second domain name can be obtained.
In some embodiments, the access amount of the first domain name and the access amount of the second domain name may be access amounts within a specified time period (e.g., one month or one day).
Step S306, for each domain name, obtaining CDN usage provided by each CDN resource provider for the domain name.
In specific implementation, for all domain names used by the target user, the CDN usage amount provided by each CDN resource provider under each domain name may be obtained according to the data amount proportion provided by each CDN resource provider under each domain name and the total usage amount of CDNs under each domain name. Specifically, the step S306 can be implemented by the following steps 10 to 12:
and step 10, sending a preset second data access request to the domain name, and acquiring the data volume ratio provided by each CDN resource provider in the request data returned by the domain name.
The second data access request may be a request for sequentially accessing a web page corresponding to a domain name used by a target user, where the web page includes customer products that can be provided by the target user, and CDN resources provided by each CDN resource provider may pass through in the process of accessing the web page, and each CDN resource provider corresponds to a unique identity, and a CDN resource of which CDN resource provider is used may be identified by the identity.
The returned request data includes CDN usage provided by each CDN resource provider in the second data access request, and a data amount proportion provided by each CDN resource provider, that is, a proportion of CDN resources provided by each CDN resource provider, may be calculated according to the CDN usage, so that the data amount proportion provided by each CDN resource provider for each domain name used by the target user may be obtained.
And step 11, determining the CDN usage amount provided by each CDN resource provider for the domain name according to the ratio of the CDN total usage amount of the domain name to the data amount provided by each CDN resource provider.
For each domain name, the CDN total usage of the current domain name is multiplied by the data amount provided by each CDN resource provider, so that the CDN usage provided by each CDN resource provider under the current domain name can be obtained.
Step S308, for each CDN resource provider, adding the CDN usage amounts provided by the CDN resource provider for each domain name to obtain the CDN usage amount provided by the CDN resource provider for the target user.
For each CDN resource provider, adding the CDN usage amounts provided by the CDN resource providers under the respective domain names may obtain a total CDN usage amount provided by the CDN resource provider, that is, obtain the CDN usage amount provided by the CDN resource provider to the target user. In specific implementation, the CDN usage provided by each domain name under each CDN resource provider may be summarized by using an excel table, so as to calculate distribution of CDN usage corresponding to a target user under each CDN resource provider.
Firstly, acquiring a first domain name used by a target user in a current CDN resource provider, and acquiring the CDN total consumption of the first domain name; if the domain name used by the target user comprises a plurality of domain names, determining the domain names except the first domain name one by one as second domain names, and calculating the ratio of the access quantity of the second domain name to the access quantity of the first domain name; multiplying the access quantity ratio by the CDN consumption of the first domain name to obtain the CDN consumption of the second domain name; for each domain name, obtaining CDN usage amount provided by each CDN resource provider for the domain name; and adding the CDN usage amount provided by the CDN resource provider to each domain name for each CDN resource provider to obtain the CDN usage amount provided by the CDN resource provider to the target user. The method can be used for mining the CDN consumption of the target user, which can be increased, and the CDN consumption of each CDN resource provider, so that sales personnel can accurately know the CDN consumption of the target user, and accurate sales expansion is facilitated.
Corresponding to the foregoing method embodiment, an embodiment of the present invention provides a device for determining a CDN usage of a user, where as shown in fig. 4, the device is disposed in a terminal device, and the device includes:
the domain name obtaining module 40 is configured to obtain a first domain name used by a target user in a current CDN resource provider, and obtain a CDN total usage amount of the first domain name.
The first quantity determining module 41 is configured to determine, if the domain name used by the target user includes multiple domain names, a CDN total quantity of the domain names other than the first domain name according to the access quantity of each domain name and the CDN total quantity of the first domain name.
And a second usage determining module 42, configured to determine, according to the total CDN usage of each domain name, the CDN usage of the target user.
The device for determining the CDN usage of the user firstly acquires a first domain name used by a target user in a current CDN resource provider and acquires the total CDN usage of the first domain name; if the domain names used by the target user comprise a plurality of domain names, determining the total CDN usage amount of the domain names except the first domain name according to the access amount of each domain name and the total CDN usage amount of the first domain name; and then determining the CDN usage of the target user according to the CDN total usage of each domain name. According to the method, the CDN usage amount of the user is estimated through the domain name used by the user, and due to the fact that relevant data of the domain name is easy to obtain and the data accuracy is high; therefore, compared with a mode of estimating the CDN usage of a similar product, the mode of estimating the CDN usage of a user through the domain name is easier to realize, the accuracy is higher, and for a CDN resource provider, accurate expansion of sales is more facilitated.
Specifically, the domain name obtaining module 40 is configured to: acquiring a first CDN usage amount of a first domain name in a current CDN resource provider; sending a preset first data access request to the first domain name, and acquiring the data volume ratio provided by each CDN resource provider in request data returned by the first domain name; and determining the total CDN consumption of the first domain name according to the ratio of the first CDN consumption to the data consumption provided by each CDN resource provider.
Further, the first quantity determining module 41 is configured to: determining the domain names except the first domain name as second domain names one by one, and executing the following operations on the second domain names: calculating the ratio of the access quantity of the second domain name to the access quantity of the first domain name; and multiplying the access quantity ratio by the total CDN consumption of the first domain name to obtain the total CDN consumption of the second domain name.
Further, the second quantity determining module 42 is configured to: and determining the sum of the CDN total usage of each domain name as the CDN usage of the target user.
Further, the second amount determining module 42 further includes: a CDN usage obtaining unit configured to obtain, for each domain name, a CDN usage provided by each CDN resource provider for the domain name; and the CDN usage determining unit is used for adding the CDN usage provided by the CDN resource provider to each domain name for each CDN resource provider to obtain the CDN usage provided by the CDN resource provider to the target user.
Further, the CDN usage obtaining module is configured to: sending a preset second data access request to the domain name, and acquiring the data volume ratio provided by each CDN resource provider in the request data returned by the domain name; and determining the CDN usage amount of each CDN resource provider for the domain name according to the ratio of the CDN total usage amount of the domain name to the data amount provided by each CDN resource provider.
The implementation principle and the generated technical effect of the device for determining the CDN usage of the user provided by the embodiment of the present invention are the same as those of the method embodiment described above, and for brief description, reference may be made to corresponding contents in the method embodiment described above where no mention is made in the device embodiment.
Referring to fig. 5, the terminal device includes a processor 101 and a memory 100, where the memory 100 stores a machine executable instruction that can be executed by the processor 101, and the processor 101 executes the machine executable instruction to implement the method for determining the CDN usage of the user.
Further, the terminal device shown in fig. 5 further includes a bus 102 and a communication interface 103, and the processor 101, the communication interface 103, and the memory 100 are connected through the bus 102.
The memory 100 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile memory (non-volatile memory), such as at least one disk memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like may be used. The bus 102 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 5, but this does not indicate only one bus or one type of bus.
The processor 101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 101. The processor 101 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and completes the steps of the method of the foregoing embodiment in combination with the hardware thereof.
An embodiment of the present invention further provides a machine-readable storage medium, where a machine-executable instruction is stored, and when the machine-executable instruction is called and executed by a processor, the machine-executable instruction causes the processor to implement the method for determining a CDN usage of a user.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the apparatus and/or the electronic device described above may refer to corresponding processes in the foregoing method embodiments, and are not described herein again.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (5)

1. A method for determining CDN usage of a user is characterized by comprising the following steps:
the method comprises the steps of obtaining a first domain name used by a target user in a current CDN resource provider, and obtaining a first CDN usage amount of the first domain name in the current CDN resource provider;
sending a preset first data access request to the first domain name, and acquiring the data volume ratio provided by each CDN resource provider in request data returned by the first domain name;
determining the total CDN utilization amount of the first domain name according to the ratio of the first CDN utilization amount to the data amount provided by each CDN resource provider;
if the domain name used by the target user comprises a plurality of domain names, determining the domain names except the first domain name as second domain names one by one, and executing the following operations on the second domain names: calculating the ratio of the access quantity of the second domain name to the access quantity of the first domain name; multiplying the access quantity ratio by the total CDN consumption of the first domain name to obtain the total CDN consumption of the second domain name;
determining the CDN usage of the target user according to the CDN total usage of each domain name; the method for determining the CDN usage amount of the target user according to the CDN total usage amount of each domain name comprises the following steps: determining the sum of the CDN total usage of each domain name as the CDN usage of the target user or acquiring the CDN usage of each domain name provided by each CDN resource provider for the domain name for each domain name; and adding the CDN usage amount provided by the CDN resource provider to each domain name for each CDN resource provider to obtain the CDN usage amount provided by the CDN resource provider to the target user.
2. The method of claim 1, wherein the step of obtaining the CDN usage provided by each CDN resource provider for the domain name comprises:
sending a preset second data access request to the domain name, and acquiring the data volume ratio provided by each CDN resource provider in the request data returned by the domain name;
and determining the CDN usage amount of each CDN resource provider for the domain name according to the CDN total usage amount of the domain name and the data amount ratio provided by each CDN resource provider.
3. An apparatus for determining CDN usage of a user, the apparatus comprising:
the domain name acquisition module is used for acquiring a first domain name used by a target user in a current CDN resource provider and acquiring a first CDN usage amount of the first domain name in the current CDN resource provider; sending a preset first data access request to the first domain name, and acquiring the data volume ratio provided by each CDN resource provider in request data returned by the first domain name; determining the total CDN consumption of the first domain name according to the ratio of the first CDN consumption to the data consumption provided by each CDN resource provider;
a first quantity determining module, configured to determine, if the domain name used by the target user includes multiple domain names, domain names other than the first domain name one by one as a second domain name, and perform the following operations on the second domain name: calculating the ratio of the access quantity of the second domain name to the access quantity of the first domain name; multiplying the access quantity ratio by the total CDN consumption of the first domain name to obtain the total CDN consumption of the second domain name; the second usage determining module is used for determining the CDN usage of the target user according to the total CDN usage of each domain name; the method for determining the CDN usage amount of the target user according to the total CDN usage amount of each domain name comprises the following steps: determining the sum of the CDN total usage of each domain name as the CDN usage of the target user or for each domain name, and acquiring the CDN usage of each CDN resource provider for the domain name; and adding the CDN usage amount provided by the CDN resource provider to each domain name for each CDN resource provider to obtain the CDN usage amount provided by the CDN resource provider to the target user.
4. A terminal device comprising a processor and a memory, said memory storing machine executable instructions executable by said processor, said processor executing said machine executable instructions to implement the method of determining CDN usage for a user of any one of claims 1 to 2.
5. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of CDN usage determination for a user of any one of claims 1 to 2.
CN202010451954.XA 2020-05-25 2020-05-25 Method and device for determining CDN usage of user and terminal equipment Active CN111625359B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010451954.XA CN111625359B (en) 2020-05-25 2020-05-25 Method and device for determining CDN usage of user and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010451954.XA CN111625359B (en) 2020-05-25 2020-05-25 Method and device for determining CDN usage of user and terminal equipment

Publications (2)

Publication Number Publication Date
CN111625359A CN111625359A (en) 2020-09-04
CN111625359B true CN111625359B (en) 2023-04-18

Family

ID=72260867

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010451954.XA Active CN111625359B (en) 2020-05-25 2020-05-25 Method and device for determining CDN usage of user and terminal equipment

Country Status (1)

Country Link
CN (1) CN111625359B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115442331B (en) * 2022-08-29 2023-11-03 天翼云科技有限公司 Domain name access method, device, network equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764747A (en) * 2009-12-24 2010-06-30 北京世纪互联宽带数据中心有限公司 Intelligent dispatching method, device and system of content delivery network flow
CN103312629A (en) * 2012-03-09 2013-09-18 深圳市腾讯计算机系统有限公司 Method, device and system of CDN (content delivery network) flow distribution
CN103324535A (en) * 2012-03-23 2013-09-25 百度在线网络技术(北京)有限公司 Method and device for allocating computing resources
CN103841150A (en) * 2012-11-26 2014-06-04 华为技术有限公司 Data delivery method and device based on content delivery network CDN
CN104639391A (en) * 2015-01-04 2015-05-20 中国联合网络通信集团有限公司 Method for generating network flow record and corresponding flow detection equipment
CN105871734A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Method and device for acquiring traffic distribution information of local domain name system
CN106301966A (en) * 2016-10-25 2017-01-04 北京云端智度科技有限公司 A kind of method of pro-rata flow based on domain name
CN106452940A (en) * 2016-08-22 2017-02-22 中国联合网络通信有限公司重庆市分公司 Method and device for identifying Internet business flow ownership
CN110445886A (en) * 2019-07-05 2019-11-12 网宿科技股份有限公司 A kind of method and system realizing domain name access and accelerating
WO2019237557A1 (en) * 2018-06-13 2019-12-19 网宿科技股份有限公司 Method and device for controlling multi-cname traffic ratio

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10673805B2 (en) * 2017-09-29 2020-06-02 Level 3 Communications, Llc Dynamic binding and load determination in a content delivery network (CDN)

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764747A (en) * 2009-12-24 2010-06-30 北京世纪互联宽带数据中心有限公司 Intelligent dispatching method, device and system of content delivery network flow
CN103312629A (en) * 2012-03-09 2013-09-18 深圳市腾讯计算机系统有限公司 Method, device and system of CDN (content delivery network) flow distribution
CN103324535A (en) * 2012-03-23 2013-09-25 百度在线网络技术(北京)有限公司 Method and device for allocating computing resources
CN103841150A (en) * 2012-11-26 2014-06-04 华为技术有限公司 Data delivery method and device based on content delivery network CDN
CN104639391A (en) * 2015-01-04 2015-05-20 中国联合网络通信集团有限公司 Method for generating network flow record and corresponding flow detection equipment
CN105871734A (en) * 2015-01-22 2016-08-17 阿里巴巴集团控股有限公司 Method and device for acquiring traffic distribution information of local domain name system
CN106452940A (en) * 2016-08-22 2017-02-22 中国联合网络通信有限公司重庆市分公司 Method and device for identifying Internet business flow ownership
CN106301966A (en) * 2016-10-25 2017-01-04 北京云端智度科技有限公司 A kind of method of pro-rata flow based on domain name
WO2019237557A1 (en) * 2018-06-13 2019-12-19 网宿科技股份有限公司 Method and device for controlling multi-cname traffic ratio
CN110445886A (en) * 2019-07-05 2019-11-12 网宿科技股份有限公司 A kind of method and system realizing domain name access and accelerating

Also Published As

Publication number Publication date
CN111625359A (en) 2020-09-04

Similar Documents

Publication Publication Date Title
RU2628127C2 (en) Method and device for identification of user behavior
CN110020367B (en) Page rendering method and device
CN109309596A (en) A kind of method for testing pressure, device and server
CN114095567B (en) Data access request processing method and device, computer equipment and medium
CN110826893B (en) Target client determination method and device and terminal equipment
CN113034241B (en) Product information recommendation method and computer equipment
CN105610995A (en) Selection method of DNS server, selection device of the DNS server and terminal
CN111338967A (en) Shunting test method and device, electronic equipment and storage medium
CN111625359B (en) Method and device for determining CDN usage of user and terminal equipment
CN115190010A (en) Distributed recommendation method and device based on software service dependency relationship
CN112861031A (en) URL (Uniform resource locator) refreshing method, device and equipment in CDN (content delivery network) and CDN node
CN115375339A (en) Multimedia information recommendation method, device and equipment and computer storage medium
CN108932594B (en) Information pushing method and device
CN111107118A (en) Picture access acceleration method, device, equipment, system and storage medium
CN112596985A (en) IT asset detection method, device, equipment and medium
CN112187870A (en) Bandwidth smoothing method and device
US10171602B2 (en) Determining device counts
CN111881148A (en) Object combination attribute determination method and device and electronic equipment
CN108229127B (en) System and method for generating authentication data in advance to distinguish clients
JP2011227720A (en) Recommendation system, recommendation method and recommendation program
CN112491939B (en) Multimedia resource scheduling method and system
CN113746920A (en) Data forwarding method and device, electronic equipment and computer readable storage medium
CN112231566A (en) Information pushing method, device and system and readable storage medium
CN111159196A (en) Block chain data storage and acquisition method and device based on fragmentation
JP2007293520A (en) Information processor and information processing program

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