A network security protection method for wireless router

By monitoring the wireless router's throughput and control flow packet load length data, and analyzing its abnormality and correlation, it solves the problem of difficulty in distinguishing normal and abnormal loads in the existing technology, and improves the efficiency and accuracy of network security protection.

CN118555146BActive Publication Date: 2024-10-11DONGGUAN CITY JIANG LIN HARDWARE IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411026544.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-11
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing network protection methods are limited in their effectiveness in distinguishing between normal conditions and abnormal loads, and may limit the normal operation of the network.

Method used

By monitoring the wireless router's throughput data and control flow packet load length data, calculate its abnormality degree and correlation, combined with historical data analysis, determine whether there is an abnormality in the current network, and then perform alarm processing.

Benefits of technology

It improves the accuracy of network anomaly diagnosis and security protection efficiency, making it easier for staff to adjust protection plans in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118555146B_ABST
    Figure CN118555146B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of digital information transmission technology, and in particular to a network security protection method for a wireless router, the method comprising: collecting throughput data and control flow data packet load length data of the wireless router; calculating the abnormality degree of the throughput data and the abnormality degree of the control flow data packet load length data in different time periods; determining the correlation between the throughput data and the control flow data packet load length data based on the difference in the abnormality degree of the throughput data and the control flow data packet load length data in the same time period; based on the throughput data and the control flow data packet load length data at the current moment, and the abnormality degree of the throughput data and the abnormality degree of the control flow data packet load length data in the time period where the current moment is located, combined with the said correlation, network abnormality diagnosis is performed. The present invention can improve the accuracy of identifying network abnormalities.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital information transmission, and in particular to a network security protection method for a wireless router. Background Art

[0002] With the development of smart terminals and social networks, the channels for information dissemination and application environments are becoming more and more diverse, but this also increases network security risks (such as data leakage, network attacks, etc.). If network security protection is not done well, it may cause network viruses to attack various resources in the host, cause network congestion, or even network paralysis or lead to privacy leakage, data loss, etc. Therefore, it is necessary to monitor network data and take timely measures and maintain network equipment when the network is attacked.

[0003] Routers are data transmission devices in the network, and abnormal data in the network also needs to be transmitted through routers. The common network attack mode is: sending a large number of useless data packets to the network, causing a huge load on the network switching system, resulting in network congestion or even network paralysis. Therefore, network protection is generally carried out by monitoring changes in router throughput or limiting network bandwidth. However, the method of protecting by limiting bandwidth will limit the daily operation of the network; in addition, since the network load may suddenly increase during normal network operation (for example, a company processes a lot of data in a certain period of time), the method of protecting by monitoring changes in router throughput cannot distinguish between normal conditions and abnormal loads.

[0004] In summary, in practical applications, the effectiveness of existing protection methods is limited or may restrict the normal operation of the network. Summary of the invention

[0005] In order to solve the technical problems that the existing protection methods are limited in effectiveness or will restrict the normal operation of the network, the purpose of the present invention is to provide a network security protection method for a wireless router, and the technical solution adopted is as follows:

[0006] A network security protection method for a wireless router, comprising:

[0007] Collecting throughput data and control flow data packet payload length data of the wireless router to be monitored;

[0008] Calculate the degree of abnormality of throughput data in different time periods;

[0009] Calculate the abnormal degree of the control flow data packet payload length data in different time periods;

[0010] Determine the correlation between the throughput data and the control flow data packet payload length data based on the difference in abnormality between the throughput data and the control flow data packet payload length data within the same time period;

[0011] Based on the throughput data and control flow packet payload length data at the current moment, as well as the degree of abnormality of the throughput data and the degree of abnormality of the control flow packet payload length data in the time period at the current moment, combined with the correlation between the throughput data and the control flow packet payload length data, determine whether there is an abnormality in the network at the current moment.

[0012] Furthermore, the throughput data and control flow data packet payload length data of the wireless router to be monitored are collected, including:

[0013] Set the sampling period and sampling frequency;

[0014] According to the set sampling frequency, the throughput data and the control flow data packet load length data of the wireless router to be monitored in the current sampling period and multiple sampling periods before the current sampling period are collected;

[0015] The throughput data and the control flow data packet load length data in the current sampling period are used as detection data; the throughput data and the control flow data packet load length data in multiple sampling periods before the current sampling period are used as historical data.

[0016] Furthermore, the calculation process of the abnormality degree includes:

[0017] For the target data whose abnormality degree is to be calculated, the corresponding detection data and historical data are recorded as target detection data and target historical data respectively; the target detection data and target historical data are segmented in the time series direction respectively, and the multiple data segments divided from the data in each sampling period in the target historical data correspond one-to-one with the multiple data segments divided from the target detection data in time series, so as to obtain the target detection data and target historical data corresponding to different time periods, and the target detection data corresponding to each time period is taken as a target detection data segment, and the target historical data corresponding to each time period is taken as a target historical data segment; wherein the target data is throughput data or control flow data packet payload length data;

