Website content distribution network architecture determination method, device and readable storage medium

By using the dig command and the query results of multiple slave server nodes, the problem of low accuracy in determining the CDN architecture in the existing technology is solved, more abundant and authoritative query results are achieved, and the accuracy of determining the CDN architecture is improved.

CN116132249BActive Publication Date: 2024-09-24MASHANG CONSUMER FINANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310076244.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-18
Publication Date
2024-09-24
Estimated Expiration
2043-01-18

AI Technical Summary

Technical Problem

In the process of determining the CDN architecture of a website in the prior art, the parsing results obtained through nslookup can easily lead to low accuracy, making it impossible to obtain authoritative query results.

Method used

The dig command is used to combine the query results of multiple slave server nodes, and the dig command is issued and executed uniformly through the master server node to obtain multiple query results to determine the CDN node information of the target website, thereby improving the richness and authoritativeness of the query results.

Benefits of technology

Multiple query results obtained through the dig command can more accurately determine the CDN architecture of the target website, improving the accuracy and comprehensiveness of the CDN architecture determination.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116132249B
    Figure CN116132249B
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and readable storage medium for determining a website content distribution network architecture, and belongs to the field of communication technology. The method includes: obtaining multiple query results, the multiple query results include query results obtained by executing a dig command from multiple slave server nodes in response to an execution command sent by a master server node, the execution command includes the URL of the target website, the dig command includes command parameters, the command parameters include the URL and tracking parameters, and multiple slave server nodes are respectively arranged in different positions; based on the multiple query results, the target information of at least two CDN nodes of the target website is determined, and the target information includes an Internet Protocol IP address; according to the target information of at least two CDN nodes, the target CDN architecture of the target website is determined. More abundant and authoritative query results can be obtained through dig command query, and multiple query results obtained by executing dig commands from multiple slave server nodes can be obtained, which can improve the accuracy of the determined target CDN architecture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method, device and readable storage medium for determining a website content distribution network architecture. Background Art

[0002] Some large video websites, e-commerce websites, and other websites have numerous web pages and need to store a large amount of static resources, scripts such as js, css, html, and files such as pictures and videos. These websites generally use content delivery network (CDN) caching technology to cache resources on the node closest to the user, so that users can obtain resources from the node closest to them without accessing the source site, which not only reduces the access pressure on the source site, but also saves website bandwidth.

[0003] Due to the different CDN network architectures of websites, the speeds at which users in different regions access websites vary to a certain extent. For example, a website has CDN nodes distributed in Beijing. Users in Beijing can access the nearest source node (for example, CDN nodes distributed in Beijing) when accessing the website. In more remote areas, CDN nodes of the website are not distributed, and users in the area have a poor experience when accessing the website. It is understandable that the differences in the experience of users in different regions accessing the website are directly related to the CDN architecture of the website. It is necessary to detect the CDN architecture of the website and understand the CDN architecture of the website in order to subsequently improve the overall Internet experience of the website.

[0004] However, currently, in the process of detecting the CDN architecture of a website, the commonly used method is to detect it through the nslookup method. However, the non-authoritative answer obtained through the nslookup method is stored in the cache of the DNS resolution server, which can easily lead to low accuracy of the CDN architecture of the determined website. Summary of the invention

[0005] The embodiments of the present application provide a method, device and readable storage medium for determining a content distribution network architecture of a website, so as to solve the problem of low accuracy in determining a CDN architecture of a website.

[0006] In order to solve the above technical problems, this application is implemented as follows:

[0007] In a first aspect, an embodiment of the present application provides a method for determining a website content distribution network architecture, the method comprising:

[0008] Acquire multiple query results, the multiple query results include query results obtained by executing a dig command by multiple slave server nodes in response to an execution command sent by a master server node, the execution command includes a URL of a target website, the dig command includes command parameters, the command parameters include the URL and tracking parameters, and the multiple slave server nodes are respectively arranged in different positions;

[0009] Based on the multiple query results, determine target information of at least two content delivery network (CDN) nodes of the target website, wherein the target information includes an Internet Protocol (IP) address;

