Data processing method for cloud computing based on artificial intelligence

By using artificial intelligence technology on cloud computing platforms to analyze the packet transmission of network ports, the problems of high cost, high complexity and limited monitoring range of traditional monitoring methods are solved, and efficient, sensitive and scalable network monitoring is achieved.

CN119449651AActive Publication Date: 2025-02-14ZHEJIANG HANGYUN NETWORK TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411574639.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-02-14
Estimated Expiration
2044-11-06

AI Technical Summary

Technical Problem

Traditional network monitoring methods require expensive dedicated hardware equipment or software tools, which adds cost and complexity, and often require the deployment of monitoring devices at specific locations, limiting monitoring range and scalability.

Method used

Using cloud computing data processing method based on artificial intelligence, the number of data packets transmitted by the port is obtained by setting calibration cycles and judgment cycles, the average value and real-time traffic are calculated, and algorithms such as Gaussian density graphs and convolutional neural networks are used to determine whether there is an abnormality on the port. .

Benefits of technology

It reduces the computing resource consumption when judging whether there is an abnormality on all ports, significantly reduces the overall computing demand, improves resource utilization, and improves the sensitivity and scalability of network monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449651A_ABST
    Figure CN119449651A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and particularly discloses a data processing method of cloud computing based on artificial intelligence, comprising the following steps: S1, calculating the average number of data packets on the same time node in different calibration periods, generating a first coordinate point, and fitting to obtain a first curve; s2, dividing the judgment period to obtain sub-periods, acquiring the number of data packets transmitted by a port in real time in the sub-periods, and drawing a curve; s3, real-time flow and comparison flow are calculated, and flow points in the coordinate system are determined; connecting the flow points to obtain a flow line, determining a flow angle, and determining a radian value of the flow angle; obtaining a flow triangle based on the flow point, and determining the area of the flow triangle; and S4, calculating an abnormal coefficient, screening the to-be-determined port according to the abnormal coefficient, and determining whether the to-be-determined port is abnormal or not. According to the method, the to-be-determined ports are screened, so that the consumption of computing resources required for carrying out abnormity judgment on all the ports is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a data processing method based on artificial intelligence cloud computing. Background Art

[0002] Cloud computing is an Internet-based computing model that provides computing resources (such as servers, storage devices, databases, etc.) to users as services to achieve on-demand acquisition and use of computing resources.

[0003] A port number is a numerical identifier used to identify the logical endpoint of an application or service in network communications. Different applications or services typically use different port numbers for communication. A packet is a unit of data transmitted across a computer network. It is the fundamental unit of network communication and can be used for network monitoring and analysis. By capturing and analyzing packets, we can understand network usage, performance, and security, helping to identify abnormal behavior, bottlenecks, and failures, thereby improving network security.

[0004] Traditional monitoring methods typically use dedicated hardware devices or software tools to capture and analyze data packets in the network. These methods require the purchase, deployment, and maintenance of expensive dedicated hardware devices or software tools, increasing costs and complexity. Furthermore, traditional monitoring methods typically require the deployment of monitoring equipment in specific locations, limiting the monitoring scope and scalability. Summary of the Invention

[0005] The purpose of this invention is to provide a data processing method based on artificial intelligence cloud computing to solve the following technical problems:

[0006] Traditional monitoring methods typically use dedicated hardware devices or software tools to capture and analyze data packets in the network. These methods require the purchase, deployment, and maintenance of expensive dedicated hardware devices or software tools, increasing costs and complexity. Furthermore, traditional monitoring methods typically require the deployment of monitoring equipment in specific locations, limiting the monitoring scope and scalability.

[0007] The purpose of the present invention can be achieved through the following technical solutions:

[0008] A data processing method for cloud computing based on artificial intelligence, comprising the following steps:

[0009] S1: Set m calibration periods, where m is a first preset number. Set time nodes at preset time intervals Δt within the calibration period. Obtain the number of data packets transmitted by the port at the time nodes. Calculate the average number of data packets transmitted by the port at the same time nodes to generate a first coordinate point (a, Ca), where Ca represents the average number of data packets transmitted by the port at time node a. Fit the first coordinate point to obtain a first curve f(t).