[0018] Calculate the degree of fluctuation of each target detection data segment and the degree of fluctuation of each target historical data segment;

[0019] Based on the fluctuation degree of each target detection data segment, the possibility of the network being attacked in the time period corresponding to each target detection data segment is calculated; and based on the fluctuation degree of each target historical data segment, the possibility of the network being attacked in the time period corresponding to each target historical data segment in each sampling period in the target historical data is calculated;

[0020] Based on the difference between the probability of the network being attacked calculated by the target detection data and the probability of the network being attacked calculated by the target historical data in the same time period, the abnormality level of each target detection data segment is calculated.

[0021] Furthermore, the target detection data and the target historical data are segmented in the time series direction respectively, and a plurality of data segments divided from the data in each sampling period in the target historical data correspond one-to-one with a plurality of data segments divided from the target detection data in time series, including:

[0022] Constructing a target data coordinate system; wherein the horizontal axis of the target data coordinate system is the data sampling time, the vertical axis is the value of the target data, the positive direction of the horizontal axis is the direction of increasing time series, and the positive direction of the vertical axis is the direction of increasing value of the target data;

[0023] The target detection data and the target historical data are respectively represented in the target data coordinate system, and each data point corresponding to the target detection data in the target data coordinate system is sequentially connected in a time series order to draw a detection curve; and the data points corresponding to the data in each sampling period of the target historical data in the target data coordinate system are sequentially connected in a time series order to draw the data in each sampling period of the target historical data into a history curve;

[0024] Dividing the detection curve into a plurality of curve segments, and dividing the data corresponding to each curve segment in the detection curve into a data segment, so as to obtain target detection data corresponding to different time periods;

[0025] Determine the segmentation points of each curve segment in the segmented detection curve, and then apply the segmentation points to each historical curve respectively to segment each historical curve, so that the multiple curve segments in each historical curve after segmentation correspond to the multiple curve segments in the detection curve one by one in time series, and divide the data corresponding to each curve segment in each historical curve into a data segment to obtain the target historical data corresponding to different time periods in each sampling period in the target historical data.

[0026] Furthermore, the calculation formula of the fluctuation degree is:

[0027] ;

[0028] in, Indicates the degree of fluctuation of the jth data segment; represents the mean of all data in the jth data segment; Represents the mean of all data in the curve where the jth data segment is located; represents the number of data points in the jth data segment; represents the value of the i-th data point in the j-th data segment; Indicates the absolute value operation.

[0029] Furthermore, the calculation formula for the possibility of the network being attacked is:

[0030] ;

[0031] in, is the possibility of the network being attacked during the time period corresponding to the jth data segment; is the mean of all data in the jth data segment; is the mean of all data in the curve where the jth data segment is located; is the maximum value of the data in the jth data segment; is the length of the time period corresponding to the jth data segment; is the fluctuation degree of the jth data segment; is the mean value of the fluctuation degree of all data segments in the curve where the jth data segment is located; Indicates the absolute value operation.

[0032] Furthermore, the calculation formula of the abnormality degree is:

[0033] ;

[0034] in, Detect the abnormality of the data segment for the mth target; is the number of sampling periods before the current sampling period; The number of data points in the mth target detection data segment; The value of the rth data point in the mth target detection data segment; is the value of the rth data point in the data segment corresponding to the mth target detection data segment in the kth sampling period before the current sampling period; is the normalized result of the possibility of the network being attacked in the time period corresponding to the mth target detection data segment; is the average of the normalized results of the probability of the network being attacked corresponding to all data segments corresponding to the mth target detection data segment in all sampling periods before the current sampling period; Indicates the absolute value operation.

[0035] Further, the determining the correlation between the throughput data and the control flow data packet payload length data based on the difference in abnormality between the throughput data and the control flow data packet payload length data within the same time period includes:

[0036] The influence of each data segment in the throughput data in the detection data on the control flow data packet payload length data is calculated by the following formula:

[0037] ;

[0038] in, The jth data segment in the throughput data of the detection data The degree of influence on the control flow packet payload length data; To detect the control flow in the data packet payload length data and The normalized value of the abnormality degree of the corresponding data segment; The average of the normalized values ​​of the abnormality degree of all data segments whose corresponding network is attacked in the control flow data packet load length data in the detection data is greater than the first preset threshold; for The normalized value of the abnormality degree;

[0039] The relevance weight of the throughput data is calculated using the following formula:

[0040] ;

[0041] in, represents the relevance weight of the throughput data; Indicates the mean of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the throughput data in the detection data; Indicates the maximum value of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the throughput data in the detection data; represents an absolute value operation; wherein the abnormal segment refers to a data segment whose corresponding normalized value of the abnormality degree is greater than a second preset threshold; are the preset hyperparameters;

[0042] The influence of each data segment in the control flow packet payload length data in the detection data on the throughput data is calculated by the following formula:

[0043] ;

[0044] in, The jth data segment in the control stream packet payload length data in the detection data The degree of impact on throughput data; To detect the throughput data in the data The normalized value of the abnormality degree of the corresponding data segment; The average of normalized values ​​of abnormality levels of all data segments whose corresponding network in the throughput data in the detection data is attacked is greater than a first preset threshold; for The normalized value of the abnormality degree;

[0045] The correlation weight of the control flow packet payload length data is calculated using the following formula:

[0046] ;

[0047] in, Represents the relevance weight of the control flow packet payload length data; Indicates the average of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the control flow data packet payload length data in the detection data; Indicates the maximum value of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the control flow data packet payload length data in the detection data; are the preset hyperparameters.

[0048] Further, based on the throughput data and the control flow data packet payload length data at the current moment and the abnormality degree of the throughput data and the abnormality degree of the control flow data packet payload length data in the time period at the current moment, combined with the correlation between the throughput data and the control flow data packet payload length data, it is determined whether there is an abnormality in the network at the current moment, including:

[0049] Based on the throughput data and the control flow data packet payload length data at the current moment, as well as the abnormality degree of the throughput data and the abnormality degree of the control flow data packet payload length data in the time period at the current moment, combined with the correlation weight of the throughput data and the correlation weight of the control flow data packet payload length data, the network abnormality evaluation value at the current moment is calculated;

[0050] If the network abnormality evaluation value at the current moment exceeds the third preset threshold, it is determined that the network at the current moment is abnormal.

[0051] Furthermore, the calculation process of the network abnormality evaluation value includes:

[0052] Calculate the degree to which the network at the current moment conforms to the normal state. The formula is:

[0053] ;

[0054] in, Indicates the degree to which the network is in a normal state at the current moment; Indicates the value of the control stream data packet payload length data at the current moment; Represents the relevance weight of the control flow packet payload length data; Indicates the abnormality level corresponding to the control flow data packet payload length data in the time period at the current time; Indicates the value of the throughput data at the current moment; Indicates the abnormality level of the throughput data in the time period at the current time; represents the relevance weight of the throughput data;

[0055] The inverse of the degree to which the current network conforms to the normal state is taken as the current network abnormality evaluation value.

[0056] The present invention has the following beneficial effects:

[0057] The network security protection method for a wireless router provided by the present invention analyzes the state of the network where the current router is located by monitoring the change trend of the throughput data of the wireless router and the load length data of the control flow data packet, and finally determines whether there is an abnormal situation in the network where the current router is located by further analyzing the correlation between the throughput data of the wireless router and the load length data of the control flow data packet. When an abnormal situation occurs, an alarm process can be performed, thereby effectively improving the accuracy of network abnormality diagnosis, thereby improving the efficiency of network security protection, and facilitating the staff to adjust the corresponding network security protection plan in time. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0059] Figure 1 The present invention is a schematic diagram of the execution flow of the network security protection method for a wireless router. DETAILED DESCRIPTION

[0060] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the network security protection method of a wireless router proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form. Unless otherwise defined, all technical and scientific terms used in this article have the same meaning as those commonly understood by technicians in the technical field of the present invention.

[0061] First embodiment:

[0062] A network security protection method for a wireless router provided by the present invention is described in detail below with reference to the accompanying drawings.

[0063] A network security protection method for a wireless router, such as Figure 1 As shown, the execution steps of this method are as follows:

[0064] S1, collecting throughput data and control flow data packet payload length data of the wireless router to be monitored;

[0065] Specifically, in this embodiment, the implementation process of the above S1 is as follows:

[0066] S11, setting the sampling period and sampling frequency;

[0067] Specifically, the present embodiment collects data once per second, with every 24 hours being a sampling period.

[0068] S12, collecting throughput data and control flow data packet payload length data of the wireless router to be monitored in the current sampling period and multiple sampling periods before the current sampling period according to the set sampling frequency;

[0069] S13, taking the throughput data and the control flow data packet payload length data in the current sampling period as detection data; taking the throughput data and the control flow data packet payload length data in multiple sampling periods before the current sampling period as historical data;

[0070] Specifically, this embodiment records data for one week, that is, 7 collection cycles as historical data.

[0071] S2, calculates the abnormality of throughput data in different time periods;

[0072] S3, calculating the abnormality of the control flow data packet payload length data in different time periods;

[0073] Among them, it should be noted that the common virus attack method is to consume the router's ability to process data by sending a large number of useless data packets, causing the network to be blocked or even paralyzed. Therefore, by monitoring the throughput changes of the wireless router, the current network status can be analyzed. In addition, since the traffic triggered by user behavior not only includes content-related traffic data, but also includes control information that calls the corresponding standard service interface, the data flow formed by this information is a control flow, and different user behaviors will cause different load length differences in the data packets in the control flow. Therefore, the control flow can be identified from the traffic data, and the user behavior changes can be analyzed by analyzing the changes in the load length of the control flow data packet. In this regard, this embodiment analyzes the status of the router in the current period through the change trend of the throughput data and the control flow data packet load length data, and compares the data of the current period with the historical data, so as to finally determine the abnormality of the throughput data and the control flow data packet load length data. Among them, the calculation principle of the abnormality of the throughput data and the control flow data packet load length data is the same, which is specifically described as follows:

