Network node acceleration method, device, computer readable medium and electronic device
Through simulated access and data analysis, the important values and application types of network nodes are dynamically determined, which solves the problem of inflexible acceleration strategies in the existing technology and achieves efficient and accurate network node acceleration.
Patent Information
- Application Number
- CN202111446711.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-11-30
AI Technical Summary
Existing network acceleration technology cannot flexibly and dynamically adjust acceleration strategies based on user access behavior, resulting in poor acceleration accuracy and flexibility. It also relies on manual website selection and cannot respond to changes in user behavior in real time.
By simulating access to network sites and their external links, access data and deep packet detection data are obtained, training application type identification models and network node important value identification models, calculating important values and characteristic data of network nodes, and dynamically determining network nodes that need to be accelerated. and acceleration strategies.
It realizes real-time and dynamic determination of network nodes and acceleration strategies that need to be accelerated based on user access behavior, improves the accuracy and flexibility of website acceleration, and allocates acceleration resources more accurately.
Smart Images

Figure CN114065095B
Abstract
Description
Background Art
[0002] At present, when performing network acceleration, only pre-set fixed websites can be accelerated. Due to the large number of websites on the Internet, selecting the websites that need to be accelerated requires a lot of manpower costs, and once the selection is completed, it cannot be changed, so the flexibility is poor; at the same time, the selection of websites for acceleration is still heavily based on human experience, and the behavior of users visiting websites is changing all the time, so the accuracy of website acceleration is poor. Summary of the invention
[0003] In the field of network communication technology, in order to solve the above technical problems, the purpose of this application is to provide a network node acceleration method, device, computer-readable medium and electronic device.
[0004] According to one aspect of an embodiment of the present application, a network node acceleration method is provided, the method comprising:
[0005] Simulate access to the URL of a website and the URLs of multiple external links to which the website is linked through network requests to obtain access data corresponding to each URL, wherein the access data includes access performance data;
[0006] Acquire the user's deep data packet detection data and the application type of the specified website, wherein the deep data packet detection data records the behavior data of the user visiting the specified website;
[0007] An application type recognition model is obtained by training the deep packet detection data and the application type of the specified website;
[0008] Taking the URL as the network node, according to the access data and deep packet detection data corresponding to each network node, multiple weights corresponding to each network node are calculated based on multiple weight calculation methods;
[0009] For each network node, determine the importance value of the network node according to the multiple weights corresponding to the network node;
[0010] constructing feature data of the network node according to the access performance data and the deep packet detection data of the network node;
[0011] A network node importance value recognition model is obtained based on the characteristic data and the importance value training of each network node;
[0012] When the target deep data packet detection data is obtained, the characteristic data of the target network node is constructed according to the target deep data packet detection data, and the characteristic data is input into the network node important value recognition model to obtain the important value of the target network node, wherein the target deep data packet detection data records the behavior data of the user accessing the target network node;
[0013] Determine the application type to which the target network node belongs according to the application type identification model and the target deep packet detection data;
[0014] A network node acceleration operation is performed according to the application type to which the target network node belongs and the importance value of the target network node.
[0015] According to one aspect of an embodiment of the present application, a network node acceleration device is provided, the device comprising:
[0016] A simulated access unit, used for simulating access to the URL of a website and the URLs of multi-level external links linked to the website through a network request, and obtaining access data corresponding to each URL, wherein the access data includes access performance data;
[0017] An acquisition unit, used to acquire the user's deep data packet detection data and the application type of the specified website, wherein the deep data packet detection data records the behavior data of the user visiting the specified website;
[0018] A first training unit, configured to obtain an application type recognition model through training according to the deep data packet detection data and the application type of the specified website;
[0019] A calculation unit, used to calculate a plurality of weights corresponding to each network node based on a plurality of weight calculation methods according to access data and deep packet detection data corresponding to each network node, taking the website as the network node;
[0020] An importance value determination unit, configured to determine, for each network node, an importance value of the network node according to a plurality of weights corresponding to the network node;
[0021] A construction unit, configured to construct characteristic data of the network node according to the access performance data and the deep packet detection data of the network node;
[0022] A second training unit is used to train a network node importance value recognition model based on the feature data and the importance value of each network node;
[0023] A construction and input unit, for constructing feature data of the target network node according to the target deep data packet detection data when the target deep data packet detection data is acquired, and inputting the feature data into the network node importance value recognition model to obtain the importance value of the target network node, wherein the target deep data packet detection data records the behavior data of the user accessing the target network node;
[0024] an application type determination unit, configured to determine the application type to which the target network node belongs according to the application type identification model and the target deep data packet detection data;
[0025] The acceleration unit is used to perform a network node acceleration operation according to the application type to which the target network node belongs and the importance value of the target network node.
[0026] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the above embodiment is implemented.
[0027] According to one aspect of an embodiment of the present application, there is provided an electronic device, including:
[0028] one or more processors;
[0029] The storage device is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in the above embodiments.
[0030] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0031] The network node acceleration method provided by the present application includes the following steps: simulating access to the URL of a network site and the URL of a multi-level external link linked to the network site through a network request, and obtaining access data corresponding to each URL, wherein the access data includes access performance data; obtaining the user's deep data packet detection data and the application type of the specified URL, wherein the deep data packet detection data records the user's behavior data of accessing the specified URL; training an application type recognition model based on the deep data packet detection data and the application type of the specified URL; taking the URL as a network node, and calculating multiple weights corresponding to each network node based on multiple weight calculation methods according to the access data and deep data packet detection data corresponding to each network node; for each network node, determining the importance value of the network node according to the multiple weights corresponding to the network node; and The access performance data and the deep data packet detection data of the network node are used to construct the characteristic data of the network node; a network node importance value recognition model is obtained based on the characteristic data and the importance value of each network node; when the target deep data packet detection data is obtained, the characteristic data of the target network node is constructed according to the target deep data packet detection data, and the characteristic data is input into the network node importance value recognition model to obtain the importance value of the target network node, wherein the target deep data packet detection data records the behavior data of the user accessing the target network node; the application type to which the target network node belongs is determined according to the application type recognition model and the target deep data packet detection data; and the network node acceleration operation is performed according to the application type to which the target network node belongs and the importance value of the target network node.
[0032] Under this method, the corresponding access data is obtained by first crawling the website and the website's multi-level external links in a simulated request manner, and the deep packet detection data when the user visits the website and the application type of the website are also obtained. Then, the deep packet detection data and application type identification models are established based on the obtained data; when the user visits some websites, the corresponding application type identification model is obtained, and then the importance value and application type of the website visited by the user and its external links can be determined based on the established deep packet detection data and application type identification model, and network node acceleration operations can be performed based on the importance value and application type. Therefore, it is possible to determine which network nodes need to be accelerated and the strategy for accelerating network nodes in real time and dynamically based on the user's access behavior, thereby improving the accuracy and flexibility of website acceleration.
[0033] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] Figure 1 is a schematic diagram of a system architecture of a network node acceleration method according to an exemplary embodiment;
[0036] Figure 2 is a flow chart of a network node acceleration method according to an exemplary embodiment;
[0037] Figure 3A is a schematic diagram showing data obtained by calling an interface to access a page according to an exemplary embodiment;
[0038] Figure 3B is a schematic diagram of data obtained after cleaning the data acquired by calling an interface according to an exemplary embodiment;
[0039] Figure 4 is a schematic diagram showing a simplified processing of link relationships of network nodes according to an exemplary embodiment;
[0040] Figure 5 is a schematic diagram of a calculation process of calculating weights based on a weight calculation method according to an exemplary embodiment;
[0041] Figure 6 is a schematic diagram showing classification of application types of different websites according to an exemplary embodiment;
[0042] Figure 7 is a weighted network node association graph shown according to an exemplary embodiment;
[0043] Figure 8 is an overall flow chart of a network node acceleration method according to an exemplary embodiment;
[0044] Fig. 9 It is a schematic diagram showing the technical key points in each step of the embodiment of the present application according to an exemplary embodiment;
[0045] Fig.10 is a schematic diagram of a comparison page showing the acceleration effect of a network node according to an exemplary embodiment;
[0046] Fig.11 is a block diagram of a network node acceleration device according to an exemplary embodiment;
[0047] Fig.12 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0048] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0049] In addition, the drawings are only schematic illustrations of the present application and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
[0050] In the related art, acceleration can only be performed based on manually specified websites, but users' website access behaviors are constantly changing. Therefore, the final website may not have a large number of user visits, thus wasting acceleration resources.
[0051] In addition, there are some solutions that first test network performance based on the four-layer TCP protocol, the seven-layer HTTP(s) protocol and the websocket protocol, and then carry out protocol feature analysis, mathematical statistics such as TCP session time, message parsing and other solutions to identify and accelerate network applications. However, since the data on the network is encrypted, and there are many types of network applications and complex protocol types, the acceleration efficiency is low, and it is difficult to accurately determine the network applications that need to be accelerated.
[0052] To this end, the present application first provides a network node acceleration method that can overcome the above defects, can efficiently and accurately determine the network nodes that need to be accelerated, and accelerate them. At the same time, it can also dynamically adjust the acceleration strategy according to the user's network access behavior, so as to more accurately allocate acceleration resources.
[0053] The implementation terminal of the present application can be any device with computing, processing and communication functions, which can be connected to an external device for receiving or sending data. Specifically, it can be a portable mobile device, such as a smart phone, a tablet computer, a laptop computer, a PDA (Personal Digital Assistant), etc., or it can be a fixed device, such as a computer device, a field terminal, a desktop computer, a server, a workstation, etc. It can also be a collection of multiple devices, such as the physical infrastructure or server cluster of cloud computing.
[0054] Optionally, the implementation terminal of the present application may be a server or a physical infrastructure of cloud computing.
[0055] Figure 1 FIG. 1 is a schematic diagram of a system architecture of a network node acceleration method according to an exemplary embodiment. Figure 1 As shown, the system architecture 100 includes a terminal device 101, a server 102, and a network 103. The terminal device 101 and the server 102, the server 102 and the network 103, and the terminal device 101 and the network 103 are all connected via a communication link. The terminal device 101 is an implementation terminal in this embodiment. When a network node acceleration method provided by this application is applied to Figure 1 In the system architecture shown, a specific process may be as follows: first, the terminal device 101 continuously visits various websites in the network 103 by calling an interface for simulating access to a website, and obtains access data to the website and the multi-level external links of the website; then, the terminal device 101 obtains deep packet detection data and the application type of the specified website from the server 102, wherein the deep packet detection data is the behavior data of the user in the network 103 when accessing the specified website, which is collected by the server 102; then, the terminal device 101 performs model training based on the obtained deep packet detection data and the application type of the specified website to obtain an application type recognition model; then, the terminal device 101, on the one hand, trains the model according to the network node On the other hand, the access data and deep packet detection data of the network node are used to calculate the importance of the network node. On the other hand, the feature data of the network node is constructed based on the access performance data and the deep packet detection data, so as to obtain the network node importance value recognition model based on the feature data and the important value training; next, the terminal device 101 obtains the target deep packet detection data that needs to be monitored from the server 102 again, and determines the application type and importance value of the target website visited by the user according to the target deep packet detection data, so as to determine whether the target website and the external link need to be accelerated, as well as the acceleration strategy, etc. according to the application type and the important value; finally, the terminal device 101 sends instructions to some controllers in the network 103 to accelerate the determined website.
[0056] In one embodiment of the present application, the terminal device 101 is accessed in a multi-threaded manner.
[0057] It is worth mentioning that Figure 1 This is only one embodiment of the present application. Figure 1 In the embodiment, the implementation terminal is a common terminal device such as a desktop computer, but in other embodiments of the present application, the implementation terminal can be various types of devices, such as a server; although in the embodiment of the present application, the deep packet detection data is obtained by the implementation terminal from the server, in other embodiments of the present application, the deep packet detection data can also be obtained by the implementation terminal by detecting the network. The embodiment of the present application does not make any limitation to this, and the protection scope of the present application should not be limited in any way.
[0058] Figure 2 FIG. 1 is a flow chart of a network node acceleration method according to an exemplary embodiment. The network node acceleration method provided in this embodiment is executed by a server, such as Figure 2 As shown, the method may include the following steps:
[0059] Step 210, simulating access to the URL of the website and the URLs of the multi-level external links linked to the website through network requests, and obtaining access data corresponding to each URL.
[0060] The access data includes access performance data.
[0061] Specifically, tools such as Selenium can be used to crawl websites and their secondary and tertiary URL external links in a web crawler based on technologies such as simulated login, web page driver, and browser proxy. During the crawling process, for websites that require verification codes, the verification code link can be automatically skipped; for websites that require account and password login, the account and password can be automatically entered. Among them, the secondary URL external links of a website are external links directly linked to the website, and the tertiary URL external links are external links directly linked to the secondary URL external links.
[0062] The access performance data is the web page loading performance data, which may specifically include the response status, response time and content length, wherein the response status is the status code obtained by accessing the URL, the response time is the time to obtain the status code, and the content length is the file size of the accessed page. Since this step not only crawls the website, but also crawls the website's URL external links, the access data may include link relationship data between websites in addition to the access performance data, and the link relationship data may include the URL, website name, specific description information, etc. After obtaining the access data through simulated access, these access data may be encapsulated as an output data interface for system calls.
[0063] Figure 3A FIG. 1 is a schematic diagram showing data obtained by calling an interface to access a page according to an exemplary embodiment. Figure 3A As shown, when accessing pages of various URLs by calling the interface, information such as response status, response time and length related to the accessed page can be obtained, and this information is related to the access performance of the page.
[0064] In one embodiment of the present application, the method of simulating access to the URL of a website and the URLs of multi-level external links linked to the website through a network request to obtain access data corresponding to each URL includes:
[0065] By simulating access to the URL of a website and the URLs of the multi-level external links to which the website is linked, interface data corresponding to each URL is obtained;
[0066] A data cleaning operation is performed on the interface data to obtain access data corresponding to each website.
[0067] Specifically, the interface data may be parameter data returned by the interface in JSON format, and the parameter data may be cleansed in DATAFRAME format. The data cleansing operation may also include regular processing based on regular expressions and other operations.
[0068] Figure 3B is a schematic diagram showing data obtained after cleaning the data obtained by calling the interface according to an exemplary embodiment. Figure 3B As shown, the final data may include the following fields: index (INDEX), name (NAME), address (ADDRESS), status code (ResponseCode), and performance chart before node acceleration (beforeCharts), wherein the horizontal axis (xAxis) is the number of accesses, and the vertical axis (data) is the response time obtained for each access.
[0069] In one embodiment of the present application, the method of simulating access to the URL of a website and the URLs of the multi-level external links to which the website is linked through a network request includes:
[0070] In a multi-threaded manner, the URLs of the website and the URLs of the multi-level external links linked to the website are accessed in real time and batch through network requests, so that the network access performance of websites far away from the mainland can be tested in real time and batch.
[0071] In the embodiment of the present application, by accessing websites and their external links in real time in batches in a multi-threaded manner, the access performance of web pages can be monitored more efficiently.
[0072] In one embodiment of the present application, the method further includes: skipping the simulated access to the website to be monitored based on an abnormality detected during the simulated access to the website to be monitored through the network request.
[0073] For example, when accessing a page, if no response status is obtained within a predetermined time period, or a complete page is not obtained within a predetermined time period, or the obtained response status is 404, then the simulated access to the page is skipped. The predetermined time period can be set based on experience, for example, it can be set to 5 seconds.
[0074] In the embodiment of the present application, by skipping access to the current URL when an abnormality is monitored, it is possible to avoid freezes during batch access to websites, so that performance monitoring of the website can be carried out smoothly.
[0075] In one embodiment of the present application, when simulating access to a website to be monitored through a network request, skipping the simulated access to the website to be monitored according to an abnormality monitored, includes:
[0076] When simulating access to the website to be monitored through a network request, according to the monitoring abnormality, simulate access to the website to be monitored again;
[0077] If an exception is detected again, the simulated access to the website to be monitored is skipped.
[0078] If an abnormality occurs when accessing a website, it may not be a problem with the website itself, but may be caused by other factors such as the network. In the embodiment of the present application, when accessing a website for the first time, if an abnormality is monitored, it is not skipped directly, but a simulated access is performed again. Only when an abnormality is found again will the simulated access to the monitored website be skipped. When the abnormality is monitored again, the corresponding access data can be obtained at this time. Therefore, the embodiment of the present application can avoid missing visits to normal websites, can obtain website access data more accurately and thoroughly, and improve the comprehensiveness of website monitoring.
[0079] Step 220, obtaining the user's deep packet detection data and the application type of the specified website.
[0080] The deep data packet detection data records the behavior data of the user visiting the specified website.
[0081] Deep Packet Inspection (DPI) data is the data obtained by DPI equipment through detection and analysis of traffic and message content at key points of the network. It contains IP five-tuple data and may also include other data related to the services accessed by users. Among them, the IP five-tuple data includes the source IP address, source port, destination IP address, destination port and transport layer protocol. The destination IP address is the address of the specified website visited by the user. Therefore, using DPI data, users' online behavior can be analyzed.
[0082] The application type is the category of the URL at the application level. It can be a specific website (such as iQiyi, Tencent Video, etc.) or a category of website (such as video website, image website, communication tool, game website, etc.).
[0083] The application type of the designated website can be obtained in a preset manner. Specifically, relevant personnel can be arranged to visit the designated website belonging to the designated application type, and then extract the corresponding DPI data. Therefore, the application type of each designated website is known.
[0084] Step 230: Train an application type recognition model based on the deep data packet detection data and the application type of the designated website.
[0085] Since the deep packet detection data contains data related to the business, and the deep packet detection data corresponds to the specified website, and the business is associated with the application type, the application type recognition model can be trained through the deep packet detection data and the application type of the specified website.
[0086] The application type identification model can be implemented using algorithms such as random forest.
[0087] Step 240, taking the website address as the network node, according to the access data and deep data packet detection data corresponding to each network node, multiple weights corresponding to each network node are calculated based on multiple weight calculation methods.
[0088] The weight calculation method may be, for example, a page ranking algorithm based on PageRank, an association analysis algorithm based on Apriori, etc. Based on a weight calculation method, a weight corresponding to each network node can be obtained.
[0089] In one embodiment of the present application, the method also includes: drawing a directed structure graph of network nodes based on the access data and the deep data packet detection data; associating the important values to the directed structure graph of network nodes to obtain a weighted network node association graph, and outputting the weighted network node association graph.
[0090] In the embodiment of the present application, by outputting a weighted network node association graph, the user can more intuitively grasp the association relationship of network nodes and the importance of network nodes, thereby providing decision-making basis information for network node acceleration.
[0091] Figure 4 is a schematic diagram showing a simplified processing of the link relationship of network nodes according to an exemplary embodiment. Figure 4 As shown, since the access data includes the link relationship data between websites, the link relationship data between websites reflects the directionality between nodes, so by simplifying the data, the corresponding simplified data can be obtained. The deep packet detection data includes IP five-tuple data, and the addresses of the websites visited by the user can be determined based on the IP five-tuple data. Therefore, the websites that the user visits continuously can be determined based on the deep packet detection data.
[0092] For example, "AB" and "AC" represent the links between nodes A and B, and between nodes A and C, which are visited by users in sequence. "AB" can also further indicate that node B is the URL external link of node A. Therefore, the corresponding directed structure diagram of network nodes can be drawn based on the deep packet detection data.
[0093] By associating the important values of network nodes with the directed structure graph of network nodes, the information displayed by the established weighted network node association graph is made more comprehensive.
[0094] The weighted network node association graph includes network nodes and edges for connecting network nodes, and the edges can also be associated with relationship weights. Specifically, the relationship weight can be calculated when the weight is calculated based on a weight calculation method, and a relationship weight corresponding to a pair of network nodes can also be calculated based on a weight calculation method. The total relationship weight corresponding to a pair of network nodes can be calculated based on the multiple relationship weights corresponding to the pair of network nodes, and then the edges in the weighted network node association graph can be drawn according to the size of the total relationship weight. For example, when the total relationship weight of a pair of network nodes exceeds a predetermined threshold, the corresponding edge can be drawn as a solid line; when the total relationship weight of a pair of network nodes does not exceed the predetermined threshold, the corresponding edge can be drawn as a dotted line. For another example, the color of the corresponding edge can be drawn according to the total relationship weight of the network node pair. Specifically, the color of the corresponding edge gradually deepens with the total relationship weight.
[0095] Figure 7 FIG. 1 is a weighted network node association diagram according to an exemplary embodiment. Figure 7 As shown, network nodes and their multi-level external link nodes are connected by edges, and the edges are represented by solid lines and dashed lines respectively, which represent the different relationship weights between the corresponding nodes.
[0096] When calculating the weight based on the weight calculation method, the weight may be calculated directly according to the access data, or may be calculated according to a directed structure graph of network nodes drawn based on the access data.
[0097] Figure 5 is a schematic diagram of a calculation process for calculating weights based on a weight calculation method according to an exemplary embodiment, wherein the calculation process is based on pagerank. Figure 5As shown, it shows the data of five links. The data of the first link includes ['A', 'B'], which indicates a pair of network nodes that have established an external link relationship, which is equivalent to the edge between the pair of network nodes, which can be obtained by accessing data or by reading the edge in the directed structure graph of network nodes; the data of the second link includes network nodes such as 'A' and 'B', which are a collection of network nodes obtained according to the edge. The data of the third link is the digital node relationship generated according to the network nodes and edges obtained in the previous two links. Among them, 0, 1, 2, 3, 4, 5 are used to represent nodes such as 'A', 'B', 'C', 'D', 'E', etc., so that the node symbols are mapped from letters to Arabic numerals, then [0, 1] represents the edge formed between A' and 'B' nodes. The fourth link shows the node relationship matrix, and the elements of the matrix are the relationship weights between the corresponding two network nodes. The data of the fifth link is the weight of the network node finally obtained after 8 iterations.
[0098] Step 250: for each network node, determine the importance value of the network node according to the multiple weights corresponding to the network node.
[0099] In one embodiment of the present application, for each network node, the importance value of the network node is determined according to multiple weights corresponding to the network node, including: for each network node, the multiple weights corresponding to the network node are input into a predetermined function to obtain the importance value of the network node.
[0100] The predetermined function is a function set for calculating the importance value, which can be expressed in various forms of formulas. Therefore, the importance value of the network node can be calculated in various ways. The importance value of the network node can be calculated in the following ways: by calculating the weighted sum of various weights to calculate the importance value, or by removing the maximum and minimum values of various weights and then averaging the remaining weights to calculate the importance value.
[0101] In one embodiment of the present application, for each network node, the importance value of the network node is determined according to multiple weights corresponding to the network node, including: for each network node, according to multiple weights corresponding to the network node, determining a candidate importance value of the network node; adjusting the candidate importance value according to expert experience to obtain the importance value.
[0102] In the embodiment of the present application, after calculating the candidate importance values, the importance values are adjusted by experts, thereby improving the accuracy of the obtained importance values, thereby improving the performance of the network node importance value recognition model obtained by subsequent training.
[0103] Step 260: construct characteristic data of the network node according to the access performance data and the deep packet detection data of the network node.
[0104] The feature data includes feature values corresponding to each of the plurality of features.
[0105] Specifically, feature values corresponding to features such as response time and content length can be constructed based on access performance data, and feature values corresponding to features such as network node access volume can be constructed based on deep packet detection data. Of course, features of other dimensions can also be set as needed.
[0106] Step 270: A network node importance value recognition model is obtained based on the characteristic data and the importance value training of each network node.
[0107] The network node importance value recognition model can be constructed based on various algorithms, such as a linear regression algorithm. The constructed network node importance value recognition model can generate corresponding importance values according to the input feature data.
[0108] Step 280, when the target deep data packet detection data is obtained, the characteristic data of the target network node is constructed according to the target deep data packet detection data, and the characteristic data is input into the network node importance value recognition model to obtain the importance value of the target network node.
[0109] The target deep data packet detection data records the behavior data of the user accessing the target network node.
[0110] The target deep packet detection data is different from the deep packet detection data obtained in step 220. The target deep packet detection data may be, for example, DPI data that has not yet been analyzed. It is uncertain what application type the target network node belongs to. The target network node may be one or more network nodes.
[0111] Step 290: Determine the application type to which the target network node belongs according to the application type identification model and the target deep packet detection data.
[0112] The application type recognition model is trained using deep packet detection data. Therefore, for target deep packet detection data, the application type recognition model can output the application type to which the corresponding target network node belongs.
[0113] In one embodiment of the present application, determining the application type to which the target network node belongs according to the application type identification model and the target deep data packet detection data includes:
[0114] If the importance value of the target network node is greater than a predetermined importance threshold, the application type to which the target network node belongs is determined according to the application type identification model and the target deep data packet detection data.
[0115] In the embodiment of the present application, the application type to which the target network node belongs is determined only when the importance value of the target network node is greater than a predetermined importance threshold, and the network node acceleration operation can be performed, thereby reducing the overhead of computing resources.
[0116] In one embodiment of the present application, determining the application type to which the target network node belongs according to the application type identification model and the target deep data packet detection data includes:
[0117] Clustering the target deep data packet detection data to obtain detection data corresponding to each target network node;
[0118] The detection data corresponding to each target network node is respectively input into the application type identification model to obtain the application type to which each target network node belongs.
[0119] In an embodiment of the present application, by clustering the target deep data packet detection data, the detection data of different network nodes can be divided, so that the application type recognition model can accurately identify.
[0120] Figure 6 The figure is a schematic diagram showing how to classify application types of different URLs according to an exemplary embodiment.
[0121] As you can see, different URLs can be divided into multiple application types.
[0122] Step 2110: Perform a network node acceleration operation according to the application type to which the target network node belongs and the importance value of the target network node.
[0123] After obtaining the application type and important value of the target network node, the network node acceleration operation can be performed according to a variety of strategies, and not only the target network node but also other nodes associated with it can be accelerated. The network node acceleration operation can be performed based on SDN (Software Defined Network) technology.
[0124] In one embodiment of the present application, performing a network node acceleration operation according to an application type to which the target network node belongs and an important value of the target network node includes:
[0125] If the importance value of the target network node is greater than a predetermined importance threshold and the application type to which the target network node belongs is a target application type, the target network node is accelerated.
[0126] For network nodes with greater importance, it means that they are high-value nodes in the network, and their access performance is guaranteed by accelerating operations on them.
[0127] In one embodiment of the present application, the method further includes:
[0128] Determine the application type of the external link node to which the target network node is linked according to the application type identification model; and / or
[0129] Determine the importance value of the external link node linked to the target network node according to the network node importance value identification model;
[0130] The external link node is accelerated according to the application type to which the external link node belongs and / or the importance value of the external link node.
[0131] The external link node may be accelerated only according to the application type or importance value of the external link node, or may be accelerated according to both the application type and importance value of the external link node.
[0132] In one embodiment of the present application, the acceleration operation on the external link node according to the application type to which the external link node belongs and / or the importance value of the external link node includes: determining a corresponding acceleration strategy according to the application type to which the external link node belongs and the importance value of the external link node; and accelerating the external link node according to the acceleration strategy.
[0133] Corresponding acceleration strategies can be formulated for external link nodes of different application types and different importance values; in addition, for target network nodes whose importance values are greater than a predetermined importance threshold or whose application types are the target application types, external link nodes with higher importance values can be accelerated simultaneously.
[0134] Figure 8 is an overall flow chart of a network node acceleration method according to an exemplary embodiment; Fig. 9 This is a schematic diagram of the technical points in each step of the embodiment of the present application according to an exemplary embodiment. Figure 8 and Fig. 9 The solution of the embodiment of the present application is further introduced.
[0135] See also Figure 8As shown in the figure, first, in the network request stage, starting from the top-level domain name, the second-level and above domain names are continuously and cyclically accessed to obtain the external link information and interface data. The domain name here is the network node; then, a node directed graph (network node directed structure graph) is drawn according to the external link information and interface data. The nodes in the node directed graph include the homepage of the website and the multi-level external links linked to it, and the nodes are connected by directed edges; at the same time, the DPI data is used as a training set, and an application type recognition model can be trained based on the training set. The node weight value can also be calculated according to the training set and the corresponding interface data. The node weight value here is the aforementioned The important values of network nodes can be obtained by training the network node important value recognition model based on the node weight value; then, other DPI data are used as test sets, and based on the five-tuple, link direction, data flow and other data in these DPI data, application recognition is performed through the application type recognition model, and applications such as Sina and Game can be identified; at the same time, the association analysis algorithm based on Apriori is used to mine frequent items for association analysis or the network node important value recognition model is used to identify important values of network nodes, identify key nodes, and classify and cluster the key nodes to determine the application type of the key nodes. Based on the application type, the key nodes that need to be accelerated can be determined, and then these key nodes can be added to the acceleration channel to perform network acceleration operations. Before and after network acceleration, network parameters can be continuously monitored.
[0136] See also Fig. 9 As shown, after entering the URL to simulate login, the following steps are included:
[0137] Step 1: Network request
[0138] The technologies based on which this step is performed include request module, regular expression processing, automatic acquisition of interface data, web page driver, proxy setting, multi-thread processing, etc.
[0139] Step 2: Data analysis and processing
[0140] The technical points based on this step are divided into three parts:
[0141] 1. Record interface parameters: specifically, you can record information such as response status code, response time, content length, etc.
[0142] 2. Weight calculation and application identification: The technologies used in this link include web page sorting, association analysis, linear regression, classification clustering, etc.
[0143] 3. Visualizing weighted nodes: The technologies used in this link include: network node tree, undirected and directed graphs, and visualization technology.
[0144] Step 3: Start application
[0145] Apply the solutions in the above steps to actual scenarios, specifically to network monitoring, node acceleration, user online behavior analysis, etc.
[0146] In one embodiment of the present application, the method further includes: for the accelerated network nodes, outputting a comparison page of the network node acceleration effect.
[0147] Fig.10 is a schematic diagram of a comparison page showing the acceleration effect of a network node according to an exemplary embodiment. Fig.10 As shown, it shows an acceleration effect list, which includes the name of each network node, the website, the performance data display diagram before acceleration, the performance data display diagram after acceleration, and the performance improvement data brought about by acceleration.
[0148] In the embodiment of the present application, by outputting a comparison page of the corresponding network node acceleration effect for the accelerated network nodes, the user can intuitively grasp the network node acceleration effect.
[0149] According to the third aspect of the present application, the present application also provides a network node acceleration device. The following is an embodiment of the device of the present application.
[0150] Fig.11 FIG. 1 is a block diagram of a network node acceleration device according to an exemplary embodiment. Fig.11 As shown, the apparatus 1100 includes:
[0151] The simulated access unit 1110 is used to simulate access to the URL of the website and the URLs of the multi-level external links linked to the website through network requests, and obtain access data corresponding to each URL, wherein the access data includes access performance data;
[0152] An acquisition unit 1120 is used to acquire the user's deep packet detection data and the application type of the specified website, wherein the deep packet detection data records the behavior data of the user accessing the specified website;
[0153] A first training unit 1130, configured to obtain an application type recognition model through training according to the deep packet detection data and the application type of the specified website;
[0154] The calculation unit 1140 is used to calculate the relationship weights of each pair of network nodes that have established an external link relationship based on the website as the network node, according to the access data and deep packet detection data corresponding to each network node, based on multiple relationship weight calculation methods, to obtain multiple relationship weights corresponding to each network node pair;
[0155] An importance value determination unit 1150 is used to determine, for each network node, an importance value of the network node according to a plurality of relationship weights corresponding to the network node pair to which the network node belongs;
[0156] A construction unit 1160, configured to construct characteristic data of the network node according to the access performance data and the deep packet detection data of the network node;
[0157] A second training unit 1170 is used to train a network node importance value recognition model based on the feature data and the importance value of each network node;
[0158] The construction and input unit 1180 is used to construct the characteristic data of the target network node according to the target deep data packet detection data when the target deep data packet detection data is obtained, and input the characteristic data into the network node important value recognition model to obtain the important value of the target network node, wherein the target deep data packet detection data records the behavior data of the user accessing the target network node;
[0159] An application type determination unit 1190, configured to determine the application type to which the target network node belongs according to the application type identification model and the target deep packet detection data;
[0160] The acceleration unit 11100 is used to perform a network node acceleration operation according to the application type to which the target network node belongs and the importance value of the target network node.
[0161] According to another aspect of the present application, an electronic device capable of implementing the above method is also provided.
[0162] Those skilled in the art will appreciate that various aspects of the present application may be implemented as a system, method or program product. Therefore, various aspects of the present application may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to as "circuit", "module" or "system" herein.
[0163] Fig.12 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0164] It should be noted that Fig.12 The computer system 1200 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0165] like Fig.12As shown, the computer system 1200 includes a central processing unit (CPU) 1201, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1202 or the program loaded from the storage part 1208 to the random access memory (RAM) 1203, such as executing the method described in the above embodiment. In the RAM 1203, various programs and data required for system operation are also stored. The CPU 1201, the ROM 1202 and the RAM 1203 are connected to each other through the bus 1204. The input / output (I / O) interface 1205 is also connected to the bus 1204.
[0166] The following components are connected to the I / O interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1208 including a hard disk, etc.; and a communication section 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1209 performs communication processing via a network such as the Internet. A drive 1210 is also connected to the I / O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.
[0167] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication section 1209, and / or installed from a removable medium 1211. When the computer program is executed by a central processing unit (CPU) 1201, various functions defined in the system of the present application are executed.
[0168] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0169] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0170] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0171] As one aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.
[0172] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0173] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0174] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.
[0175] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A network node acceleration method, characterized in that: The method comprises: Simulate access to the URL of a website and the URLs of multiple external links to which the website is linked through network requests to obtain access data corresponding to each URL, wherein the access data includes access performance data; Acquire the user's deep data packet detection data and the application type of the specified website, wherein the deep data packet detection data records the behavior data of the user visiting the specified website; An application type recognition model is obtained by training the deep packet detection data and the application type of the specified website; Taking the URL as the network node, according to the access data and deep packet detection data corresponding to each network node, multiple weights corresponding to each network node are calculated based on multiple weight calculation methods; For each network node, determine the importance value of the network node according to the multiple weights corresponding to the network node; constructing feature data of the network node according to the access performance data and the deep packet detection data of the network node; A network node importance value recognition model is obtained based on the characteristic data and the importance value training of each network node; When the target deep data packet detection data is obtained, the characteristic data of the target network node is constructed according to the target deep data packet detection data, and the characteristic data is input into the network node important value recognition model to obtain the important value of the target network node, wherein the target deep data packet detection data records the behavior data of the user accessing the target network node; Determine the application type to which the target network node belongs according to the application type identification model and the target deep packet detection data; A network node acceleration operation is performed according to the application type to which the target network node belongs and the importance value of the target network node.
2. The method according to claim 1, characterized in that The performing a network node acceleration operation according to the application type to which the target network node belongs and the importance value of the target network node includes: If the importance value of the target network node is greater than a predetermined importance threshold and the application type to which the target network node belongs is a target application type, the target network node is accelerated.
3. The method according to claim 2, characterized in that The method further comprises: Determine the application type of the external link node to which the target network node is linked according to the application type identification model; and / or Determine the importance value of the external link node linked to the target network node according to the network node importance value identification model; The external link node is accelerated according to the application type to which the external link node belongs and / or the importance value of the external link node.
4. The method according to claim 1, characterized in that: The method further comprises: Draw a directed structure graph of network nodes according to the access data and the deep packet detection data; The importance value is associated with the directed structure graph of the network nodes to obtain a weighted network node association graph, and the weighted network node association graph is output.
5. The method according to claim 1, characterized in that The method of simulating access to the URL of the website and the URL of the multi-level external links linked to the website through network request includes: In a multi-threaded manner, the URLs of the website and the URLs of the multi-level external links linked to the website are accessed in batches through network requests in real time.
6. The method according to claim 1, characterized in that The method further comprises: When simulating access to a website to be monitored through a network request, based on monitoring anomalies, the simulated access to the website to be monitored is skipped.
7. The method according to claim 6, characterized in that The step of skipping the simulated access to the website to be monitored according to an abnormality detected during the simulated access to the website to be monitored through the network request includes: When simulating access to the website to be monitored through a network request, according to the monitoring abnormality, simulate access to the website to be monitored again; If an exception is detected again, the simulated access to the website to be monitored is skipped.
8. A network node acceleration device, characterized in that: The device comprises: A simulated access unit, used for simulating access to the URL of a website and the URLs of multi-level external links linked to the website through a network request, and obtaining access data corresponding to each URL, wherein the access data includes access performance data; An acquisition unit, used to acquire the user's deep data packet detection data and the application type of the specified website, wherein the deep data packet detection data records the behavior data of the user visiting the specified website; A first training unit, configured to obtain an application type recognition model through training according to the deep data packet detection data and the application type of the specified website; A calculation unit, used to calculate a plurality of weights corresponding to each network node based on a plurality of weight calculation methods according to access data and deep packet detection data corresponding to each network node, taking the website as the network node; An importance value determination unit, configured to determine, for each network node, an importance value of the network node according to a plurality of weights corresponding to the network node; A construction unit, configured to construct characteristic data of the network node according to the access performance data and the deep packet detection data of the network node; A second training unit is used to train a network node importance value recognition model based on the feature data and the importance value of each network node; A construction and input unit, for constructing characteristic data of a target network node according to the target deep data packet detection data when the target deep data packet detection data is acquired, and inputting the characteristic data into the network node important value recognition model to obtain the important value of the target network node, wherein the target deep data packet detection data records the behavior data of the user accessing the target network node; an application type determination unit, configured to determine the application type to which the target network node belongs according to the application type identification model and the target deep data packet detection data; The acceleration unit is used to perform a network node acceleration operation according to the application type to which the target network node belongs and the importance value of the target network node.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the one or more processors to implement the method according to any one of claims 1 to 7.
