Automatic monitoring and early warning system based on artificial intelligence
Through the automatic monitoring and early warning system based on artificial intelligence, abnormal nodes in the virtual function service chain are identified, the security problem when the virtual function service chain is mapped to the physical network is solved, and real-time diagnosis and security assurance of the microservice architecture link are realized.
Patent Information
- Application Number
- CN202411161791.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2044-08-23
AI Technical Summary
When the virtual function service chain is mapped to the physical network, abnormal nodes need to be identified to ensure network security. However, existing technologies are difficult to effectively achieve this, especially in the ubiquitous network space, where network resource utilization and deployment adjustment become challenges.
An automatic monitoring and early warning system based on artificial intelligence is designed, including a link information acquisition unit, a message acquisition unit, a diagnostic parameter generation unit and a monitoring and early warning unit. By acquiring the diagnostic messages of the service node, the diagnostic parameters are calculated and the link is judged. Whether there is an abnormal service node and send an early warning signal.
It realizes real-time diagnosis of links in the microservice architecture, identifies abnormal service nodes, ensures the dynamic security of network resources, and improves network flexibility.
Smart Images

Figure CN118694682B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of monitoring and early warning, and in particular relates to an automatic monitoring and early warning system based on artificial intelligence. Background Art
[0002] With the rapid development of the Internet industry, the situation of cyberspace confrontation is becoming increasingly severe. The traditional network environment is no longer composed of a single Internet space, but has developed into a ubiquitous cyberspace, covering infrastructure information systems, scientific research and production networks, and urban Internet of Things. Therefore, how to make full use of network resources and adjust the deployment of network functions has become an urgent problem to be solved. As one of the key technologies for realizing virtual network functions, the virtual function service chain has attracted widespread attention. However, when mapping the virtual function service chain to the physical network, the degree of interference of the instance mapped by its virtual network function unit on the corresponding platform must be considered, and the abnormal nodes in the service chain need to be identified in time to ensure network security. Summary of the invention
[0003] In order to solve the above problems, the present invention proposes an automatic monitoring and early warning system based on artificial intelligence.
[0004] The technical solution of the present invention is: an automatic monitoring and early warning system based on artificial intelligence includes a link information acquisition unit, a message acquisition unit, a diagnostic parameter generation unit and a monitoring and early warning unit;
[0005] The link information acquisition unit is used to acquire each service node of the link and determine the request initiator, intermediate processor and final responder of the link;
[0006] The message acquisition unit is used to obtain the final diagnosis message of each service node;
[0007] The diagnostic parameter generating unit is used to determine the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder according to the final diagnostic message of each service node;
[0008] The monitoring and early warning unit is used to determine whether there is an abnormal service node in the link based on the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder, and send an early warning signal.
[0009] In a microservices architecture, each service runs in its own process and interacts through lightweight communication mechanisms (such as HTTP RESTful API). These independent services are service nodes in the chain.
[0010] Request initiator: The starting point of the link, usually a request initiated by the user through the front-end interface, or a request initiated from other services. Intermediate processor: After receiving the request, the service node calls other services for further processing according to the business logic. In the microservice link, a service may be both the receiver of the request and the initiator of other requests. Final responder: After processing all business logic, the final result is returned to the request initiator.
[0011] Furthermore, the message acquisition unit acquires the final diagnosis message of each service node, including the following steps:
[0012] A1. Obtain the latest diagnostic message from each service node;
[0013] A2. Extract the request header and request entity corresponding to the latest diagnostic message of each service node;
[0014] A3. According to the request header and request entity corresponding to the latest diagnosis message of each service node, the latest diagnosis message is corrected to obtain the final diagnosis message of each service node.
[0015] The beneficial effect of the above further scheme is: in the present invention, the diagnostic message of the service node contains various data blocks, but the latest diagnostic message may cause data loss due to network congestion and other reasons. Therefore, it is necessary to update and correct the header and entity of the message through the message-specific hash value to ensure that the diagnostic message of the service node is accurate.
[0016] Furthermore, A3 includes the following sub-steps:
[0017] A31. Obtain the current hash value corresponding to the request header and the current hash value corresponding to the request entity;
[0018] A32. Correct the current hash value of the request header to obtain a final hash value of the request header.
[0019] A33. Based on the final hash value of the request header, the current hash value of the request entity is corrected to obtain the final hash value of the request entity, and the correction of the latest diagnostic message is completed to obtain the final diagnostic message of the service node.
[0020] Furthermore, in A32, the final hash value of the request header is Hash head The calculation formula is:
[0021] ; Where f represents the frequency of sending the latest diagnostic message, T t Indicates the transmission delay of the latest diagnostic message, T p represents the processing delay of the latest diagnostic message, exp(·) represents the exponential function, and h headIndicates the current hash value of the request header. Represents the ceiling function.
[0022] Furthermore, in A33, the final hash value Hash of the request entity body The calculation formula is:
[0023] ; Where L represents the length of the latest diagnostic message, Hash head Represents the final hash value of the request header. Represents the ceiling function.
[0024] Further, the diagnostic parameter generating unit is used to determine the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder according to the final diagnostic message of each service node, including the following steps:
[0025] B1. Determine the interaction initiation mapping degree between each service node and the request initiator and the interaction termination mapping degree between each service node and the final responder according to the final diagnosis message of each service node;
[0026] B2. Determine the difference in the interaction initiation mapping degree between adjacent service nodes, and generate a number of interaction initiation mapping differences as an interaction initiation mapping sequence;
[0027] B3. Determine the difference in interaction termination mapping degrees between adjacent service nodes, generate a number of interaction termination mapping differences, and generate an interaction termination mapping sequence;
[0028] B4. extract the median of the interaction initiation mapping sequence and the median of the interaction termination mapping sequence as the initiation mapping coefficient and the termination mapping coefficient respectively;
[0029] B5. Determine the diagnostic parameters between the request initiator and the intermediate processor according to the initiation mapping coefficient, and determine the diagnostic parameters between the intermediate processor and the final responder according to the termination mapping coefficient.
[0030] The beneficial effect of the above further scheme is: in the present invention, each service node is closely connected with the three parties (request initiator, intermediate processor and final responder), so the present invention determines the initiation mapping coefficient and the termination mapping coefficient according to the mapping degree between the service node and the starting point and the end point, and then determines the diagnosis coefficient according to the two mapping coefficients.
[0031] In B2, it is necessary to calculate the interaction initiation mapping degree difference between the first service node and the second service node, the interaction initiation mapping degree difference between the second service node and the third service node, the interaction initiation mapping degree difference between the third service node and the fourth service node, etc., to generate an interaction initiation mapping sequence. The interaction termination mapping sequence can be obtained in the same way.
[0032] Furthermore, in B1, the interaction between the service node and the request initiator initiates the mapping degree Y b The calculation formula is:
[0033] ; In the formula, s represents the value corresponding to the primary key ID of the request initiator, B represents the load balancing of the service node, log(·) represents the logarithmic function, and H represents the value corresponding to the transaction ID of the final diagnostic message of the service node;
[0034] In the database, the request initiator, intermediate processor, and final responder usually have a primary key to uniquely identify the identity. The value of the primary key ID can be an automatically incremented integer. The transaction ID is a random number selected when the client initiates a request, which is used to identify the address request process.
[0035] In B1, the interaction termination mapping degree Y between the service node and the final responder e The calculation formula is:
[0036] ; In the formula, r represents the value corresponding to the primary key ID of the final respondent.
[0037] Furthermore, in B5, the diagnostic parameter Z between the request initiator and the intermediate processor 12 The calculation formula is:
[0038] ; In the formula, b represents the value corresponding to the primary key ID of the intermediate processor, and S represents the initiating mapping coefficient;
[0039] In B5, the diagnostic parameter Z between the intermediate processor and the final responder 23 The calculation formula is:
[0040] ; Where R represents the termination mapping coefficient.
[0041] Furthermore, the monitoring and early warning unit determines whether there is an abnormal service node in the link by: judging whether the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder meet If yes, then there is no abnormal service node in the link, otherwise there is an abnormal service node in the link and a warning signal is sent; where Z 12Represents the diagnostic parameters between the request initiator and the intermediate processor, Z 23 Represents diagnostic parameters between intermediate processors and final responders.
[0042] The beneficial effects of the present invention are as follows: the present invention discloses an automatic monitoring and early warning system based on artificial intelligence, which determines the diagnostic parameters between the request initiator and the intermediate processor in the link and the diagnostic parameters between the intermediate processor and the final responder based on the message status of each service node in the link, and finally determines whether there are abnormal service nodes in the link based on the two diagnostic parameters, thereby completing network diagnosis, ensuring the dynamic security of link resources, and improving the flexibility of the network. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is a structural diagram of the automatic monitoring and early warning system based on artificial intelligence. DETAILED DESCRIPTION
[0044] The embodiments of the present invention will be further described below in conjunction with the accompanying drawings.
[0045] like Figure 1 As shown, the present invention provides an automatic monitoring and early warning system based on artificial intelligence, including a link information acquisition unit, a message acquisition unit, a diagnostic parameter generation unit and a monitoring and early warning unit;
[0046] The link information acquisition unit is used to acquire each service node of the link and determine the request initiator, intermediate processor and final responder of the link;
[0047] The message acquisition unit is used to obtain the final diagnosis message of each service node;
[0048] The diagnostic parameter generating unit is used to determine the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder according to the final diagnostic message of each service node;
[0049] The monitoring and early warning unit is used to determine whether there is an abnormal service node in the link based on the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder, and send an early warning signal.
[0050] In a microservices architecture, each service runs in its own process and interacts through lightweight communication mechanisms (such as HTTP RESTful API). These independent services are service nodes in the chain.
[0051] Request initiator: The starting point of the link, usually a request initiated by the user through the front-end interface, or a request initiated from other services. Intermediate processor: After receiving the request, the service node calls other services for further processing according to the business logic. In the microservice link, a service may be both the receiver of the request and the initiator of other requests. Final responder: After processing all business logic, the final result is returned to the request initiator.
[0052] In the embodiment of the present invention, the message acquisition unit acquires the final diagnosis message of each service node, including the following steps:
[0053] A1. Obtain the latest diagnostic message from each service node;
[0054] A2. Extract the request header and request entity corresponding to the latest diagnostic message of each service node;
[0055] A3. According to the request header and request entity corresponding to the latest diagnosis message of each service node, the latest diagnosis message is corrected to obtain the final diagnosis message of each service node.
[0056] In the present invention, the diagnostic message of the service node contains various data blocks, but the latest diagnostic message may cause data loss due to network congestion and other reasons. Therefore, it is necessary to update and correct the header and entity of the message through the message-specific hash value to ensure that the diagnostic message of the service node is accurate.
[0057] In this embodiment of the present invention, A3 includes the following sub-steps:
[0058] A31. Obtain the current hash value corresponding to the request header and the current hash value corresponding to the request entity;
[0059] A32. Correct the current hash value of the request header to obtain a final hash value of the request header.
[0060] A33. Based on the final hash value of the request header, the current hash value of the request entity is corrected to obtain the final hash value of the request entity, and the correction of the latest diagnostic message is completed to obtain the final diagnostic message of the service node.
[0061] In the embodiment of the present invention, in A32, the final hash value Hash of the request header head The calculation formula is:
[0062] ; Where f represents the frequency of sending the latest diagnostic message, T t Indicates the transmission delay of the latest diagnostic message, T p represents the processing delay of the latest diagnostic message, exp(·) represents the exponential function, and h headIndicates the current hash value of the request header. Represents the ceiling function.
[0063] In the embodiment of the present invention, in A33, the final hash value Hash of the requesting entity body The calculation formula is:
[0064] ; Where L represents the length of the latest diagnostic message, Hash head Represents the final hash value of the request header. Represents the ceiling function.
[0065] In an embodiment of the present invention, the diagnostic parameter generating unit is used to determine the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder according to the final diagnostic message of each service node, including the following steps:
[0066] B1. Determine the interaction initiation mapping degree between each service node and the request initiator and the interaction termination mapping degree between each service node and the final responder according to the final diagnosis message of each service node;
[0067] B2. Determine the difference in the interaction initiation mapping degree between adjacent service nodes, and generate a number of interaction initiation mapping differences as an interaction initiation mapping sequence;
[0068] B3. Determine the difference in interaction termination mapping degrees between adjacent service nodes, generate a number of interaction termination mapping differences, and generate an interaction termination mapping sequence;
[0069] B4. extract the median of the interaction initiation mapping sequence and the median of the interaction termination mapping sequence as the initiation mapping coefficient and the termination mapping coefficient respectively;
[0070] B5. Determine the diagnostic parameters between the request initiator and the intermediate processor according to the initiation mapping coefficient, and determine the diagnostic parameters between the intermediate processor and the final responder according to the termination mapping coefficient.
[0071] In the present invention, each service node has a close connection with the three parties (request initiator, intermediate processor and final responder). Therefore, the present invention determines the initiation mapping coefficient and the termination mapping coefficient according to the mapping degree between the service node and the starting point and the end point, and then determines the diagnosis coefficient according to the two mapping coefficients.
[0072] In B2, it is necessary to calculate the interaction initiation mapping degree difference between the first service node and the second service node, the interaction initiation mapping degree difference between the second service node and the third service node, the interaction initiation mapping degree difference between the third service node and the fourth service node, etc., to generate an interaction initiation mapping sequence. The interaction termination mapping sequence can be obtained in the same way.
[0073] In this embodiment of the present invention, in B1, the interactive initiation mapping degree Y between the service node and the request initiator b The calculation formula is:
[0074] ; In the formula, s represents the value corresponding to the primary key ID of the request initiator, B represents the load balancing of the service node, log(·) represents the logarithmic function, and H represents the value corresponding to the transaction ID of the final diagnostic message of the service node;
[0075] In the database, the request initiator, intermediate processor, and final responder usually have a primary key to uniquely identify the identity. The value of the primary key ID can be an automatically incremented integer. The transaction ID is a random number selected when the client initiates a request, which is used to identify the address request process.
[0076] In B1, the interaction termination mapping degree Y between the service node and the final responder e The calculation formula is:
[0077] ; In the formula, r represents the value corresponding to the primary key ID of the final respondent.
[0078] In the embodiment of the present invention, in B5, the diagnostic parameter Z between the request initiator and the intermediate processor 12 The calculation formula is:
[0079] ; In the formula, b represents the value corresponding to the primary key ID of the intermediate processor, and S represents the initiating mapping coefficient;
[0080] In B5, the diagnostic parameter Z between the intermediate processor and the final responder 23 The calculation formula is:
[0081] ; Where R represents the termination mapping coefficient.
[0082] In the embodiment of the present invention, the method for the monitoring and early warning unit to determine whether there is an abnormal service node in the link is: to determine whether the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder meet the requirements. If yes, then there is no abnormal service node in the link, otherwise there is an abnormal service node in the link and a warning signal is sent; where Z 12Represents the diagnostic parameters between the request initiator and the intermediate processor, Z 23 Represents diagnostic parameters between intermediate processors and final responders.
[0083] Those skilled in the art will appreciate that the embodiments described herein are intended to help readers understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific variations and combinations that do not deviate from the essence of the present invention based on the technical revelations disclosed by the present invention, and these variations and combinations are still within the protection scope of the present invention.
Claims
1. An automatic monitoring and early warning system based on artificial intelligence, characterized in that: It includes a link information acquisition unit, a message acquisition unit, a diagnostic parameter generation unit and a monitoring and early warning unit; The link information acquisition unit is used to acquire each service node of the link and determine the request initiator, intermediate processor and final responder of the link; The message acquisition unit is used to acquire the final diagnosis message of each service node; The diagnostic parameter generating unit is used to determine the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder according to the final diagnostic message of each service node; The monitoring and early warning unit is used to determine whether there is an abnormal service node in the link based on the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder, and send an early warning signal; The diagnostic parameter generating unit is used to determine the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder according to the final diagnostic message of each service node, including the following steps: B1. Determine the interaction initiation mapping degree between each service node and the request initiator and the interaction termination mapping degree between each service node and the final responder according to the final diagnosis message of each service node; B2. Determine the difference in the interaction initiation mapping degree between adjacent service nodes, and generate a number of interaction initiation mapping differences as an interaction initiation mapping sequence; B3. Determine the difference in interaction termination mapping degrees between adjacent service nodes, generate a number of interaction termination mapping differences, and generate an interaction termination mapping sequence; B4. extract the median of the interaction initiation mapping sequence and the median of the interaction termination mapping sequence as the initiation mapping coefficient and the termination mapping coefficient respectively; B5. Determine the diagnostic parameters between the request initiator and the intermediate processor according to the initiation mapping coefficient, and determine the diagnostic parameters between the intermediate processor and the final responder according to the termination mapping coefficient; In B1, the interactive initiation mapping degree Y between the service node and the request initiator b The calculation formula is: ; In the formula, s represents the value corresponding to the primary key ID of the request initiator, B represents the load balancing of the service node, log(·) represents the logarithmic function, and H represents the value corresponding to the transaction ID of the final diagnostic message of the service node; In B1, the interaction termination mapping degree Y between the service node and the final responder e The calculation formula is: ; In the formula, r represents the value corresponding to the primary key ID of the final respondent; In B5, the diagnostic parameter Z between the request initiator and the intermediate processor 12 The calculation formula is: ; In the formula, b represents the value corresponding to the primary key ID of the intermediate processor, and S represents the initiating mapping coefficient; In B5, the diagnostic parameter Z between the intermediate processor and the final responder 23 The calculation formula is: ; Where R represents the termination mapping coefficient; The method for the monitoring and early warning unit to determine whether there is an abnormal service node in the link is to determine whether the diagnostic parameters between the request initiator and the intermediate processor and the diagnostic parameters between the intermediate processor and the final responder meet If yes, then there is no abnormal service node in the link, otherwise there is an abnormal service node in the link and a warning signal is sent; where Z 12 Represents the diagnostic parameters between the request initiator and the intermediate processor, Z 23 Represents diagnostic parameters between intermediate processors and final responders.
2. The automatic monitoring and early warning system based on artificial intelligence according to claim 1 is characterized in that: The message acquisition unit acquires the final diagnosis message of each service node, including the following steps: A1. Obtain the latest diagnostic message from each service node; A2. Extract the request header and request entity corresponding to the latest diagnostic message of each service node; A3. According to the request header and request entity corresponding to the latest diagnosis message of each service node, the latest diagnosis message is corrected to obtain the final diagnosis message of each service node.
3. The automatic monitoring and early warning system based on artificial intelligence according to claim 2 is characterized in that: A3 includes the following sub-steps: A31. Obtain the current hash value corresponding to the request header and the current hash value corresponding to the request entity; A32. Correct the current hash value of the request header to obtain a final hash value of the request header. A33. Based on the final hash value of the request header, the current hash value of the request entity is corrected to obtain the final hash value of the request entity, and the correction of the latest diagnostic message is completed to obtain the final diagnostic message of the service node.
4. The automatic monitoring and early warning system based on artificial intelligence according to claim 3 is characterized in that: In A32, the final hash value of the request header is Hash head The calculation formula is: ; Where f represents the frequency of sending the latest diagnostic message, T t Indicates the transmission delay of the latest diagnostic message, T p represents the processing delay of the latest diagnostic message, exp(·) represents the exponential function, and h head Indicates the current hash value of the request header. Represents the ceiling function.
5. The automatic monitoring and early warning system based on artificial intelligence according to claim 3 is characterized in that: In A33, the final hash value of the request entity is Hash body The calculation formula is: ; Where L represents the length of the latest diagnostic message, Hash head Represents the final hash value of the request header. Represents the ceiling function.
Citation Information
Patent Citations
Electric energy meter remote monitoring trial hanging test system and method
CN118074325A
Cyber threat information processing apparatus, cyber threat information processing method, and storage medium storing cyber threat information processing program
US20240054215A1