[0074] Step 1: for the target data whose abnormality degree is to be calculated, the corresponding detection data and historical data are recorded as target detection data and target historical data respectively; the target detection data and target historical data are segmented in the time series direction respectively, and the multiple data segments divided by the data in each sampling period in the target historical data correspond to the multiple data segments divided by the target detection data in a one-to-one time series, so as to obtain the target detection data and target historical data corresponding to different time periods, and the target detection data corresponding to each time period is taken as a target detection data segment, and the target historical data corresponding to each time period is taken as a target historical data segment; wherein the target data is throughput data or control flow data packet payload length data;

[0075] The process of segmenting the target detection data and the target historical data in the time series direction respectively, and making the multiple data segments divided by the data in each sampling period in the target historical data correspond to the multiple data segments divided by the target detection data in time series is as follows:

[0076] Step 11, constructing a target data coordinate system; wherein the horizontal axis of the target data coordinate system is the data sampling time, the vertical axis is the value of the target data, the positive direction of the horizontal axis is the direction of increasing time series, and the positive direction of the vertical axis is the direction of increasing value of the target data;

[0077] Step 12, respectively representing the target detection data and the target historical data in the target data coordinate system, connecting each data point corresponding to the target detection data in the target data coordinate system in a time series order to draw a detection curve; and connecting the data points corresponding to the data in each sampling period of the target historical data in the target data coordinate system in a time series order to draw the data in each sampling period of the target historical data into a history curve;

[0078] Step 13, dividing the detection curve into a plurality of curve segments, and dividing the data corresponding to each curve segment in the detection curve into a data segment, so as to obtain target detection data corresponding to different time periods;

[0079] Among them, it should be noted that since the amount of data processed in the network and the user behavior are not fixed and there are certain fluctuations, the obtained curve will also fluctuate. In order to obtain the fluctuation trend of the corresponding curve, the adaptive piecewise constant approximation method APCA can be used to segment the detection curve or divide the curve into multiple segments to divide it into multiple different curve segments (the curve corresponding to the throughput data and the curve corresponding to the control flow data packet load length data use the same segmentation method).

[0080] Step 14, determine the segmentation points of each curve segment in the segmented detection curve, and then apply the segmentation points to each historical curve respectively to segment each historical curve, so that the multiple curve segments in each historical curve after segmentation correspond to the multiple curve segments in the detection curve one by one in time sequence, and divide the data corresponding to each curve segment in each historical curve into a data segment to obtain the target historical data corresponding to different time periods in each sampling period in the target historical data.

[0081] Step 2, calculating the fluctuation degree of each target detection data segment and the fluctuation degree of each target historical data segment;

[0082] Specifically, the calculation formula of the fluctuation degree is:

[0083] ;

[0084] in, Indicates the degree of fluctuation of the jth data segment; represents the mean of all data in the jth data segment; Represents the mean of all data in the curve where the jth data segment is located; represents the number of data points in the jth data segment; represents the value of the i-th data point in the j-th data segment; Indicates the absolute value operation;

[0085] It represents the sum of the differences of all points in the j-th data segment relative to the mean of the data in this segment. This value reflects the difference of the data in the j-th data segment itself. The larger the value, the greater the fluctuation of the data segment. Indicates the degree of difference between the data of the jth data segment and the overall data of the curve where it is located. The larger the value, the greater the fluctuation of the data segment;

[0086] Step 3, based on the fluctuation degree of each target detection data segment, calculate the possibility of the network being attacked in the time period corresponding to each target detection data segment; and based on the fluctuation degree of each target historical data segment, calculate the possibility of the network being attacked in the time period corresponding to each target historical data segment in each sampling period in the target historical data;

[0087] Among them, it should be noted that common network virus attacks are to send a large number of invalid data packets, consume network data processing capabilities and cause the network to paralyze, that is, when the network is attacked by a virus, the network is unstable (abnormal situations are sudden, while normal traffic is relatively stable overall), throughput decreases and user behavior is abnormal. Since the amount of data at a certain moment in the network (that is, the throughput of the router) and user behavior are uncertain, the network may be in different states at different times. Theoretically, if the network load is small, the amount of data to be processed is small, the user behavior is relatively simple and consistent, etc., then the average data of the corresponding curve segment is small, the curve segment fluctuates less, and the curve segment lasts longer. In this state, the possibility of the network being attacked is relatively small; if the network continues to be highly loaded, the user behavior is relatively complex, and the amount of data to be processed is large, then the curve fluctuates more due to the sudden change of load, and the possibility of the network being attacked in this state is relatively large. Therefore, by analyzing the changing trend of the curve, the network state of the current period can be analyzed, and the possibility of the network being attacked by the network virus in the current period can be obtained.