[0010] A target CDN architecture for the target website is determined according to the target information of the at least two CDN nodes.

[0011] It can be seen that in the embodiment of the present application, on the one hand, the slave server node executes the dig command to obtain the query result. Compared with the related nslookup method, a query result with richer information and more authoritative can be obtained. On the other hand, the main server node uniformly issues an execution command to enable multiple slave server nodes to execute the dig command, thereby obtaining multiple query results. In this way, the target information of at least two content distribution network CDN nodes of the target website is determined using the multiple query results obtained, so as to determine the target CDN architecture of the target website. Since richer and more authoritative query results can be obtained through the dig command query, and multiple query results obtained by executing the dig command from multiple slave server nodes can be obtained, the accuracy of the obtained target CDN architecture can be improved.

[0012] In a second aspect, an embodiment of the present application further provides a device for determining a website content distribution network architecture, including:

[0013] A first acquisition module is used to acquire multiple query results, wherein the multiple query results are query results obtained by executing a dig command when multiple slave server nodes receive a corresponding execution command sent by a master server node, wherein the execution command includes a URL of a target website, and the dig command includes command parameters, and the command parameters include the URL and a tracking parameter, and the multiple slave server nodes are respectively arranged at different positions;

[0014] A first determination module, configured to determine target information of at least two content delivery network (CDN) nodes of the target website based on the multiple query results, wherein the target information includes an Internet Protocol (IP) address;

[0015] The second determination module is used to determine the target CDN architecture of the target website according to the relevant information of the at least two CDN nodes.

[0016] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps in the above-mentioned method for determining the website content distribution network architecture when executing the computer program.

[0017] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above-mentioned method for determining the website content distribution network architecture are implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] Figure 1 It is a flow chart of a method for determining a website content distribution network architecture provided by an embodiment of the present application;

[0020] Figure 2 It is one of the principle diagrams of a method for determining a website content distribution network architecture provided in an embodiment of the present application;

[0021] Figure 3 This is the second schematic diagram of a method for determining a website content distribution network architecture provided in an embodiment of the present application;

[0022] Figure 4 This is a schematic diagram of a CDN architecture provided by an embodiment of the present application;

[0023] Figure 5 It is a structural diagram of a device for determining a website content distribution network architecture provided by an embodiment of the present application;

[0024] Figure 6 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0026] See also Figure 1 , Figure 1 is a flow chart of a method for determining a website content distribution network architecture provided by an embodiment of the present application, such as Figure 1 As shown, the following steps are included:

[0027] Step 101: Acquire multiple query results, where the multiple query results include query results obtained by executing dig commands by multiple slave server nodes in response to execution commands sent by a master server node.

[0028] The execution command includes the URL of the target website, the parameters of the dig command include the URL and tracking parameters, and multiple slave server nodes are deployed in different locations.

[0029] CDN is an intelligent virtual network built on the existing network. It relies on edge servers deployed in various places and uses the load balancing, content distribution, scheduling and other functional modules of the central platform to enable users to obtain the required content nearby, reduce network congestion, and improve user access response speed and hit rate. The key technologies of CDN mainly include content storage and distribution technology.

[0030] It should be noted that the dig command is a domain name query command. Dig is a command tool for querying information including NS records, A records, MX records, etc. in Unix-like systems. Compared with the nslookup service (nslookup obtains non-authoritative answers stored in the cache of the DNS resolution server), the dig execution results are richer, more authoritative and detailed. It should be noted that A (Address) record: A (Address) record is a record used to specify the IP address corresponding to the host name (or domain name), that is, to resolve a domain name to an IP address (Address, a special digital IP address). The command parameters of the dig command in the embodiment of the present application include a website address and a tracking parameter (trace), that is, the dig command used in the present application can be a dig command in the form of "dig website address + trace". Since the local machine cannot obtain the iterative query information of the recursive server, dig + trace can recursively resolve the DNS used by a certain domain name (a service that maps a domain name to a specific IP address), and the complete domain name iterative query process can be known. For example, for a website address: www.xxx.com, the dig command form can be: digwww.xxx.com+trace.

