Big data acquisition and processing method and system based on Internet of Things
By designing multiple data processing units and anomaly monitoring units in the Internet of Things system, combined with the K-means clustering algorithm, dynamic resource regulation and encrypted transmission are realized, which solves the problems of low efficiency and insufficient security of big data processing in the Internet of Things, and improves the system real-time and security.
Patent Information
- Application Number
- CN202410609601.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Big data analysis and processing efficiency in the Internet of Things era is low, it is difficult to cope with massive, high growth rate and diverse information needs, and the real-time and security of data processing are insufficient.
A big data collection and processing system based on the Internet of Things is designed, including a data collection module, a data processing module, an anomaly monitoring module and a dynamic control module. It realizes distributed processing and real-time status monitoring through multiple data processing units and anomaly monitoring units. , dynamically regulate resource allocation, and use K-means clustering algorithm for resource prediction and cluster analysis to ensure the security of data transmission.
It improves the real-time processing capabilities of IoT data, flexibly responds to complex application requirements, improves the accuracy of resource allocation and the security of data transmission, and ensures efficient and stable operation of the system during peak and off-peak hours.
Smart Images

Figure CN118573733A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to a method and system for collecting and processing big data based on the Internet of Things. Background Art
[0002] The Internet of Things is an important part of the new generation of information technology and an important development stage in the "informatization" era. Its English name is "Internet of things (IoT)". As the name suggests, the Internet of Things is the Internet of Things. This has two meanings: first, the core and foundation of the Internet of Things is still the Internet, which is an extension and expansion of the Internet; second, its user end extends and expands to any object to exchange information and communicate, that is, things communicate with each other. The Internet of Things is widely used in the integration of networks through intelligent perception, recognition technology and ubiquitous computing and other communication perception technologies. Therefore, it is called the third wave of the development of the world's information industry after computers and the Internet. The Internet of Things is the application expansion of the Internet. Big data refers to a collection of data that cannot be captured, managed and processed by conventional software tools within a certain time frame. It is a massive, high-growth and diversified information asset that requires new processing models to have stronger decision-making power, insight discovery and process optimization capabilities.
[0003] The Internet of Things connects people in our daily lives with the Internet of Things, generating a large amount of data. Although the Internet of Things currently provides us with specific solutions: cloud computing technology and distributed technology have become a basic computing technology in the era of the Internet of Things. Due to the huge amount of information in big data, the analysis and processing of Internet of Things data is also a major problem currently faced by people.
[0004] Therefore, there is a need to provide a big data collection and processing method and system based on the Internet of Things to improve the efficiency of big data collection and processing based on the Internet of Things. Summary of the invention
[0005] The present invention provides a big data collection and processing system based on the Internet of Things, comprising: a data collection module, comprising a plurality of Internet of Things collection units, wherein the Internet of Things collection units are used to collect Internet of Things data; a data processing module, comprising a plurality of data processing units, wherein each of the data processing units is used to process the Internet of Things data collected by at least one Internet of Things collection unit, and is also used to determine the real-time computing resource requirements corresponding to the Internet of Things collection unit; an abnormality monitoring module, comprising a plurality of abnormality monitoring units, wherein the abnormality monitoring unit is used to receive a heartbeat data packet uploaded by at least one data processing unit, and determine the real-time status of the data processing unit based on the heartbeat data packet; a dynamic control module, used to determine a first resource allocation strategy of the data processing module based on the real-time computing resource requirements corresponding to each of the Internet of Things collection units and the real-time status of each of the data processing units, and determine a second resource allocation strategy of the abnormality monitoring module based on the real-time status of the data processing unit.
[0006] Furthermore, the heartbeat data packet includes real-time CPU usage, real-time memory occupancy and real-time network traffic; the abnormal monitoring module determines the real-time status of the data processing unit based on the heartbeat data packet, including: obtaining multiple consecutive heartbeat data packets of the current time period of the current monitoring cycle; for each of the current time period, based on the heartbeat data packets of multiple consecutive current time points included in the current time period, determining the heartbeat characteristic parameters corresponding to the current time period; based on the heartbeat characteristic parameters corresponding to each of the current time period, determining the real-time status of the data processing unit.
[0007] Further, the abnormal monitoring module determines the heartbeat characteristic parameters corresponding to the current time period based on the heartbeat data packets of multiple consecutive current time points included in the current time period, including: determining the real-time CPU usage average and real-time CPU usage fluctuation parameters corresponding to the current time period based on the real-time CPU usage of multiple consecutive current time points included in the current time period; determining the real-time memory usage average and real-time memory usage fluctuation parameters corresponding to the current time period based on the real-time memory occupancy of multiple consecutive current time points included in the current time period; determining the real-time network traffic average and real-time network traffic fluctuation parameters corresponding to the current time period based on the real-time network traffic of multiple consecutive current time points included in the current time period; for each of the current time periods, judging whether the current time period is the first abnormal time period based on the real-time CPU usage fluctuation parameters, real-time memory occupancy fluctuation parameters and real-time network traffic fluctuation parameters corresponding to the current time period; determining the first abnormal time period frequency of the data processing unit in the current monitoring cycle, wherein the heartbeat characteristic parameters corresponding to the current time period include the real-time CPU usage average, real-time memory occupancy average and real-time network traffic average and the first abnormal time period frequency corresponding to each of the current time periods.
[0008] Furthermore, the dynamic control module is also used to: obtain heartbeat data packets of the multiple data processing units in multiple continuous historical time periods of multiple historical monitoring cycles; for each of the historical time periods, based on the heartbeat data packets of multiple continuous historical time points included in the historical time period of any two of the data processing units, determine the first state correlation coefficient of the historical time period corresponding to the two data processing units; for each of the historical monitoring cycles, based on the first state correlation coefficient of each of the historical time periods included in the historical monitoring cycles corresponding to any two of the data processing units, determine the second state correlation coefficient of the historical monitoring cycles corresponding to the two data processing units; for any two of the data processing units, based on the heartbeat data packets of each of the historical time periods corresponding to the two data processing units The second state correlation coefficient of the monitoring period is calculated, the correlation coefficient mean and the correlation coefficient fluctuation parameter corresponding to the two data processing units are calculated, and the third state correlation coefficient corresponding to the two data processing units is determined based on the correlation coefficient mean and the correlation coefficient fluctuation parameter corresponding to the two data processing units; the multiple data processing units are clustered based on the third state correlation coefficients corresponding to any two of the data processing units through the K-means clustering algorithm to determine multiple data processing unit clusters; the abnormal monitoring module determines the real-time state of the data processing unit based on the heartbeat characteristic parameters corresponding to each of the current time periods, including: determining the real-time state of the data processing unit based on the multiple data processing unit clusters and the heartbeat characteristic parameters corresponding to each of the current time periods of the data processing unit.
[0009] Furthermore, the abnormal monitoring module determines the real-time status of the data processing unit based on the multiple data processing unit clusters and the heartbeat characteristic parameters corresponding to each of the current time periods of the data processing unit, including: determining the target data processing unit cluster corresponding to the data processing unit; determining the frequency of the second abnormal time period of the data processing unit in the current monitoring cycle based on the real-time CPU usage average, real-time memory occupancy average and real-time network traffic average corresponding to each of the data processing units included in the data processing unit cluster in each of the current time periods; determining the real-time status of the data processing unit based on the first abnormal time period frequency and the second abnormal time period frequency of the data processing unit in the current monitoring cycle.
[0010] Furthermore, the dynamic control module determines the first resource allocation strategy of the data processing module based on the real-time computing resource demand corresponding to each of the Internet of Things acquisition units and the real-time status of each of the data processing units, including: for each of the data processing unit clusters, based on the real-time CPU usage average, real-time memory occupancy average and real-time network traffic average corresponding to each of the data processing units included in the data processing unit cluster in each of the current time periods, predicting the future resource demand fluctuation parameter corresponding to the data processing unit cluster; taking the data processing unit cluster whose future resource demand fluctuation parameter is greater than a preset fluctuation parameter threshold as the target data processing unit cluster; taking the Internet of Things acquisition unit corresponding to each of the data processing units included in the target data processing unit cluster as the target Internet of Things acquisition unit; for any two The Internet of Things acquisition unit calculates the demand similarity between the two Internet of Things acquisition units based on the historical computing resource demands of the two Internet of Things acquisition units at multiple historical time points; clusters the multiple Internet of Things acquisition units based on the demand similarity between any two of the Internet of Things acquisition units through a K-means clustering algorithm to determine multiple Internet of Things acquisition unit clusters; for each of the target Internet of Things acquisition units, based on the real-time computing resource demands of each Internet of Things acquisition unit included in the target Internet of Things acquisition unit at multiple current time points in the current monitoring cycle, determines the future computing resource demand of the target Internet of Things acquisition unit; based on the future computing resource demand of each of the target Internet of Things acquisition units and the real-time status of each of the data processing units, determines the first resource allocation strategy of the data processing module.
[0011] Furthermore, the abnormality monitoring module is also used to adjust the heartbeat data packet upload frequency of the data processing unit based on the real-time status of the data processing unit; the dynamic control module determines the second resource allocation strategy of the abnormality monitoring module based on the real-time status of the data processing unit, including: determining the second resource allocation strategy of the abnormality monitoring module based on the heartbeat data packet upload frequency of each of the data processing units.
[0012] Furthermore, the Internet of Things collection unit is also used to: based on the first resource allocation strategy, encrypt the Internet of Things data and send it to the data processing unit.
[0013] Furthermore, the data processing module is also used to: based on the second resource allocation strategy, encrypt the heartbeat data packet and send it to the abnormality monitoring unit.
[0014] The present invention provides a big data collection and processing method based on the Internet of Things, comprising: acquiring Internet of Things data collected by multiple Internet of Things collection units; receiving a heartbeat data packet uploaded by at least one data processing unit, and determining the real-time status of the data processing unit based on the heartbeat data packet; determining a first resource allocation strategy based on the real-time computing resource demand corresponding to each of the Internet of Things collection units and the real-time status of each of the data processing units; processing the Internet of Things data collected by at least one Internet of Things collection unit and determining the real-time computing resource demand corresponding to the Internet of Things collection unit according to the first resource allocation strategy; and determining a second resource allocation strategy based on the real-time status of the data processing unit.
[0015] Compared with the prior art, the big data collection and processing method and system based on the Internet of Things provided by the present invention have at least the following beneficial effects:
[0016] 1. By setting up multiple data processing units, distributed processing of IoT data is realized, and the real-time performance of data processing is improved. By setting up multiple abnormal monitoring units, the real-time status monitoring of the data processing units is realized. On this basis, the first resource allocation strategy of the data processing module is determined based on the real-time computing resource requirements corresponding to each IoT acquisition unit and the real-time status of each data processing unit. Based on the real-time status of the data processing unit, the second resource allocation strategy of the abnormal monitoring module is determined to achieve dynamic regulation, and the computing and storage resources can be reasonably allocated and adjusted according to the real-time IoT data volume. This flexibility can cope with various complex IoT application requirements, and can maintain efficient and stable operation whether in peak or off-peak hours.
[0017] 2. Deeply explore the correlation between multiple IoT collection units and the correlation between multiple data processing units, provide higher-dimensional data support for predicting the future computing resource requirements of IoT collection units and determining the real-time status of data processing units, and improve the accuracy of predicting the future computing resource requirements of IoT collection units and determining the real-time status of data processing units.
[0018] 3. Based on the first resource allocation strategy, the IoT data is encrypted and sent to the data processing unit. Based on the second resource allocation strategy, the heartbeat data packet is encrypted and sent to the abnormality monitoring unit, thereby improving the security of data transmission and effectively preventing data leakage. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] This specification will be further described in the form of exemplary embodiments, which will be described in detail by the accompanying drawings. These embodiments are not restrictive, and in these embodiments, the same number represents the same structure, wherein:
[0020] Figure 1 It is a module schematic diagram of a big data collection and processing system based on the Internet of Things according to some embodiments of this specification;
[0021] Figure 2 It is a schematic diagram of a process of determining a heartbeat characteristic parameter corresponding to a current time period according to some embodiments of this specification;
[0022] Figure 3 is a schematic diagram of a process of determining a first resource allocation strategy according to some embodiments of this specification;
[0023] Figure 4 It is a flow chart of a method for collecting and processing big data based on the Internet of Things according to some embodiments of this specification. DETAILED DESCRIPTION
[0024] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of this specification. For ordinary technicians in this field, this specification can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0025] Figure 1 is a module schematic diagram of a big data collection and processing system based on the Internet of Things according to some embodiments of this specification, such as Figure 1As shown, a big data collection and processing system based on the Internet of Things may include a data collection module, a data processing module, an abnormality monitoring module and a dynamic control module.
[0026] The data acquisition module may include multiple Internet of Things acquisition units.
[0027] Among them, the IoT collection unit is used to collect IoT data. For example, in a real-time traffic monitoring scenario, IoT data may include data such as traffic flow, vehicle location, speed, etc. For another example, in a smart home scenario, IoT data may include data such as temperature, humidity, and light in the home environment. For another example, in a smart medical scenario, IoT data may include physiological data of patients (such as heart rate, blood pressure, blood sugar, etc.).
[0028] The data processing module may include multiple data processing units.
[0029] Each data processing unit is used to process the Internet of Things data collected by at least one Internet of Things collection unit, and is also used to determine the real-time computing resource requirements corresponding to the Internet of Things collection unit.
[0030] The data processing unit may include: a processor, which is responsible for performing computing tasks and processing data from the data processing unit, applications, or other devices; a memory, which is used to store data required for the tasks being performed and the applications to speed up data access; a storage device, which is used to store data and applications for a long time so that they can be quickly retrieved when needed; and a network interface card, which is responsible for the communication between the data processing unit and the data processing unit, server, or cloud service to ensure that data can be efficiently transmitted and received. The data processing unit can receive the IoT data collected by the data processing unit through wireless communication technology.
[0031] The real-time computing resource demand may be the computing resources (e.g., processor resources, memory resources, network resources, etc.) required to process the IoT data collected by the IoT collection unit. The data processing unit may perform data processing operations such as data deduplication, data filtering, data format conversion, missing value filling, outlier processing, descriptive statistical analysis, exploratory data analysis, hypothesis testing, regression analysis, cluster analysis, and principal component analysis on the IoT data collected by the IoT collection unit.
[0032] The abnormality monitoring module may include multiple abnormality monitoring units.
[0033] The abnormality monitoring unit is used to receive a heartbeat data packet uploaded by at least one data processing unit, and determine the real-time status of the data processing unit based on the heartbeat data packet.
[0034] In some embodiments, the heartbeat data packet includes real-time CPU usage, real-time memory occupancy, and real-time network traffic.
[0035] In some embodiments, the abnormality monitoring module determines the real-time status of the data processing unit based on the heartbeat data packet, including:
[0036] Obtain multiple consecutive heartbeat data packets of the current time period in the current monitoring cycle;
[0037] For each current time period, based on a plurality of consecutive heartbeat data packets at current time points included in the current time period, determine the heartbeat characteristic parameters corresponding to the current time period;
[0038] Based on the heartbeat characteristic parameters corresponding to each current time period, the real-time status of the data processing unit is determined.
[0039] Figure 2 is a flow chart of determining the heartbeat characteristic parameters corresponding to the current time period according to some embodiments of this specification, such as Figure 2 As shown, in some embodiments, the abnormal monitoring module determines the heartbeat characteristic parameters corresponding to the current time period based on a plurality of consecutive heartbeat data packets at the current time points included in the current time period, including:
[0040] Based on the real-time CPU usage rates of multiple consecutive current time points included in the current time period, determine the real-time CPU usage rate average and the real-time CPU usage rate fluctuation parameter corresponding to the current time period;
[0041] Based on the real-time memory occupancy rates of multiple consecutive current time points included in the current time period, determine the real-time memory occupancy rate mean and the real-time memory occupancy rate fluctuation parameter corresponding to the current time period;
[0042] Based on the real-time network traffic at multiple consecutive current time points included in the current time period, determine the real-time network traffic mean and real-time network traffic fluctuation parameters corresponding to the current time period;
[0043] For each current time period, based on the real-time CPU usage fluctuation parameter, the real-time memory occupancy fluctuation parameter, and the real-time network traffic fluctuation parameter corresponding to the current time period, determine whether the current time period is the first abnormal time period;
[0044] Determine the frequency of the first abnormal time period of the data processing unit in the current monitoring cycle, wherein the heartbeat characteristic parameters corresponding to the current time period include the real-time CPU usage average, real-time memory occupancy average and real-time network traffic average corresponding to each current time period and the frequency of the first abnormal time period.
[0045] For example, the real-time average CPU usage can be calculated based on the following formula:
[0046]
[0047] Among them, M (1,i,j) is the average real-time CPU usage of the i-th data processing unit in the j-th current time period, R (1,t,i,j) is the real-time CPU usage of the ith data processing unit at the tth current time point in the jth current time period, and T is the total number of time points included in a time period.
[0048] The method for calculating the real-time average memory usage and the real-time average network traffic is similar to the method for calculating the real-time average CPU usage, and is not described here.
[0049] The real-time CPU usage fluctuation parameter can be calculated based on the following formula:
[0050]
[0051] Among them, V (1,i,j) is the real-time CPU usage fluctuation parameter corresponding to the i-th data processing unit in the j-th current time period.
[0052] The method for calculating the real-time memory usage fluctuation parameter and the real-time network traffic fluctuation parameter is similar to the method for calculating the real-time CPU usage fluctuation parameter, which is not described here.
[0053] It is understandable that abnormalities in the performance indicators of the data processing module, such as a sudden increase in CPU usage, abnormal network traffic, etc., may indicate that the device is under attack or has a fault. When the real-time CPU usage fluctuation parameter corresponding to the current time period is greater than the preset real-time CPU usage fluctuation parameter threshold, the real-time memory occupancy fluctuation parameter is greater than the preset real-time memory occupancy fluctuation parameter threshold, and / or the real-time network traffic fluctuation parameter is greater than the preset real-time network traffic fluctuation parameter threshold, the current time period is the first abnormal time period.
[0054] The dynamic control module can be used to determine the first resource allocation strategy of the data processing module based on the real-time computing resource requirements corresponding to each IoT acquisition unit and the real-time status of each data processing unit.
[0055] In some embodiments, the dynamic control module is further used to:
[0056] Acquire heartbeat data packets of multiple data processing units in multiple continuous historical time periods of multiple historical monitoring cycles;
[0057] For each historical time period, based on the heartbeat data packets of any two data processing units at a plurality of consecutive historical time points included in the historical time period, determine the first state correlation coefficient of the historical time period corresponding to the two data processing units;
[0058] For each historical monitoring cycle, determining a second state correlation coefficient of the historical monitoring cycle corresponding to the two data processing units based on the first state correlation coefficient of each historical time period included in the historical monitoring cycle corresponding to any two data processing units;
[0059] For any two data processing units, based on the second state correlation coefficients of the two data processing units corresponding to each historical monitoring period, the correlation coefficient mean values and correlation coefficient fluctuation parameters corresponding to the two data processing units are calculated, and based on the correlation coefficient mean values and correlation coefficient fluctuation parameters corresponding to the two data processing units, the third state correlation coefficients corresponding to the two data processing units are determined;
[0060] The multiple data processing units are clustered based on the third state correlation coefficients corresponding to any two data processing units through the K-means clustering algorithm to determine multiple data processing unit clusters.
[0061] For example, the first state correlation coefficient of the historical time periods corresponding to the two data processing units may be calculated based on the following formula:
[0062]
[0063] Among them, C (i,e,t) is the first state correlation coefficient of the fth historical time period corresponding to the ith data processing unit and the eth data processing unit, R (1,t,i,k) is the historical CPU usage of the ith data processing unit at the tth historical time point in the kth historical time period, M (1,i,k) is the historical average CPU usage of the i-th data processing unit in the k-th historical time period, R (1,t,e,k) is the historical CPU usage of the e-th data processing unit at the t-th historical time point in the k-th historical time period, M (1,e,k) is the historical average CPU usage of the e-th data processing unit in the k-th historical time period, R (2,t,i,k) is the historical memory usage of the i-th data processing unit at the t-th historical time point in the k-th historical time period, M (2,i,k) is the mean historical memory usage rate of the i-th data processing unit in the k-th historical time period, R (2,t,e,k) is the historical memory occupancy rate of the e-th data processing unit at the t-th historical time point in the k-th historical time period, M (2,e,k) is the mean historical memory usage rate of the e-th data processing unit in the k-th historical time period, R (3,t,i,k) is the historical network traffic of the ith data processing unit at the tth historical time point in the kth historical time period, M (3,i,k) is the historical network traffic average corresponding to the i-th data processing unit in the k-th historical time period, R(3,t,e,k) is the historical network traffic of the e-th data processing unit at the t-th historical time point in the k-th historical time period, M (3,e,k) is the average historical network traffic corresponding to the e-th data processing unit in the k-th historical time period, a1, a2 and a3 are all preset weights, a1, a2 and a3 are all greater than 0, and a1+a2+a3=1.
[0064] The second state correlation coefficient of the historical monitoring period corresponding to the two data processing units can be determined based on the following formula:
[0065]
[0066] Among them, C ((i,e),m) is the second state correlation coefficient of the hth historical monitoring cycle corresponding to the ith data processing unit and the eth data processing unit, and K is the total number of historical time periods included in one historical monitoring cycle.
[0067] The second state correlation coefficients of the two data processing units in each historical monitoring period are averaged to obtain the correlation coefficient averages corresponding to the two data processing units.
[0068] The correlation coefficient fluctuation parameter corresponding to the two data processing units can be calculated based on the following formula:
[0069]
[0070] Among them, V (i,e) is the correlation coefficient fluctuation parameter corresponding to the ith data processing unit and the eth data processing unit, C ((i,e),mean) is the mean of the correlation coefficients corresponding to the ith data processing unit and the eth data processing unit, and H is the total number of historical monitoring cycles.
[0071] The third state correlation coefficients corresponding to the two data processing units can be calculated based on the following formula:
[0072] C (i,e) =C ((i,e),mean) +α*V (i,e)
[0073] Among them, C (i,e) is the third state correlation coefficient corresponding to the ith data processing unit and the eth data processing unit, α is a preset parameter, 0<α<1.
[0074] The multiple data processing units may be clustered based on the following process to determine multiple data processing unit clusters:
[0075] S11, randomly select K data processing units as initial cluster centers, and execute S12;
[0076] S12, for each data processing unit, assign the data processing unit to the cluster center with the highest third state correlation coefficient, and execute S13;
[0077] S13, removing the cluster center of the data processing unit cluster including a total number of data processing units less than a preset total number, and executing S14;
[0078] S14, for each data processing unit cluster, based on the third state correlation coefficient between each data processing unit included in the data processing unit cluster and the cluster center of the data processing unit cluster, calculate the third state correlation coefficient fluctuation parameter, and take the data processing unit with the largest third state correlation coefficient with the cluster center of the data processing unit cluster in the data processing unit cluster whose third state correlation coefficient fluctuation parameter is greater than the preset third state correlation coefficient fluctuation parameter threshold as the new cluster center, and execute S15;
[0079] S15, determine whether the updated cluster center is consistent with the cluster center before updating, if so, complete clustering, if not, execute S12.
[0080] In some embodiments, the abnormality monitoring module determines the real-time status of the data processing unit based on the heartbeat characteristic parameters corresponding to each current time period, including:
[0081] Based on the plurality of data processing unit clusters and the heartbeat characteristic parameters corresponding to each current time period of the data processing unit, the real-time status of the data processing unit is determined.
[0082] In some embodiments, the abnormality monitoring module determines the real-time status of the data processing unit based on the plurality of data processing unit clusters and the heartbeat characteristic parameters corresponding to each current time period of the data processing unit, including:
[0083] Determine a target data processing unit cluster corresponding to the data processing unit;
[0084] Determine the frequency of the second abnormal time period of the data processing unit in the current monitoring cycle based on the real-time CPU usage average, real-time memory occupancy average and real-time network traffic average corresponding to each data processing unit included in the data processing unit cluster in each current time period;
[0085] The real-time status of the data processing unit is determined based on the frequency of the first abnormal time period and the frequency of the second abnormal time period of the data processing unit in the current monitoring cycle.
[0086] Specifically, the average of the real-time CPU usage corresponding to each data processing unit included in the data processing unit cluster in each current time period is averaged again to obtain the cluster real-time CPU usage average corresponding to the data processing unit cluster in each current time period; the average of the real-time memory occupancy corresponding to each data processing unit included in the data processing unit cluster in each current time period is averaged again to obtain the cluster real-time memory occupancy average corresponding to the data processing unit cluster in each current time period; the average of the real-time network traffic corresponding to each data processing unit included in the data processing unit cluster in each current time period is averaged again to obtain the cluster real-time network traffic average corresponding to the data processing unit cluster in each current time period.
[0087] For a certain current time period, if the difference between the average real-time CPU usage of the data processing unit in the current time period and the average cluster real-time CPU usage of the data processing unit cluster to which it belongs in the current time period is greater than a preset first difference, the difference between the average real-time memory occupancy of the data processing unit in the current time period and the average cluster real-time memory occupancy of the data processing unit cluster to which it belongs in the current time period is greater than a preset second difference, and / or the difference between the average real-time network traffic of the data processing unit in the current time period and the average cluster real-time network traffic of the data processing unit cluster to which it belongs in the current time period is greater than a preset third difference, then the current time period is a second abnormal time period.
[0088] When the frequency of the first abnormal time period of the data processing unit in the current monitoring cycle is greater than the preset first abnormal time period frequency threshold and / or the frequency of the second abnormal time period is greater than the preset second abnormal time period frequency threshold, the data processing unit is in an abnormal state. The data processing unit in an abnormal state will no longer be able to process the IoT data collected by at least one IoT collection unit until the data processing unit is repaired and restored to a normal state.
[0089] Figure 3 is a flow chart of determining a first resource allocation strategy according to some embodiments of this specification, such as Figure 3 As shown, in some embodiments, the dynamic control module determines the first resource allocation strategy of the data processing module based on the real-time computing resource demand corresponding to each IoT acquisition unit and the real-time status of each data processing unit, including:
[0090] For each data processing unit cluster, based on the real-time CPU usage average, real-time memory occupancy average and real-time network traffic average corresponding to each data processing unit included in the data processing unit cluster in each current time period, predict the future resource demand fluctuation parameters corresponding to the data processing unit cluster;
[0091] The data processing unit cluster whose future resource demand fluctuation parameter is greater than a preset fluctuation parameter threshold is taken as the target data processing unit cluster;
[0092] The Internet of Things acquisition unit corresponding to each data processing unit included in the target data processing unit cluster is used as the target Internet of Things acquisition unit;
[0093] For any two IoT collection units, the demand similarity between the two IoT collection units is calculated based on the historical computing resource demands of the two IoT collection units at multiple historical time points;
[0094] Based on the demand similarity between any two IoT collection units, multiple IoT collection units are clustered by the K-means clustering algorithm to determine multiple IoT collection unit clusters;
[0095] For each target IoT collection unit, determining a future computing resource requirement of the target IoT collection unit based on the real-time computing resource requirements of each IoT collection unit included in the target IoT collection unit at multiple current time points in the current monitoring period;
[0096] Based on the future computing resource requirements of each target Internet of Things acquisition unit and the real-time status of each data processing unit, a first resource allocation strategy for the data processing module is determined.
[0097] Specifically, the fluctuation prediction model can be used to predict the future resource demand fluctuation parameters corresponding to the data processing unit cluster based on the real-time CPU usage average, real-time memory occupancy average, and real-time network traffic average corresponding to each data processing unit included in the data processing unit cluster in each current time period. The demand prediction model is used to determine the future computing resource demand of the target Internet of Things acquisition unit based on the real-time computing resource demand of each Internet of Things acquisition unit included in the target Internet of Things acquisition unit at multiple current time points in the current monitoring cycle, wherein the fluctuation prediction model and the demand prediction model can both be convolutional neural network (CNN) models.
[0098] A first strategy generation model can be used to generate multiple candidate first resource allocation strategies based on the future computing resource requirements of each target Internet of Things acquisition unit, the real-time status of each data processing unit, and the first constraint condition, wherein the candidate first resource allocation strategies may include an Internet of Things acquisition unit corresponding to each data processing unit, the first strategy generation model may be a Generative Adversarial Networks model, and the first constraint condition includes that the load difference between any two data processing units in a normal state is less than a first preset load difference threshold.
[0099] For each candidate first resource allocation strategy, the data processing unit corresponding to the IoT collection unit cluster can be determined, the first communication distance between the data processing units corresponding to the IoT collection unit cluster can be calculated, the first communication distance corresponding to each IoT collection unit cluster can be summed, and the sum of the first communication distances can be determined. For example, the IoT collection unit cluster includes IoT collection unit 1, IoT collection unit 2, IoT collection unit 3, and IoT collection unit 4, IoT collection unit 1 and IoT collection unit 2 correspond to data processing unit 1, IoT collection unit 3 corresponds to data processing unit 2, and IoT collection unit 4 corresponds to data processing unit 3, then the first communication distance can include the sum of the communication distance between data processing unit 1 and data processing unit 2, the communication distance between data processing unit 3 and data processing unit 2, and the communication distance between data processing unit 1 and data processing unit 3.
[0100] The first communication distance and the shortest candidate first resource allocation strategy are selected as the first resource allocation strategy of the data processing module.
[0101] The dynamic control module may also be used to determine a second resource allocation strategy of the abnormality monitoring module based on the real-time status of the data processing unit.
[0102] In some embodiments, the abnormality monitoring module is further used to adjust the frequency of uploading the heartbeat data packets of the data processing unit based on the real-time status of the data processing unit. For example, the greater the frequency of the first abnormal time period and / or the greater the frequency of the second abnormal time period, the higher the frequency of uploading the heartbeat data packets of the data processing unit;
[0103] The dynamic control module determines the second resource allocation strategy of the abnormal monitoring module based on the real-time status of the data processing unit, including:
[0104] Based on the heartbeat data packet upload frequency of each data processing unit, a second resource allocation strategy of the abnormality monitoring module is determined.
[0105] A second strategy generation model can be used to generate multiple candidate second resource allocation strategies based on the heartbeat data packet upload frequency of each data processing unit, the real-time status of each data processing unit, and a second preset condition, wherein the candidate second resource allocation strategies may include a data processing unit corresponding to each abnormal monitoring unit, the second strategy generation model may be a Generative Adversarial Networks model, and the second constraint condition includes that the load difference between any two abnormal monitoring units is less than a second preset load difference threshold.
[0106] For each candidate second resource allocation strategy, the abnormality monitoring unit corresponding to the data processing unit cluster can be determined, the second communication distance between the abnormality monitoring units corresponding to the data processing unit cluster can be calculated, the second communication distance corresponding to each data processing unit cluster can be summed to determine the second communication distance sum.
[0107] The second communication distance and the shortest candidate second resource allocation strategy are selected as the second resource allocation strategy of the abnormality monitoring module.
[0108] In some embodiments, the Internet of Things collection unit is further used to: based on the first resource allocation strategy, encrypt the Internet of Things data and send it to the data processing unit.
[0109] Specifically, the Internet of Things collection unit encrypts the Internet of Things data based on the public key corresponding to the Internet of Things collection unit and the key corresponding to the corresponding data processing unit, and then sends the encrypted data to the corresponding data processing unit.
[0110] In some embodiments, the data processing module is further used to: based on the second resource allocation strategy, encrypt the heartbeat data packet and send it to the abnormality monitoring unit.
[0111] Specifically, the data processing unit encrypts the heartbeat data packet based on the public key corresponding to the data processing unit and the key corresponding to the corresponding abnormality monitoring unit, and then sends the encrypted heartbeat data packet to the corresponding abnormality monitoring unit.
[0112] Figure 4 is a flow chart of a method for collecting and processing big data based on the Internet of Things according to some embodiments of this specification, such as Figure 4 As shown, a big data collection and processing method based on the Internet of Things may include the following steps.
[0113] Step 410, obtaining IoT data collected by multiple IoT collection units.
[0114] Step 420, receiving a heartbeat data packet uploaded by at least one data processing unit, and determining the real-time status of the data processing unit based on the heartbeat data packet.
[0115] Step 430: Determine a first resource allocation strategy based on the real-time computing resource requirements corresponding to each IoT acquisition unit and the real-time status of each data processing unit.
[0116] Step 440: Process the IoT data collected by at least one IoT collection unit and determine the real-time computing resource requirements corresponding to the IoT collection unit according to the first resource allocation strategy.
[0117] Step 450: Determine a second resource allocation strategy based on the real-time status of the data processing unit.
[0118] A big data collection and processing method based on the Internet of Things can be executed by a big data collection and processing system based on the Internet of Things. For more descriptions of a big data collection and processing method based on the Internet of Things, please refer to the relevant description of a big data collection and processing system based on the Internet of Things, which will not be repeated here.
[0119] Finally, it should be understood that the embodiments in this specification are only used to illustrate the principles of the embodiments of this specification. Other variations may also fall within the scope of this specification. Therefore, as an example and not a limitation, alternative configurations of the embodiments of this specification may be considered consistent with the teachings of this specification. Accordingly, the embodiments of this specification are not limited to the embodiments explicitly introduced and described in this specification.
Claims
1. A big data collection and processing system based on the Internet of Things, It is characterized in that include: A data collection module, comprising a plurality of IoT collection units, wherein the IoT collection units are used to collect IoT data; A data processing module, comprising a plurality of data processing units, wherein each of the data processing units is used to process the IoT data collected by at least one IoT collection unit, and is also used to determine the real-time computing resource requirements corresponding to the IoT collection unit; An abnormality monitoring module, comprising a plurality of abnormality monitoring units, wherein the abnormality monitoring unit is used to receive a heartbeat data packet uploaded by at least one data processing unit, and determine the real-time status of the data processing unit based on the heartbeat data packet; The dynamic control module is used to determine the first resource allocation strategy of the data processing module based on the real-time computing resource requirements corresponding to each of the Internet of Things acquisition units and the real-time status of each of the data processing units, and determine the second resource allocation strategy of the abnormality monitoring module based on the real-time status of the data processing unit.
2. According to the big data collection and processing system based on the Internet of Things according to claim 1, It is characterized in that The heartbeat data packet includes real-time CPU usage, real-time memory occupancy and real-time network traffic; The abnormality monitoring module determines the real-time status of the data processing unit based on the heartbeat data packet, including: Obtain multiple consecutive heartbeat data packets of the current time period in the current monitoring cycle; For each current time period, based on a plurality of consecutive heartbeat data packets at current time points included in the current time period, determine a heartbeat characteristic parameter corresponding to the current time period; Based on the heartbeat characteristic parameters corresponding to each of the current time periods, the real-time status of the data processing unit is determined.
3. According to the big data collection and processing system based on the Internet of Things as described in claim 2, It is characterized in that The abnormal monitoring module determines the heartbeat characteristic parameters corresponding to the current time period based on a plurality of consecutive heartbeat data packets at current time points included in the current time period, including: Based on the real-time CPU usage rates of multiple consecutive current time points included in the current time period, determine the real-time CPU usage rate mean and the real-time CPU usage rate fluctuation parameter corresponding to the current time period; Based on the real-time memory occupancy rates of a plurality of consecutive current time points included in the current time period, determining a real-time memory occupancy rate mean and a real-time memory occupancy rate fluctuation parameter corresponding to the current time period; Based on the real-time network traffic at multiple consecutive current time points included in the current time period, determine the real-time network traffic mean and real-time network traffic fluctuation parameter corresponding to the current time period; For each of the current time periods, based on the real-time CPU usage fluctuation parameter, the real-time memory occupancy fluctuation parameter, and the real-time network traffic fluctuation parameter corresponding to the current time period, determining whether the current time period is a first abnormal time period; Determine the frequency of the first abnormal time period of the data processing unit in the current monitoring cycle, wherein the heartbeat characteristic parameters corresponding to the current time period include the real-time CPU usage average, real-time memory occupancy average and real-time network traffic average corresponding to each of the current time periods and the frequency of the first abnormal time period.
4. According to the big data collection and processing system based on the Internet of Things as described in claim 3, It is characterized in that The dynamic control module is also used for: Acquire heartbeat data packets of the multiple data processing units in multiple continuous historical time periods of multiple historical monitoring cycles; For each of the historical time periods, determining the first state correlation coefficient of the historical time periods corresponding to the two data processing units based on the heartbeat data packets of any two of the data processing units at a plurality of consecutive historical time points included in the historical time period; For each of the historical monitoring cycles, determining the second state correlation coefficients of the historical monitoring cycles corresponding to the two data processing units based on the first state correlation coefficients of each of the historical time periods included in the historical monitoring cycles corresponding to any two of the data processing units; For any two of the data processing units, based on the second state correlation coefficients of the two data processing units corresponding to each of the historical monitoring periods, the mean values of the correlation coefficients and the correlation coefficient fluctuation parameters corresponding to the two data processing units are calculated; based on the mean values of the correlation coefficients and the correlation coefficient fluctuation parameters corresponding to the two data processing units, the third state correlation coefficients corresponding to the two data processing units are determined; Clustering the plurality of data processing units based on the third state correlation coefficients corresponding to any two of the data processing units by using a K-means clustering algorithm to determine a plurality of data processing unit clusters; The abnormal monitoring module determines the real-time state of the data processing unit based on the heartbeat characteristic parameters corresponding to each current time period, including: Based on the multiple data processing unit clusters and the heartbeat characteristic parameters corresponding to each of the current time periods of the data processing units, the real-time status of the data processing units is determined.
5. According to the big data collection and processing system based on the Internet of Things according to claim 4, It is characterized in that The abnormal monitoring module determines the real-time status of the data processing unit based on the multiple data processing unit clusters and the heartbeat characteristic parameters corresponding to each current time period of the data processing unit, including: Determining a target data processing unit cluster corresponding to the data processing unit; Determine the frequency of the second abnormal time period of the data processing unit in the current monitoring cycle based on the real-time CPU usage average, real-time memory occupancy average and real-time network traffic average corresponding to each data processing unit included in the data processing unit cluster in each current time period; The real-time status of the data processing unit is determined based on the frequency of the first abnormal time period and the frequency of the second abnormal time period of the data processing unit in the current monitoring cycle.
6. According to the big data collection and processing system based on the Internet of Things according to claim 5, It is characterized in that The dynamic control module determines a first resource allocation strategy of the data processing module based on the real-time computing resource demand corresponding to each of the Internet of Things acquisition units and the real-time status of each of the data processing units, including: For each of the data processing unit clusters, based on the real-time CPU usage average, real-time memory occupancy average and real-time network traffic average corresponding to each data processing unit included in the data processing unit cluster in each current time period, predict the future resource demand fluctuation parameters corresponding to the data processing unit cluster; The data processing unit cluster whose future resource demand fluctuation parameter is greater than a preset fluctuation parameter threshold is taken as the target data processing unit cluster; The Internet of Things acquisition unit corresponding to each of the data processing units included in the target data processing unit cluster is used as the target Internet of Things acquisition unit; For any two of the IoT collection units, based on the historical computing resource requirements of the two IoT collection units at multiple historical time points, calculate the demand similarity between the two IoT collection units; Clustering the plurality of IoT collection units based on the demand similarity between any two of the IoT collection units by using a K-means clustering algorithm to determine a plurality of IoT collection unit clusters; For each of the target Internet of Things acquisition units, determining the future computing resource requirements of the target Internet of Things acquisition unit based on the real-time computing resource requirements of each Internet of Things acquisition unit included in the target Internet of Things acquisition unit at multiple current time points in the current monitoring period; Based on the future computing resource requirements of each of the target Internet of Things acquisition units and the real-time status of each of the data processing units, a first resource allocation strategy of the data processing module is determined.
7. A big data collection and processing system based on the Internet of Things according to any one of claims 1 to 6, It is characterized in that The abnormal monitoring module is also used to adjust the heartbeat data packet upload frequency of the data processing unit based on the real-time status of the data processing unit; The dynamic control module determines the second resource allocation strategy of the abnormality monitoring module based on the real-time status of the data processing unit, including: Based on the heartbeat data packet upload frequency of each of the data processing units, a second resource allocation strategy of the abnormality monitoring module is determined.
8. A big data collection and processing system based on the Internet of Things according to any one of claims 1 to 6, It is characterized in that The Internet of Things acquisition unit is also used for: Based on the first resource allocation strategy, the Internet of Things data is encrypted and sent to a data processing unit.
9. A big data collection and processing system based on the Internet of Things according to any one of claims 1 to 6, It is characterized in that The data processing module is also used for: Based on the second resource allocation strategy, the heartbeat data packet is encrypted and sent to the abnormality monitoring unit.
10. A method for collecting and processing big data based on the Internet of Things. It is characterized in that include: Obtain IoT data collected by multiple IoT collection units; Receive a heartbeat data packet uploaded by at least one data processing unit, and determine the real-time status of the data processing unit based on the heartbeat data packet; Determine a first resource allocation strategy based on the real-time computing resource requirements corresponding to each of the Internet of Things acquisition units and the real-time status of each of the data processing units; According to the first resource allocation strategy, processing the IoT data collected by at least one IoT collection unit and determining the real-time computing resource requirements corresponding to the IoT collection unit; Based on the real-time status of the data processing unit, a second resource allocation strategy is determined.
Citation Information
Cited By
Computer network security transaction optimization system
CN119624457A
A computer network security transaction optimization system
CN119624457B