[0088] Specifically, the calculation formula for the possibility of the network being attacked is:

[0089] ;

[0090] in, is the possibility of the network being attacked during the time period corresponding to the jth data segment; is the mean of all data in the jth data segment; is the mean of all data in the curve where the jth data segment is located; is the maximum value of the data in the jth data segment. The smaller the maximum value, the greater the possibility that the current network is in a congested state; is the length of the time period corresponding to the jth data segment; is the fluctuation degree of the jth data segment; is the mean value of the fluctuation degree of all data segments in the curve where the jth data segment is located; Indicates the absolute value operation;

[0091] Indicates the difference between the current segment and the overall curve. The larger the value, the greater the possibility that the current network is attacked; Indicates the data volatility of the current period. The larger the value, the greater the possibility that the current network is attacked by network viruses;

[0092] Step 4: Calculate the abnormality level of each target detection data segment based on the difference between the probability of the network being attacked calculated by the target detection data and the probability of the network being attacked calculated by the target historical data in the same time period.

[0093] Among them, it should be noted that since there may be a sudden increase in load during normal network operation, and even network congestion, the network state at this time is similar to the state when attacked by a network virus, that is, both are in a state where the amount of data to be processed in the network increases and the user behavior is complex, but the specific behaviors of the two are different. During normal network operation, user behavior is more complex and diverse, and there is a certain time interval, while during a virus attack, the behavior of sending data packets is single and intensive, and the network is more sudden and unstable when attacked. The increase in normal load may cause the data measured in a certain period to be more abnormal, but in the long run, the data should still be relatively stable, that is, the similarity between the curve segments of different time periods is high. Therefore, by comparing the current period with the historical period, if the difference between the current period and the historical data is large, that is, the similarity is low, then the possibility of normal load change in the current period is small. In this way, whether there is an abnormal curve segment in the curve is analyzed.

[0094] Specifically, the calculation formula of the abnormality degree is:

[0095] ;

[0096] in, Detect the abnormality of the data segment for the mth target; is the number of sampling periods before the current sampling period; The number of data points in the mth target detection data segment; The value of the rth data point in the mth target detection data segment; is the value of the rth data point in the data segment corresponding to the mth target detection data segment in the kth sampling period before the current sampling period; is the normalized result of the possibility of the network being attacked in the time period corresponding to the mth target detection data segment; is the average of the normalized results of the probability of the network being attacked corresponding to all data segments corresponding to the mth target detection data segment in all sampling periods before the current sampling period; Indicates the absolute value operation;

[0097] It indicates the difference degree of data in the same period of the curve segment corresponding to the current data segment in all cycles. The larger the value, the greater the possibility that the current data segment is abnormal. It indicates the difference in the possibility of the network corresponding to the data in the same period as the curve segment corresponding to the current data segment in all cycles being attacked by network viruses. The larger the value, the greater the difference between the two curve segments, which means that the possibility of anomalies in the current data segment is greater.

[0098] S4, determining the correlation between the throughput data and the control flow data packet payload length data based on the difference in abnormality between the throughput data and the control flow data packet payload length data within the same time period;

[0099] Among them, it should be noted that a single indicator (throughput, control flow packet payload length) will change due to the influence of the network state, and there will be a certain correlation between the indicators, which will affect each other and reflect the current network state together. For example: the more concurrent users there are, the greater the network pressure, and the throughput will also increase to a certain extent; when the number of parallel users is small and the user behavior is relatively simple, the network's data processing capacity is also relatively stable, and the possibility of data throughput anomalies is also small; therefore, by analyzing the degree of change of another indicator when a single indicator is abnormal, the degree of influence of a single indicator on other indicators can be obtained, thereby obtaining the correlation between indicators. That is, the greater the influence of the abnormal segment in a single indicator curve on the corresponding segment in the remaining indicator curves, the greater the influence of the indicator on the other indicator. Therefore, if most of the abnormal segments in a certain indicator curve can cause the corresponding segments of the remaining indicators to have a large and consistent degree of abnormality, it is considered that the degree of influence of the indicator on the other indicator is greater. Based on this, the calculation process of the correlation between throughput data and control flow packet payload length data is as follows:

[0100] S41, calculating the influence of each data segment in the throughput data in the detection data on the control flow data packet payload length data by the following formula:

[0101] ;

[0102] in, The jth data segment in the throughput data of the detection data The degree of influence on the control flow packet payload length data; To detect the control flow in the data packet payload length data and The normalized value of the abnormality degree of the corresponding data segment; The average of the normalized values ​​of the abnormality degree of all data segments whose corresponding network is attacked in the control flow data packet load length data in the detection data is greater than the first preset threshold; for The normalized value of the abnormality degree; wherein, in this embodiment, the value of the first preset threshold is 0.5; The larger the value, the greater the difference between the control flow packet payload length and the control flow packet payload length in the detection data. The greater the abnormality of the corresponding data segment, the greater the possibility that it is affected by the current indicator;