[0031] It should be noted that the above-mentioned multiple slave server nodes can be controlled by the master server node, and the master server node can be understood as a master control server node. In this embodiment, the master server node can uniformly issue an execution command to control the slave server node to execute the dig command to obtain the corresponding query results. It can be understood that multiple slave server nodes execute the dig command in parallel when receiving the execution command issued by the master server node to obtain the corresponding query results, which can improve the efficiency of obtaining multiple query results. In addition, in this embodiment, multiple slave server nodes are respectively arranged in different locations. For example, multiple slave server nodes can be servers in operator computer rooms distributed in different regions in various provinces across the country. Multiple slave server nodes distributed in different locations are used to execute the dig command to obtain multiple query results. In this way, the target information of the relevant CDN nodes can be determined from the multiple query results to build the target CDN architecture, which can improve the accuracy of the target CDN architecture.

[0032] Step 102: Determine target information of at least two content delivery network (CDN) nodes of the target website based on the multiple query results.

[0033] The target information includes an Internet Protocol (IP) address. It is understood that the query result may include an IP address. After obtaining multiple query results, the multiple query results may be parsed to obtain the IP address of the CDN node of the target website, and the IP address of the CDN node of the target website may be determined from the multiple query results. The IP addresses of at least two CDN nodes of the target website belong to the IP addresses in the multiple query results.

[0034] Step 103: Determine a target CDN architecture for a target website based on target information of at least two CDN nodes.

[0035] After obtaining the target information of at least two CDN nodes of the target website, the target CDN architecture, also called the target CDN topology diagram of the target website, can be generated using the URL of the target website and the target information of at least two CDN nodes.

[0036] In the embodiment of the present application, on the one hand, the slave server node executes the dig command to obtain the query result. Compared with the related nslookup method, more information-rich and authoritative query results can be obtained. On the other hand, the main server node uniformly issues an execution command to enable multiple slave server nodes to execute the dig command, thereby obtaining multiple query results. In this way, the target information of at least two CDN nodes of the target website is determined using the multiple query results obtained, thereby determining the target CDN architecture of the target website. Since richer and more authoritative query results can be obtained through the dig command query, and multiple query results obtained by executing the dig command from multiple slave server nodes can be obtained, the accuracy of the determined target CDN architecture can be improved.

[0037] In one embodiment, determining a target CDN architecture of a target website according to target information of at least two CDN nodes includes:

[0038] An association relationship is established between the URL of the target website and the target information of each CDN node in at least two CDN nodes, and a target CDN architecture of the target website is generated.

[0039] That is, in this embodiment, after determining the target website, the target CDN architecture of the target website can be generated by establishing an association relationship between the URL of the target website and the target information of each CDN node in at least two CDN nodes. It can be understood that the target CDN architecture determined in this embodiment may include not only the URL of the target website and the target information of at least two CDN nodes of the target website, but also the association relationship between the URL of the target website and the target information of each CDN node in at least two CDN nodes, that is, the target CDN architecture may include more abundant information, thereby improving the comprehensiveness of the target CDN architecture.

[0040] In one embodiment, based on the multiple query results, determining target information of at least two content delivery network (CDN) nodes of the target website includes:

[0041] The multiple query results are stored in N storage nodes of the distributed storage system, where N is an integer greater than 1;

[0042] Obtain target information by distributing multiple query results through N storage nodes based on distributed computing.

[0043] After obtaining multiple query results, they can be stored in N storage nodes of the distributed storage system. In an example, the above distributed storage system can be a distributed file system (Hadoop Distributed FileSystem, HDFS) or a glusterfs system (a scalable network file system, also a distributed file system). Hadoop: Distributed system infrastructure, implements a distributed file system, one of the components of which is HDFS, and a distributed computing framework mapreduce.

[0044] The N storage nodes of the distributed storage system can perform distributed processing (e.g., parsing) on ​​multiple query results through distributed computing to obtain the target information of the at least two CDNs. In one example, the distributed computing method can be a mapreduce computing method or a spark computing method. Spark: A fast and general computing engine designed for large-scale data processing, a general parallel framework similar to Hadoop mapreduce. Spark has the advantages of Hadoop mapreduce, but unlike mapreduce, the intermediate output results of the job can be stored in memory, so there is no need to read and write HDFS.