[0010] S2: Determine the (m+1)th calibration period, use it as the judgment period, divide the judgment period into n sub-periods of equal length, where n is a second preset number, obtain the number of data packets transmitted by the port in real time during the sub-periods, and draw a curve g(t) showing the change of the number of data packets over time;

[0011] S3: Calculate real-time traffic and compare traffic f'(t) represents the portion of the first curve within the sub-period, tsta and tend represent the start and end time points of the sub-period, respectively, and the positions of the real-time flow rate and the comparative flow rate on the x-axis and y-axis of the preset coordinate system F are used as flow points;

[0012] Connect the flow points to obtain a flow line, take the angle between the flow line and the x-axis as the flow angle, and determine the radian value D of the flow angle;

[0013] The triangle formed by the flow point and the origin of the coordinate system F is used as a flow triangle, and the area S of the flow triangle is determined;

[0014] S4: Calculate the abnormality coefficient K = η * S / D, where η is a preset correction coefficient, set the abnormality coefficient threshold Kys, and when the abnormality coefficient K ≥ Kys, mark the corresponding port as a pending port to determine whether the pending port has an abnormality.

[0015] As a further solution of the present invention: in step S4, the process of determining whether the pending port has an abnormality specifically includes:

[0016] The number of data packets transmitted by the pending port in the sub-period is used as traffic data, and the features of the traffic data of a single pending port are obtained based on the traffic sequence encoder, and the features are used as target features;

[0017] The target features are fused and discretized based on the Gaussian density map, and the interaction features between the target features of different pending ports are determined through a mutually transposed convolutional network;

[0018] The pre-trained classification model is used to determine the pending ports with abnormalities.

[0019] As a further solution of the present invention: the process of training the classification model specifically includes:

[0020] Establishing a database, wherein the database stores interaction features labeled as abnormal;

[0021] A classification model is established based on the deep learning model, and is trained and verified using the database to obtain a pre-trained classification model.

[0022] As a further solution of the present invention: the abnormal coefficient threshold is determined based on the comparative flow rate, Kys=γ / C, γ is a preset coefficient.

[0023] As a further solution of the present invention: in the step S3, when the comparison flow and / or real-time flow is 0, an early warning message is sent for prompting.

[0024] As a further solution of the present invention: in the step S1, when there is an abnormal pending port within the calibration period, a supplementary period is set to replace the calibration period with the abnormality.

[0025] As a further solution of the present invention: in step S1, the process of calculating the average number of data packets further includes the following steps:

[0026] When the difference between the number of data packets in calibration period b and the corresponding average number of data packets is greater than the preset difference threshold, the number of data packets in calibration period b is removed and the average is calculated again, and the above steps are repeated until there is no difference greater than the preset difference threshold.

[0027] As a further solution of the present invention: the average number of data packets when there is no difference greater than a preset difference threshold is used as the target number, the number SL of calibration cycles corresponding to the target number is determined, and when the number SL is less than 0.8m, an early warning message is sent for prompting.