[0103] S42, calculating the relevance weight of the throughput data by the following formula:

[0104] ;

[0105] in, is the relevance weight of the throughput data; is the mean of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the throughput data in the detection data; is the maximum value of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the throughput data in the detection data; represents an absolute value operation; wherein the abnormal segment refers to a data segment whose corresponding normalized value of the abnormality level is greater than a second preset threshold; wherein, in this embodiment, the value of the second preset threshold is 0.7; Indicates the degree of fluctuation of the ability of all abnormal segments in the current curve to influence the remaining segments. The smaller the value, the more stable the influence of the current indicator on the remaining indicators, and the greater the correlation weight of the corresponding indicator should be. It is a preset hyperparameter whose value is close to 0, for example, it can be 0.001. Its function is to prevent the denominator from being 0.

[0106] S43, calculating the influence of each data segment in the control flow data packet load length data in the detection data on the throughput data by the following formula:

[0107] ;

[0108] in, The jth data segment in the control stream packet payload length data in the detection data The degree of impact on throughput data; To detect the throughput data in the data The normalized value of the abnormality degree of the corresponding data segment; The average of normalized values ​​of abnormality levels of all data segments whose corresponding network in the throughput data in the detection data is attacked is greater than a first preset threshold; for The normalized value of the abnormality degree;

[0109] S44, calculating the correlation weight of the control flow data packet payload length data by the following formula:

[0110] ;

[0111] in, Represents the relevance weight of the control flow packet payload length data; Indicates the average of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the control flow data packet payload length data in the detection data; Indicates the maximum value of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the control flow data packet payload length data in the detection data; It is a preset hyperparameter whose value is close to 0, for example, it can be 0.001. Its function is to prevent the denominator from being 0.

[0112] S5, based on the throughput data and the control flow data packet payload length data at the current moment, as well as the abnormality degree of the throughput data and the abnormality degree of the control flow data packet payload length data in the time period of the current moment, combined with the correlation between the throughput data and the control flow data packet payload length data, determine whether there is an abnormality in the network at the current moment;

[0113] It should be noted that the network status is reflected by the data throughput and the load length of the control flow data packet, and there is a correlation between the two indicators. Therefore, the network status can be analyzed based on the correlation between the indicators and the corresponding data obtained at the current moment, that is, the correlation weight of the single indicator obtained in the previous step is used as the weight of the corresponding indicator data, and the current network status is evaluated in combination with the obtained throughput and control flow data packet load length. The specific process is as follows:

[0114] S51, based on the throughput data and the control flow data packet payload length data at the current moment, as well as the abnormality degree of the throughput data and the abnormality degree of the control flow data packet payload length data in the time period at the current moment, combined with the correlation weight of the throughput data and the correlation weight of the control flow data packet payload length data, calculate the network abnormality evaluation value at the current moment; wherein the calculation process of the network abnormality evaluation value includes:

[0115] S511, calculate the degree to which the network at the current moment conforms to the normal state, the formula is:

[0116] ;

[0117] in, Indicates the degree to which the network is in a normal state at the current moment; Indicates the value of the control stream data packet payload length data at the current moment; Represents the relevance weight of the control flow packet payload length data; Indicates the abnormality level corresponding to the control flow data packet payload length data in the time period at the current time; Indicates the value of the throughput data at the current moment; Indicates the abnormality level of the throughput data in the time period at the current time; represents the relevance weight of the throughput data;

[0118] Indicates the degree to which the load length indicator of the control flow data packet at the current moment conforms to the normal state. The larger the value, the The larger it is, the more the network is in a normal state at the current moment; Indicates the degree to which the throughput indicator at the current moment meets the normal state. The larger the value, the The larger it is, the more the network is in a normal state at the current moment;

[0119] S512, taking the inverse of the degree to which the network at the current moment conforms to the normal state as the network abnormality evaluation value at the current moment;

[0120] S52, if the network abnormality evaluation value at the current moment exceeds the third preset threshold, it is determined that the network at the current moment is abnormal;

[0121] Among them, it should be noted that since the network anomaly evaluation value is the inverse of the degree to which the network conforms to the normal state, the larger the network anomaly evaluation value at the current moment, the greater the possibility of network anomaly at the current moment. The corresponding third preset threshold can be set according to experience. If the network anomaly evaluation value at the current moment exceeds the third preset threshold, it can be judged that there is an anomaly in the network at the current moment; at this time, the monitoring system can output an alarm message to the staff, and display the network anomaly evaluation value, throughput and control flow data packet load length at this time, so that maintenance personnel can take corresponding measures in time.