[0045] That is, in this embodiment, multiple query results can be processed by N storage nodes using a distributed computing method, which can improve the processing speed and the efficiency of obtaining the above-mentioned target information.

[0046] In one embodiment, storing multiple query results in N storage nodes of a distributed storage system includes:

[0047] The multiple query results are distributedly stored in N storage nodes of the distributed storage system, each of the N storage nodes stores partial results of the multiple query results, and the partial results stored in each storage node are different.

[0048] That is, in this embodiment, multiple query results can be distributedly stored, that is, multiple query results can be distributedly stored in N storage nodes, each of the N storage nodes stores partial results of multiple query results respectively, and the partial results stored in each storage node are different. It can be understood that the multiple query results include the partial results stored in each of the N storage nodes, and the partial results stored in the N storage nodes constitute the above multiple query results. In this embodiment, multiple query results are distributedly stored in N storage nodes, so that each storage node stores partial results of multiple query results, so as to facilitate the subsequent distributed calculation of multiple query results to obtain target information, which can improve the efficiency of obtaining target information.

[0049] In one embodiment, after determining the target CDN architecture of the target website according to the target information of at least two CDN nodes, the method further includes:

[0050] Acquire multiple historical CDN architectures of the target website, where the determination time of the multiple historical CDN architectures is before the determination time of the target CDN architecture of the target website;

[0051] Determine the CDN evolution of the target website based on the target CDN architecture of the target website and multiple historical CDN architectures.

[0052] It should be noted that the above-mentioned historical CDN architecture is a CDN architecture determined at a historical time before the determination time of the target CDN architecture, and is a CDN architecture determined at a different time. The historical CDN architecture can be determined in advance, and each historical CDN architecture has a corresponding time. The process of determining the historical CDN architecture is similar to the process of determining the target CDN architecture, and will not be repeated here.

[0053] As time goes by, the CDN architecture of a website may change to better meet the user's access needs for the website. In this embodiment, multiple historical CDN architectures can be obtained, and the target CDN architecture and multiple historical CDN architectures can be used to determine the CDN evolution of the target website, so as to observe the changes in the CDN of the target website.

[0054] In one embodiment, the master server node is the server end of the Salt service, and multiple slave server nodes are the clients of the Salt service. The master server node of the Salt service is used to manage the slave server nodes of the Salt service, and the slave server nodes of the Salt service are used to execute commands issued by the master server node of the Salt service.

[0055] It can be understood that the master service of salt can be deployed on the master server node, and the master server node can be understood as the master node of the salt service. The minion service of salt can be deployed on the slave server node, and the slave server node can be understood as the minion node of the salt service. Salt is based on the C / S architecture. The server is called master and the client is called minion. The communication between master and minion is through the ZeroMQ message queue. Both master and minion run as daemons, and they always listen to the ret_port port (4506, receiving minion requests) and publish_port (4505, ZMQ publishing messages) in the configuration file. ZeroMQ enables salt to quickly perform various operations on batch machines.

[0056] In this embodiment, the master server node can send an execution command to multiple slave servers, and the execution command can be used to make the slave server node execute the dig command. After receiving the execution command sent by the master server node, the slave server node can execute the dig command in response to the execution command to complete the execution of the execution command of the master server node. In this embodiment, the execution command can be sent to multiple clients of the salt service through the server end of the salt service, so that the multiple clients of the salt service execute the dig command to obtain multiple query results, thereby obtaining richer and more authoritative query results, thereby determining the target information, and using the target information to generate the target CDN architecture, thereby improving the accuracy of the determined target CDN architecture.

[0057] In one embodiment, the target information also includes an alias record, a geographic location, and operator information. The geographic location and operator information are obtained by querying a preset association library based on the IP address.