[0028] Beneficial effects of the present invention: In this solution, a calibration period is set and the number of data packets transmitted by the port is obtained at fixed time intervals within the period, and the average value is calculated to generate a first curve. The goal of this stage is to establish a historical benchmark (i.e., the first curve) that can reflect the typical change trend of data packets transmitted by the port under normal circumstances. Subsequently, real-time data and the reference model (i.e., the first curve) can be compared to facilitate abnormality detection; a new judgment period is determined, and multiple sub-periods are divided in the period to obtain the number of real-time data packets, thereby generating a real-time curve g(t). In this stage, the division of sub-periods is to capture data fluctuations in a shorter period of time, making the judgment more sensitive and detailed, and the sub-periods are used to generate a real-time curve g(t). The division of cycles can facilitate timely alarm after the abnormality is determined, so as to avoid the abnormality not being handled and affecting the network security; then, the judgment parameters are determined according to the real-time flow and the comparative flow, that is, the area of ​​the flow triangle and the radian value of the flow angle; it is worth noting that the flow point corresponding to the comparative flow is on the y-axis. When the comparative flow is constant, the larger the real-time flow, the larger the area of ​​the flow triangle will be. At the same time, the flow angle will decrease, and the radian value of the flow angle will also decrease. Therefore, the larger the area of ​​the flow triangle and / or the smaller the radian value of the flow angle, the larger the abnormality coefficient should be, that is, the greater the possibility of the existence of an abnormality; finally, after determining the pending port, it is judged whether there is an abnormality at the pending port. Diagnosis; It is worth noting that the process of judging whether there is an anomaly in the pending port requires the use of a variety of complex algorithms and models, such as Gaussian density maps, convolutional neural networks, etc. However, although these models and algorithms can accurately identify and analyze abnormal patterns between ports, they all consume high computing resources. For example, the main function of the Gaussian density map is to fuse and discretize target features to help judge the regularity and deviation degree of data distribution. However: 1. Density estimation of multi-dimensional features: When performing Gaussian density estimation on multi-dimensional features, it is necessary to calculate the probability distribution of each data point in multi-dimensional space. Especially when the feature dimension is high, the amount of calculation for each data point will increase exponentially; 2. Application of complex kernel functions: Through Normally, Gaussian density estimation uses the kernel density method, which smoothes the data by selecting different kernel functions. This further increases computational requirements. The higher the data volume and dimension, the greater the computational overhead of density estimation. 3. Data discretization: Discretization maps the continuous Gaussian density feature distribution to different intervals. This process not only requires a large amount of computation but also requires repeated discrete judgments, further consuming computing resources. Therefore, in this solution, the pending ports are first screened and a judgment is made as to whether the pending ports have anomalies. This reduces the computational resource consumption when judging whether all ports have anomalies, concentrates computing resources on the pending ports, significantly reduces overall computing requirements, and improves resource utilization. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The present invention will be further described below with reference to the accompanying drawings.

[0030] Figure 1 It is a flow chart of a data processing method based on artificial intelligence cloud computing of the present invention. DETAILED DESCRIPTION

[0031] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0032] See also Figure 1 As shown, the present invention is a data processing method of cloud computing based on artificial intelligence, comprising the following steps:

[0033] S1: Set m calibration periods, where m is a first preset number. Set time nodes at preset time intervals Δt within the calibration period. Obtain the number of data packets transmitted by the port at the time nodes. Calculate the average number of data packets transmitted by the port at the same time nodes to generate a first coordinate point (a, Ca), where Ca represents the average number of data packets transmitted by the port at time node a. Fit the first coordinate point to obtain a first curve f(t).

[0034] S2: Determine the (m+1)th calibration period, use it as the judgment period, divide the judgment period into n sub-periods of equal length, where n is a second preset number, obtain the number of data packets transmitted by the port in real time during the sub-periods, and draw a curve g(t) showing the change of the number of data packets over time;

[0035] S3: Calculate real-time traffic and compare traffic f'(t) represents the portion of the first curve within the sub-period, tsta and tend represent the start and end time points of the sub-period, respectively, and the positions of the real-time flow rate and the comparative flow rate on the x-axis and y-axis of the preset coordinate system F are used as flow points;

[0036] Connect the flow points to obtain a flow line, take the angle between the flow line and the x-axis as the flow angle, and determine the radian value D of the flow angle;

[0037] The triangle formed by the flow point and the origin of the coordinate system F is used as a flow triangle, and the area S of the flow triangle is determined;

[0038] S4: Calculate the abnormality coefficient K = η * S / D, where η is a preset correction coefficient, set the abnormality coefficient threshold Kys, and when the abnormality coefficient K ≥ Kys, mark the corresponding port as a pending port to determine whether the pending port has an abnormality.