[0122] In summary, the present embodiment provides a network security protection method for a wireless router. The network security protection method for a wireless router monitors the change trend of the throughput data of the wireless router and the control flow data packet payload length data, and compares the current data with the historical data, thereby analyzing the state of the network where the current router is located, and further analyzing the correlation between the wireless router throughput data and the control flow data packet payload length data, and finally determining whether there is an abnormal situation in the network where the current router is located, and performing alarm processing when an abnormal situation occurs, thereby effectively improving the accuracy of network abnormality diagnosis, thereby improving the efficiency of network security protection, and facilitating the staff to adjust the corresponding network security protection plan in time.

[0123] In addition, it should be noted that the above are only preferred embodiments of the present invention. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multi-tasking and parallel processing are also possible or may be advantageous. And although the preferred embodiments of the present invention have been described, it is obvious to a person skilled in the art that once the basic creative concept of the present invention is known, several improvements and modifications can be made without departing from the principles of the present invention, and these improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A network security protection method for a wireless router, characterized in that: include: Collecting throughput data and control flow data packet payload length data of the wireless router to be monitored; Calculate the degree of abnormality of throughput data in different time periods; Calculate the abnormal degree of the control flow data packet payload length data in different time periods; Determine the correlation between the throughput data and the control flow data packet payload length data based on the difference in abnormality between the throughput data and the control flow data packet payload length data within the same time period; Based on the throughput data and the control flow data packet payload length data at the current moment, as well as the abnormality degree of the throughput data and the abnormality degree of the control flow data packet payload length data in the time period at the current moment, combined with the correlation between the throughput data and the control flow data packet payload length data, determine whether there is an abnormality in the network at the current moment; The calculation process of the abnormality degree includes: For the target data whose abnormality degree is to be calculated, the corresponding detection data and historical data are recorded as target detection data and target historical data respectively; the target detection data and target historical data are segmented in the time series direction respectively, and the multiple data segments divided from the data in each sampling period in the target historical data correspond one-to-one with the multiple data segments divided from the target detection data in time series, so as to obtain the target detection data and target historical data corresponding to different time periods, and the target detection data corresponding to each time period is taken as a target detection data segment, and the target historical data corresponding to each time period is taken as a target historical data segment; wherein the target data is throughput data or control flow data packet payload length data; Calculate the degree of fluctuation of each target detection data segment and the degree of fluctuation of each target historical data segment; Based on the fluctuation degree of each target detection data segment, the possibility of the network being attacked in the time period corresponding to each target detection data segment is calculated; and based on the fluctuation degree of each target historical data segment, the possibility of the network being attacked in the time period corresponding to each target historical data segment in each sampling period in the target historical data is calculated; Calculate the degree of abnormality of each target detection data segment based on the difference between the probability of the network being attacked calculated by the target detection data and the probability of the network being attacked calculated by the target historical data in the same time period; The determining the correlation between the throughput data and the control flow data packet payload length data based on the difference in abnormality between the throughput data and the control flow data packet payload length data within the same time period includes: The influence of each data segment in the throughput data in the detection data on the control flow data packet payload length data is calculated by the following formula: ; in, The jth data segment in the throughput data of the detection data The degree of influence on the control flow packet payload length data; To detect the control flow in the data packet payload length data and The normalized value of the abnormality degree of the corresponding data segment; The average of the normalized values ​​of the abnormality degree of all data segments whose corresponding network is attacked in the control flow data packet load length data in the detection data is greater than the first preset threshold; for The normalized value of the abnormality degree; The relevance weight of the throughput data is calculated using the following formula: ; in, represents the relevance weight of the throughput data; Indicates the mean of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the throughput data in the detection data; Indicates the maximum value of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the throughput data in the detection data; represents an absolute value operation; wherein the abnormal segment refers to a data segment whose corresponding normalized value of the abnormality degree is greater than a second preset threshold; are the preset hyperparameters; The influence of each data segment in the control flow packet payload length data in the detection data on the throughput data is calculated by the following formula: ; in, The jth data segment in the control stream packet payload length data in the detection data The degree of impact on throughput data; To detect the throughput data in the data The normalized value of the abnormality degree of the corresponding data segment; The average of normalized values ​​of abnormality levels of all data segments whose corresponding network in the throughput data in the detection data is attacked is greater than a first preset threshold; for The normalized value of the abnormality degree; The correlation weight of the control flow packet payload length data is calculated using the following formula: ; in, Represents the relevance weight of the control flow packet payload length data; Indicates the average of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the control flow data packet payload length data in the detection data; Indicates the maximum value of the normalized values ​​of the impact degrees corresponding to all abnormal segments in the control flow data packet payload length data in the detection data; are the preset hyperparameters.