[0058] Alias ​​record is CNAME, which allows you to map multiple names to another domain name. Even if the domain name is resolved to another domain name. CNAME points several host names to an alias, which is actually the same as pointing to an IP address. Alias ​​records also need to make an A (IP address) record. However, using CNAME records can easily change IP addresses. If a server has 100 websites, all of which have aliases, when the server changes its IP, it only needs to change the A record of the alias record.

[0059] Alias ​​records can be obtained from the query results. After obtaining the IP address of the CDN node of the target website, alias records can be obtained from multiple query results. In addition, the IP address of the CDN node of the target website can be used to query the preset association library (also called IP library, which can include multiple IP addresses and corresponding geographical locations and operator information, etc.) to determine the geographical location and operator information of the CDN node of the target website. The preset association library can be collected by professional technicians through a variety of technical means over a long period of time. It can know IP-related information such as operators, geographical locations, etc., and is updated, maintained, and supplemented by professionals for a long time.

[0060] In this embodiment, the target information may include, in addition to the IP address of the CDN of the target website, an alias record, a geographic location, and operator information to enrich the target information of the CDN of the target website. The CDN architecture of the target website is generated based on the target information of the CDN of the target website, thereby enriching the information of the CDN architecture.

[0061] The process of the above method is described in detail below with a specific embodiment. The query result can be a message result, that is, the query result can be a query message or a result message.

[0062] First, deploy the Salt service:

[0063] Deploy Salt's master service and Salt's API service on a Linux server node that can access the external network. This server node is the master node.

[0064] In the 32 provinces of the country, the communication operator's computer room in each region of each province can deploy multiple slave server nodes with network security and access to the Internet. The server nodes are installed with Linux operating system, dig-related tool commands, and Salt minion service. They are nodes that execute Salt's master and issue execution commands.

[0065] Secondly, dig+trace message collection:

[0066] There are two ways to collect messages using dig+trace: real-time collection and offline batch collection.

[0067] Real-time data collection, using salt, is sent from the master node command to the minion nodes deployed in each computer room in 32 provinces across the country. The minion nodes execute the dig www.xxx.com+trace command. Each minion node returns the result message obtained by executing the dig command to the central node for storage.

[0068] For offline batch collection, deploy a script program on the minion node, which can be a python script. The main function of the script is to read the website address of the configuration file. The configuration file can be centrally distributed and managed using salt. Scheduled execution of the website URL command in the dig+trace configuration file, and save the result message of the command to the local log file for compression. For example, execute every two hours. Write to the result file dig_YY_log.2022052620.zip. Save the result file to the directory specified by each minion node. Then issue the rsync command through salt-master. Upload the dig log compressed file of a certain website at a certain time to the central node. rsync is a data mirroring backup tool under the Linux system. It can be synchronized remotely using the fast incremental backup tool Remote Sync. It supports local replication or synchronization with other SSH and rsync hosts.

[0069] Furthermore, the dig+trace message analysis and calculation:

[0070] When executing the command in the form of dig URL + trace, the result message obtained is unstructured data, but the format of the message remains basically unchanged.

[0071] The following uses dig www.xxx.com+trace as an example to illustrate.

[0072] A slave server node deployed in a computer room of Chongqing Unicom operator executes the dig www.xxxcom+trace command, which will first recursively query the DNS of 13 root servers, and then finally find the CNAME, A record and the IP address of the A record. By default, it is the IP address of the CDN node that accesses the website www.xxx.com in the Chongqing Unicom computer room. After obtaining the IP address, the geographical location of the IP and the corresponding operator information can be queried through the IP library.

[0073] Similarly, a slave server node deployed in a computer room of Shanghai Unicom operator gets another IP address after executing digwww.xxx.com+trace. This IP address is the IP address of the CDN node that accesses www.xxx.com from a slave server node in a computer room of Shanghai Unicom operator by default.

[0074] By inference, after executing the digwww.xxx.com+trace command in parallel on the slave server nodes of different operators' computer rooms in 32 provinces across the country, different result messages will be generated, from which the IP addresses of the CDN nodes accessing the URL from the slave server nodes of different operators' computer rooms in each province can be obtained. By associating the IP library, the target information of the CDN nodes of the entire website can be obtained, thereby determining the CDM network topology map.