[0039] It should be noted that a calibration period is set and the number of data packets transmitted by the port is obtained at fixed time intervals within the period, and the average value is calculated to generate the first curve. The goal of this stage is to establish a historical benchmark (i.e., the first curve) that can reflect the typical change trend of the data packets transmitted by the port under normal circumstances. Subsequently, the real-time data and the reference model (i.e., the first curve) can be compared to facilitate the detection of anomalies; a new judgment period is determined, and multiple sub-periods are divided in the period to obtain the number of real-time data packets, thereby generating a real-time curve g(t). In this stage, the division of sub-periods is to capture data fluctuations in a shorter period of time, making the judgment more sensitive and detailed, and the division of sub-periods can be In order to facilitate timely alarm after the abnormality is determined, to avoid the abnormality not being handled and affecting network security; afterwards, the judgment parameters are determined according to the real-time flow and the comparative flow, namely the area of ​​the flow triangle and the radian value of the flow angle; it is worth noting that the flow point corresponding to the comparative flow is on the y-axis. When the comparative flow is constant, the larger the real-time flow, the larger the area of ​​the flow triangle will be. At the same time, the flow angle will decrease, and the radian value of the flow angle will also decrease. Therefore, the larger the area of ​​the flow triangle and / or the smaller the radian value of the flow angle, the larger the abnormality coefficient should be, that is, the greater the possibility of the existence of the abnormality; finally, after determining the pending port, it is judged whether there is an abnormality on the pending port; it is worth noting that It should be noted that the process of judging whether there is an anomaly in the pending port requires the use of a variety of complex algorithms and models, such as Gaussian density maps, convolutional neural networks, etc. However, although these models and algorithms can accurately identify and analyze abnormal patterns between ports, they all consume high computing resources. For example, the main function of the Gaussian density map is to fuse and discretize target features to help judge the regularity and degree of deviation of data distribution. However: 1. Density estimation of multi-dimensional features: When performing Gaussian density estimation on multi-dimensional features, it is necessary to calculate the probability distribution of each data point in multi-dimensional space. Especially when the feature dimension is high, the amount of calculation for each data point will increase exponentially; 2. Application of complex kernel functions: Usually high Gaussian density estimation uses the kernel density method to achieve data smoothing by selecting different kernel functions, which will further increase computing requirements. The higher the data volume and dimension, the greater the computational overhead of density estimation. 3. Data discretization: Discretization maps the continuous Gaussian density feature distribution to different intervals. This process not only requires a large amount of calculation, but also requires repeated discrete judgments, further consuming computing resources. Therefore, in this solution, the pending ports are first screened and it is determined whether there are anomalies in the pending ports. This reduces the computing resource consumption when judging whether there are anomalies on all ports, concentrates computing resources on the pending ports, significantly reduces overall computing requirements, and improves resource utilization.

[0040] In another preferred embodiment of the present invention, in step S4, the process of determining whether the pending port has an abnormality specifically includes:

[0041] The number of data packets transmitted by the pending port in the sub-period is used as traffic data, and the features of the traffic data of a single pending port are obtained based on the traffic sequence encoder, and the features are used as target features;

[0042] The target features are fused and discretized based on the Gaussian density map, and the interaction features between the target features of different pending ports are determined through a mutually transposed convolutional network;

[0043] The pre-trained classification model is used to determine the pending ports with abnormalities.

[0044] It is worth noting that, first, the number of packets transmitted by the pending port in each sub-cycle is used as traffic data input, and the traffic sequence encoder is used to extract the features of the pending port. This feature encoding process can compress the data so that it represents the core change pattern of the pending port traffic and generate the target features. Then, the target features are processed using a Gaussian density map. First, they are fused, the relationship between the features is smoothed, and further discretized to facilitate subsequent analysis. The Gaussian density map helps capture the distribution pattern and degree of change of the traffic features of the pending port, ensuring that the target features are more suitable for detecting abnormal patterns. On this basis, the feature interaction relationship between different pending ports is identified through mutually transposed convolutional networks. The convolutional network structure in this step is designed as a transposed network to explore the relationship between different ports. Through this network, the system can identify potential commonalities or differences between traffic features, thereby providing stronger feature support for subsequent classification judgment. Finally, the obtained interaction features are input into the pre-trained classification model to determine whether there is an anomaly. Through training with a large amount of data, the model can effectively identify abnormal patterns and automatically screen out abnormal pending ports.