2. The network security protection method of a wireless router as claimed in claim 1, characterized in that: The collecting of the throughput data and the control flow data packet load length data of the wireless router to be monitored includes: Set the sampling period and sampling frequency; According to the set sampling frequency, the throughput data and the control flow data packet load length data of the wireless router to be monitored in the current sampling period and multiple sampling periods before the current sampling period are collected; The throughput data and the control flow data packet load length data in the current sampling period are used as detection data; the throughput data and the control flow data packet load length data in multiple sampling periods before the current sampling period are used as historical data.

3. The network security protection method of a wireless router according to claim 1, characterized in that: The target detection data and the target historical data are segmented in the time series direction respectively, and a plurality of data segments divided from the data in each sampling period in the target historical data correspond one-to-one with a plurality of data segments divided from the target detection data in time series, including: Constructing a target data coordinate system; wherein the horizontal axis of the target data coordinate system is the data sampling time, the vertical axis is the value of the target data, the positive direction of the horizontal axis is the direction of increasing time series, and the positive direction of the vertical axis is the direction of increasing value of the target data; The target detection data and the target historical data are respectively represented in the target data coordinate system, and each data point corresponding to the target detection data in the target data coordinate system is sequentially connected in a time series order to draw a detection curve; and the data points corresponding to the data in each sampling period of the target historical data in the target data coordinate system are sequentially connected in a time series order to draw the data in each sampling period of the target historical data into a history curve; Dividing the detection curve into a plurality of curve segments, and dividing the data corresponding to each curve segment in the detection curve into a data segment, so as to obtain target detection data corresponding to different time periods; Determine the segmentation points of each curve segment in the segmented detection curve, and then apply the segmentation points to each historical curve respectively to segment each historical curve, so that the multiple curve segments in each historical curve after segmentation correspond to the multiple curve segments in the detection curve one by one in time series, and divide the data corresponding to each curve segment in each historical curve into a data segment to obtain the target historical data corresponding to different time periods in each sampling period in the target historical data.

4. The network security protection method of a wireless router as claimed in claim 3, characterized in that: The calculation formula of the fluctuation degree is: ; in, Indicates the degree of fluctuation of the jth data segment; represents the mean of all data in the jth data segment; Represents the mean of all data in the curve where the jth data segment is located; represents the number of data points in the jth data segment; represents the value of the i-th data point in the j-th data segment; Indicates the absolute value operation.

5. The network security protection method of a wireless router as claimed in claim 3, characterized in that: The probability of the network being attacked is calculated as: ; in, is the possibility of the network being attacked during the time period corresponding to the jth data segment; is the mean of all data in the jth data segment; is the mean of all data in the curve where the jth data segment is located; is the maximum value of the data in the jth data segment; is the length of the time period corresponding to the jth data segment; is the fluctuation degree of the jth data segment; is the mean value of the fluctuation degree of all data segments in the curve where the jth data segment is located; Indicates the absolute value operation.

6. The network security protection method of a wireless router as claimed in claim 3, characterized in that: The calculation formula of the abnormality degree is: ; in, Detect the abnormality of the data segment for the mth target; is the number of sampling periods before the current sampling period; The number of data points in the mth target detection data segment; The value of the rth data point in the mth target detection data segment; is the value of the rth data point in the data segment corresponding to the mth target detection data segment in the kth sampling period before the current sampling period; is the normalized result of the possibility of the network being attacked in the time period corresponding to the mth target detection data segment; is the average of the normalized results of the probability of the network being attacked corresponding to all data segments corresponding to the mth target detection data segment in all sampling periods before the current sampling period; Indicates the absolute value operation.

7. The network security protection method of a wireless router as claimed in claim 1, characterized in that: The method of determining whether there is an abnormality in the network at the current moment based on the throughput data and the control flow data packet payload length data at the current moment, as well as the abnormality degree of the throughput data and the abnormality degree of the control flow data packet payload length data in the time period at the current moment, combined with the correlation between the throughput data and the control flow data packet payload length data, comprises: Based on the throughput data and the control flow data packet payload length data at the current moment, as well as the abnormality degree of the throughput data and the abnormality degree of the control flow data packet payload length data in the time period at the current moment, combined with the correlation weight of the throughput data and the correlation weight of the control flow data packet payload length data, the network abnormality evaluation value at the current moment is calculated; If the network abnormality evaluation value at the current moment exceeds the third preset threshold, it is determined that the network at the current moment is abnormal.

8. The network security protection method of a wireless router as claimed in claim 7, characterized in that: The calculation process of the network anomaly evaluation value includes: Calculate the degree to which the network at the current moment conforms to the normal state. The formula is: ; in, Indicates the degree to which the network is in a normal state at the current moment; Indicates the value of the control stream data packet payload length data at the current moment; Represents the relevance weight of the control flow packet payload length data; Indicates the abnormality level corresponding to the control flow data packet payload length data in the time period at the current time; Indicates the value of the throughput data at the current moment; Indicates the abnormality level of the throughput data in the time period at the current time; represents the relevance weight of the throughput data; The inverse of the degree to which the current network conforms to the normal state is taken as the current network abnormality evaluation value.