[0075] For large batch log file calculations:

[0076] When there are many websites to be analyzed and many historical log packages to be analyzed. The log files can be decompressed into txt and uploaded to the distributed file system HDFS or distributed storage system glusterfs of the Hadoop cluster, and then the mr program or spark program is used to calculate and parse the message into structured data such as: source station domain name (website URL), local operator, local IP, CDN CNAME, A record (CDN IP address). In provinces and operators' computer rooms across the country, the collected result messages are converted into structured data. Then the IP library is queried to obtain the geographical information and operator information of the CDN. Finally, a structured table data is formed, such as a Hive table or a myslq table. Through the structured Hive table data, the network topology architecture of the CDN of a certain website can be queried. After recording the historical analysis every few days, by querying the topology diagram of the website CDN architecture at different times, the historical changes of the CDN architecture of the website can be roughly analyzed, and the historical changes of a website in its own CDN network construction can be viewed.

[0077] like Figure 2 As shown, a system that can implement the above-mentioned method for determining the website content distribution network architecture may include a master server node, multiple slave server nodes, a central node, a distributed storage system, a display system, etc. The multiple slave server nodes may include server nodes in operator computer rooms distributed in different regions of provinces across the country. Figure 3 , the process of the method of this embodiment is as follows:

[0078] The master node of the salt service sends data to multiple minion nodes of the salt service (such as Figure 2 and 3 minion-1, minion-2, minion-3, minion-4, ..., minion-M, etc., where M is an integer greater than 1) sends an execution command including the URL of the target website;

[0079] After receiving the execution command, multiple minion nodes execute the dig command in parallel. For example, execute the www.xxx.com+trace command, obtain multiple result messages, and upload the multiple result messages to the central node. The central node stores the multiple result messages in a distributed manner on the HDFS or glusterfs of the Hadoop cluster. For example, the master of slat manages the minion nodes of 32 computer rooms across the country and each operator. Because the CDN nodes of the website are distributed in different geographical areas and different computer rooms. The master of the salt service manages more than 100 minion nodes of the salt service. The minion node executes the dig command to access the CDN log, that is, the query results are in the form of logs. The multiple query results obtained can generate a compressed package, and the log compressed file can be synchronized to the log center (central node) through the rsync synchronization function. Each log compressed file name follows a certain specification, such as: website_computer room IP_time interval. When the log file is synchronized to the central node, the central node can upload the log file to the distributed file system HDFS of the Hadoop cluster or the distributed storage system glusterfs. In addition, the dig command may be executed once at a preset interval to form a file compression package, which is then uploaded to the central node and then uploaded to HDFS or glusterfs through the central node to provide subsequent calculations.

[0080] The log files under a certain date on HDFS or glusterfs are read in batches, and the corresponding Hive table or MySQL table is obtained by using mapreduce calculation (HDFS) or spark calculation and associating with the IP library to record the source station URL, calculation date, and the target information of the CDN node corresponding to the source station URL, such as CNAME, A record (IP address of CDN node), IP geographic information of CDN node, IP operator of CDN node, etc. Based on the source station URL and the corresponding CDN target information, the CDN architecture of the source station is generated, such as Figure 4 As shown in the figure, the CDN architecture of the source site www.xxx.com includes five CDN nodes. Then the CDN architecture of the source site can be displayed for users to view.

[0081] Through the scheme of the embodiment of the present application, slave server nodes can be deployed in the computer rooms of various operators in different regions of various provinces across the country, and salt services can be deployed from the server nodes to collect result messages of commands in the form of dig URL + trace. The result messages collected from different provinces and obtained by executing the dig URL + trace command are analyzed to obtain different CNAMEs, A records, etc., and the IP addresses and CNAMEs of the CDN nodes of the slave server nodes in the computer rooms of various operators in different regions of various provinces are determined to access the source station. The result messages can be analyzed in batches, and combined with the CND architecture of historical records, the evolution history of the website CDN architecture can be analyzed.