[0045] In another preferred embodiment of the present invention, the process of training the classification model specifically includes:

[0046] Establishing a database, wherein the database stores interaction features labeled as abnormal;

[0047] A classification model is established based on the deep learning model, and is trained and verified using the database to obtain a pre-trained classification model.

[0048] In another preferred embodiment of the present invention, the abnormal coefficient threshold is determined based on the comparative flow rate, Kys=γ / C, where γ is a preset coefficient.

[0049] It should be noted that the flow point corresponding to the comparison flow is on the y-axis. When the flow point on the x-axis remains unchanged, the larger the comparison flow, the larger the area of ​​the flow triangle. Therefore, the abnormal coefficient threshold needs to be adjusted. The preset coefficient γ can be obtained through multiple experiments.

[0050] In another preferred embodiment of the present invention, in step S3, when the comparison flow rate and / or the real-time flow rate is 0, an early warning message is sent for prompting.

[0051] If the comparison traffic or real-time traffic is 0, it may indicate that the port has not transmitted any data packets during this period. This may indicate a port failure, connection problem, or configuration anomaly. Further investigation is required to ensure normal network operation.

[0052] In another preferred embodiment of the present invention, in step S1, when an abnormal pending port exists within the calibration period, a supplementary period is set to replace the calibration period with the abnormality.

[0053] It is understandable that the main purpose of the calibration cycle is to establish a historical benchmark to describe the typical changing trends of port data packet transmission under normal circumstances. If an abnormal situation occurs during the calibration cycle, the collected data will no longer represent the normal traffic pattern, affecting the accuracy of the benchmark; abnormal data will interfere with the average value calculation of the calibration cycle, thereby deviating from the actual normal traffic level. A supplementary cycle is set to re-collect normal traffic data to avoid interference of abnormal data on the benchmark model.

[0054] In another preferred embodiment of the present invention, in step S1, the process of calculating the average number of data packets further includes the following steps:

[0055] When the difference between the number of packets in the calibration period b and the corresponding average number of packets is greater than the preset difference threshold, the number of packets in the calibration period b is removed and the average is calculated again.

[0056] In another preferred embodiment of the present invention, the average number of data packets when there is no difference greater than a preset difference threshold is used as the target number, and the number SL of calibration cycles corresponding to the target number is determined. When the number SL is less than 0.8m, an early warning message is sent for prompting.

[0057] It is worth noting that when calculating the average number of data packets, the data with a large difference between the number of data packets in the calibration period and the corresponding average value (abnormal data with a difference greater than the preset threshold) are removed, and the average value of the remaining number of data packets that does not exceed the preset difference threshold is used as the "target number". The target number represents a stable and expected traffic level; when the number of calibration cycles SL is less than 80% of the total number of calibration cycles (i.e. SL < 0.8m), an early warning message will be sent. If the number of valid calibration cycles (i.e. normal cycles that meet expectations) is insufficient, the representativeness of the benchmark model may not be sufficient to support accurate anomaly detection. At this time, an early warning is sent to remind system administrators or operators to pay attention to the reliability of the benchmark model so that timely adjustments and processing can be made.

[0058] The above is a detailed description of an embodiment of the present invention. However, the content described is only a preferred embodiment of the present invention and should not be considered to limit the scope of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A data processing method for cloud computing based on artificial intelligence, characterized in that: The following steps are involved: S1: m calibration periods are set, where m is a first preset number, and time nodes are set at preset time intervals Δt within the calibration period, and the number of data packets transmitted by the port is obtained at the time nodes, and the average number of data packets transmitted by the port at the same time nodes is calculated to generate a first coordinate point (a, Ca), where Ca represents the average number of data packets transmitted by the port at time node a, and the first coordinate point is fitted to obtain a first curve f(t); S2: Determine the m+1th calibration period, take it as the judgment period, divide the judgment period into n sub-periods of the same length, n is a second preset number, obtain the number of data packets transmitted by the port in real time within the sub-period, and draw a curve g(t) showing the change of the number of data packets over time; S3: Calculate real-time traffic and compare traffic f'(t) represents the portion of the first curve within the sub-period, tsta and tend represent the start and end time points of the sub-period, respectively, and the positions of the real-time flow and the comparison flow on the x-axis and y-axis of the preset coordinate system F are taken as flow points; Connect the flow points to obtain a flow line, take the angle between the flow line and the x-axis as the flow angle, and determine the radian value D of the flow angle; The triangle formed by the flow point and the origin of the coordinate system F is used as a flow triangle, and the area S of the flow triangle is determined; S4: Calculate the abnormal coefficient K=η*S / D, where η is a preset correction coefficient, set the abnormal coefficient threshold Kys, and when the abnormal coefficient K≥Kys, mark the corresponding port as a pending port to determine whether the pending port has an abnormality.

2. The data processing method based on cloud computing based on artificial intelligence according to claim 1, characterized in that: In step S4, the process of determining whether the pending port has an abnormality specifically includes: The number of data packets transmitted by the pending port in the sub-period is used as traffic data, and the characteristics of the traffic data of a single pending port are obtained based on the traffic sequence encoder, and the characteristics are used as the target characteristics; The target features are fused and discretized based on the Gaussian density map, and the interaction features between the target features of different pending ports are determined through a mutually transposed convolutional network; The pre-trained classification model is used to determine the pending ports with abnormalities.

3. The data processing method based on cloud computing based on artificial intelligence according to claim 2, characterized in that: The process of training the classification model specifically includes: Establishing a database, wherein the database stores interaction features labeled as abnormal; A classification model is established based on the deep learning model, and is trained and verified through the database to obtain a pre-trained classification model.

4. The data processing method based on artificial intelligence cloud computing according to claim 1, characterized in that: The abnormal coefficient threshold is determined based on the comparison flow rate, Kys=γ / C, γ is a preset coefficient.

5. The data processing method based on cloud computing based on artificial intelligence according to claim 1, characterized in that: In the step S3, when the comparison flow and / or the real-time flow is 0, an early warning message is sent for prompting.

6. The data processing method based on cloud computing based on artificial intelligence according to claim 1, characterized in that: In the step S1, when there is an abnormal pending port in the calibration period, a supplementary period is set to replace the calibration period with the abnormality.

7. The data processing method based on cloud computing based on artificial intelligence according to claim 1, characterized in that: In the step S1, the process of calculating the average number of data packets also includes the following steps: When the difference between the number of data packets in calibration period b and the corresponding average number of data packets is greater than the preset difference threshold, the number of data packets in calibration period b is removed and the average is calculated again, and the above steps are repeated until there is no difference greater than the preset difference threshold.

8. The data processing method based on cloud computing based on artificial intelligence according to claim 7, characterized in that: The average number of data packets when there is no difference greater than a preset difference threshold is taken as the target number, and the number SL of calibration cycles corresponding to the target number is determined. When the number SL is less than 0.8m, an early warning message is sent for prompting.

Citation Information

Patent Citations

  • Big data abnormal behavior monitoring method, system and device and storage medium

    CN117375889A

  • Network data processing method and system based on cloud computing technology, and electronic equipment

    CN117499149A

  • Intelligent Internet of Things data processing method and management platform oriented to cloud-side collaboration

    CN117914786A

  • Abnormal network traffic monitoring method, device and equipment based on deep learning and readable storage medium

    CN118041661A

  • Intranet flow detection method and system based on artificial intelligence

    CN118250201A

Cited By

  • Mechanical automatic assembly system based on artificial intelligence

    CN120715920A