[0082] See also Figure 5 , Figure 5 1 is a structural diagram of a device for determining a website content distribution network architecture provided in an embodiment of the present application. The device for determining a website content distribution network architecture in this embodiment can implement the details of the method for determining a website content distribution network architecture in the above embodiment and achieve the same effect. Figure 5 As shown, the website content distribution network architecture determination device 500 includes:

[0083] The first acquisition module 501 is used to acquire multiple query results, where the multiple query results are query results obtained by executing a dig command when multiple slave server nodes receive a corresponding execution command sent by a master server node, where the execution command includes the URL of a target website, the dig command includes command parameters, and the command parameters include the URL and tracking parameters, and the multiple slave server nodes are respectively arranged in different positions;

[0084] A first determination module 502 is used to determine target information of at least two content delivery network CDN nodes of a target website based on multiple query results, where the target information includes an Internet Protocol IP address;

[0085] The second determination module 503 is configured to determine a target CDN architecture of a target website according to target information of at least two CDN nodes.

[0086] In one embodiment, the first determining module 502 includes:

[0087] A storage unit, used to store multiple query results in N storage nodes of the distributed storage system, where N is an integer greater than 1;

[0088] The information acquisition unit is used to acquire target information obtained by distributed processing of multiple query results by N storage nodes based on a distributed computing method.

[0089] In one embodiment, the storage unit is specifically used to distribute and store multiple query results to N storage nodes of a distributed storage system, each of the N storage nodes stores partial results of the multiple query results, and each storage node stores different partial results.

[0090] In one embodiment, the apparatus 500 further includes:

[0091] A historical architecture acquisition module is used to acquire multiple historical CDN architectures of a target website, where the determination time of the multiple historical CDN architectures is before the determination time of a target CDN architecture of the target website;

[0092] The third determination module is used to determine the CDN evolution of the target website according to the target CDN architecture of the target website and multiple historical CDN architectures.

[0093] In one embodiment, the master server node is the server end of the Salt service, and multiple slave server nodes are the clients of the Salt service. The master server node of the Salt service is used to manage the slave server nodes of the Salt service, and the slave server nodes of the Salt service are used to execute commands issued by the master server node of the Salt service.

[0094] In one embodiment, the target information also includes an alias record, a geographic location, and operator information. The geographic location and operator information are obtained by querying a preset association library based on the IP address.

[0095] In one embodiment, the second determination module 503 is specifically configured to establish an association relationship between the URL of the target website and the target information of each CDN node in at least two CDN nodes, and generate a target CDN architecture for the target website.

[0096] The website content distribution network architecture determination device provided in the embodiment of the present application can implement each process implemented by the website content distribution network architecture determination method in the above embodiment, and the technical features correspond one to one. To avoid repetition, they will not be described here.

[0097] like Figure 6 As shown, an embodiment of the present application further provides an electronic device 600, including a processor 601 and a memory 602, wherein the memory 602 stores a computer program or instruction that can be executed on the processor 601, and when the computer program or instruction is executed by the processor 601, each process of the above-mentioned website content distribution network architecture determination method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0098] The embodiment of the present application also provides a computer-readable storage medium, on which a computer program or instruction is stored, and when the computer program or instruction is executed by a processor, each process of the above-mentioned website content distribution network architecture determination method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0099] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0100] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling an electronic device to execute the methods described in each embodiment of the present application.

[0101] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for determining a website content distribution network architecture, characterized in that: The method comprises: Obtain multiple query results, the multiple query results include query results obtained by executing a dig command by multiple slave server nodes in response to an execution command sent by a master server node, the execution command includes a URL of a target website, the dig command includes command parameters, the command parameters include the URL and tracking parameters, the multiple slave server nodes are respectively arranged in different positions, and the multiple slave server nodes are distributed in operator computer rooms in different areas, the slave server nodes execute the dig command once per preset time interval based on an execution command uniformly sent by the master server node, and the query results obtained by the slave server nodes are transmitted in the form of a file compression package, and the obtaining of multiple query results includes: obtaining multiple query results once per the preset time interval; Storing the multiple query results in N storage nodes of the distributed storage system, where N is an integer greater than 1; Obtaining target information of at least two content delivery network (CDN) nodes obtained by the N storage nodes performing distributed processing on the multiple query results based on a distributed computing manner, wherein the target information includes an Internet Protocol (IP) address; Determining a target CDN architecture for the target website according to target information of the at least two CDN nodes; After determining the target CDN architecture of the target website according to the target information of the at least two CDN nodes, the method further includes: Acquire multiple historical CDN architectures of the target website, where the determination time of the multiple historical CDN architectures is before the determination time of the target CDN architecture of the target website, each historical CDN architecture has a corresponding time, and the times of the multiple historical CDN architectures are different; Determining a CDN evolution of the target website according to the target CDN architecture of the target website and the multiple historical CDN architectures; The master server node is a server of the salt service, the master master service of salt is deployed in the master server node, the multiple slave server nodes are clients of the salt service, the slave minion service of salt is deployed in the slave server node, the master server node of the salt service is used to manage the slave server nodes of the salt service, and the slave server nodes of the salt service are used to execute commands issued by the master server node of the salt service; The storing the multiple query results to N storage nodes of the distributed storage system includes: The multiple query results are distributedly stored in N storage nodes of the distributed storage system, each of the N storage nodes stores a portion of the multiple query results, and each storage node stores a different portion of the results.

2. The method according to claim 1, characterized in that: The target information also includes an alias record, a geographic location, and operator information. The geographic location and the operator information are obtained by querying a preset association library according to the IP address.

3. The method according to any one of claims 1 to 2, characterized in that: The determining the target CDN architecture of the target website according to the target information of the at least two CDN nodes includes: An association relationship is established between the URL of the target website and the target information of each CDN node in the at least two CDN nodes, and a target CDN architecture of the target website is generated.

4. A device for determining a website content distribution network architecture, characterized in that: The device comprises: A first acquisition module is used to acquire multiple query results, wherein the multiple query results are query results obtained by executing a dig command when multiple slave server nodes receive a corresponding execution command sent by a master server node, the execution command includes a URL of a target website, the dig command includes command parameters, and the command parameters include the URL and tracking parameters. The multiple slave server nodes are respectively arranged in different positions, and the multiple slave server nodes are distributed in operator computer rooms in different regions. The slave server nodes execute the dig command once per preset time interval based on an execution command uniformly sent by the master server node, and the query results obtained by the slave server nodes are transmitted in the form of a file compression package. The acquisition of multiple query results includes: acquiring multiple query results once per the preset time interval; A first determination module, configured to determine target information of at least two content delivery network (CDN) nodes of the target website based on the multiple query results, wherein the target information includes an Internet Protocol (IP) address; A second determination module, configured to determine a target CDN architecture of the target website according to target information of the at least two CDN nodes; The first determining module includes: A storage unit, used to store the multiple query results in N storage nodes of the distributed storage system, where N is an integer greater than 1; An information acquisition unit, configured to acquire the target information obtained by the N storage nodes performing distributed processing on the multiple query results based on a distributed computing manner; The device also includes: A historical architecture acquisition module, used to acquire multiple historical CDN architectures of the target website, wherein the determination time of the multiple historical CDN architectures is before the determination time of the target CDN architecture of the target website, and each historical CDN architecture has a corresponding time, and the times of the multiple historical CDN architectures are different; A third determination module is used to determine the CDN evolution of the target website according to the target CDN architecture of the target website and multiple historical CDN architectures; The master server node is a server of the salt service, the master master service of salt is deployed in the master server node, the multiple slave server nodes are clients of the salt service, the slave minion service of salt is deployed in the slave server node, the master server node of the salt service is used to manage the slave server nodes of the salt service, and the slave server nodes of the salt service are used to execute commands issued by the master server node of the salt service; The storage unit is specifically used to distribute and store the multiple query results to N storage nodes of the distributed storage system, each of the N storage nodes stores partial results of the multiple query results, and the partial results stored in each storage node are different.

5. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method for determining the website content distribution network architecture as described in any one of claims 1 to 3 are implemented.

6. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the method for determining the website content distribution network architecture according to any one of claims 1 to 3 are implemented.