Information security data storage method, system and electronic device
By analyzing the importance and characteristic values of HTTP traffic data and reasonably dividing storage priorities, the problem of redundant information and important information in HTTP traffic data being regarded as equally important is solved, improving data storage efficiency and system performance.
Patent Information
- Application Number
- CN202410874922.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-02
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-02
AI Technical Summary
In the existing technology, redundant information and important information of HTTP traffic data are regarded as equally important, resulting in irrational allocation of resources, and important data storage requests may be delayed in processing, affecting system response time and performance.
By obtaining IP address access frequency and response time data in HTTP traffic data, we can calculate important attribute values and characteristic values of the information, perform clustering and filtering, determine the necessity and priority of data storage, and reasonably divide storage resources.
It improves the efficiency of data storage, ensures priority processing of important data, and improves system performance and response speed.
Smart Images

Figure CN118433253B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of flow data processing, and in particular to an information security data storage method, system and electronic equipment. Background Art
[0002] HTTP (Hypertext Transfer Protocol) is a protocol for transmitting hypertext data. It is one of the most commonly used protocols on the Internet and is used to transmit web pages, images, videos, audio and other data between clients and servers. HTTP traffic is a common type of network information security data. HTTP traffic refers to data traffic transmitted through the HTTP protocol. When users access web pages, download files, send form data, etc. through browsers, HTTP traffic is generated. By performing reasonable storage analysis on HTTP traffic, performance bottlenecks can be identified and measures can be taken to optimize system performance and response speed.
[0003] In the prior art, traditional data storage algorithms are used to store HTTP traffic data. In actual situations, the system will regard all data storage requests as equally important and store all HTTP traffic data consistently. Moreover, HTTP traffic data is generated at a fast speed, with a large amount of data and more redundant information. Therefore, if redundant information data and important information data are regarded as equally important, it may lead to unreasonable allocation of resources and unstable performance. Important data storage requests may be delayed, thereby affecting the response time and performance of the system and reducing the storage efficiency of data storage. Summary of the invention
[0004] In order to solve the technical problem that redundant information data and important information data are considered equally important, and important data storage requests may be delayed, the purpose of the present invention is to provide an information security data storage method, system and electronic device, and the technical solution adopted is as follows:
[0005] The present invention proposes a method for storing information security data, the method comprising:
[0006] Obtaining HTTP traffic data of the target terminal service platform at each moment within a preset time range; the HTTP traffic data includes IP address access frequency data and IP address response time data;
[0007] According to the amplitude change characteristics of the data in each HTTP traffic data, the important information attribute value of each HTTP traffic data is obtained; according to the change trend of the access frequency of different IP addresses in each HTTP traffic data and the important information attribute value, the initial important information feature value of each HTTP traffic data is obtained; according to the response time characteristics of the IP address in each HTTP traffic data, the initial important information feature value is adjusted to obtain the final important information feature value of each HTTP traffic data;
[0008] According to the final important characteristic value of each HTTP traffic data, all HTTP traffic data are clustered to obtain data clusters; according to the number of data in the data clusters, reference clusters are selected; according to the distribution of the final important characteristic value of the information between each HTTP traffic data and all HTTP traffic data in the reference clusters, the necessity of storing each HTTP traffic data is obtained;
[0009] The storage priority of each HTTP traffic data is obtained according to the storage necessity.
[0010] Furthermore, the method for obtaining the important attribute value of the information includes:
[0011] The maximum IP address access frequency and the maximum IP address response time in each HTTP traffic data are merged as the amplitude of the corresponding HTTP traffic data;
[0012] Get the amplitude mean of all HTTP traffic data as the overall amplitude level;
[0013] According to the degree of deviation of the amplitude of each HTTP traffic data relative to the overall amplitude level, the information importance attribute value of the HTTP traffic data is obtained.
[0014] Furthermore, the method for obtaining the important characteristic values of the initial information includes:
[0015] The initial important information characteristic value of each HTTP traffic data is obtained according to the changing trend between the maximum IP address access frequency and each other IP address access frequency in each HTTP traffic data and the important information attribute value. The changing trend between the maximum IP address access frequency and each other IP address access frequency and the important information attribute value are both positively correlated with the important information characteristic value.
[0016] Furthermore, the method for obtaining the important characteristic values of the final information includes:
[0017] Calculate the average response time of all IP addresses in each HTTP traffic data as the local response time level; calculate the average local response time level of all HTTP traffic data as the overall response time level;
[0018] According to the change between the local response time level and the overall response time level of each HTTP traffic data and the initial information important characteristic value, the final information important characteristic value of each HTTP traffic data is obtained, and the change between the local response time level and the overall response time level and the initial information important characteristic value are positively correlated with the final information important characteristic value.
[0019] Furthermore, the method for obtaining the storage necessity includes:
[0020] Obtain the average of the final information important feature values of all HTTP traffic data in the reference cluster as the average final information important feature value;
[0021] The difference between the final information important feature value of each HTTP traffic data and the average final information important feature value is calculated, and normalized mapping is performed to obtain the storage necessity of each HTTP traffic data.
[0022] Furthermore, the method for obtaining the storage priority includes:
[0023] Obtaining a storage necessity range corresponding to a preset storage priority;
[0024] If the storage necessity of each HTTP traffic data falls within a storage necessity range corresponding to a preset storage priority, the corresponding storage priority is used as the storage priority of each HTTP traffic data.
[0025] Furthermore, the method for obtaining the data clustering clusters includes:
[0026] According to the important characteristic value of the final information of each HTTP traffic data, K-means clustering is performed on all HTTP traffic data to obtain data clustering clusters.
[0027] Furthermore, the method for obtaining the reference cluster includes:
[0028] The data cluster with the most HTTP traffic data among all data clusters is selected as the reference cluster.
[0029] An embodiment of the present invention further provides an information security data storage system, the system comprising:
[0030] Data acquisition module: acquires HTTP traffic data of the target terminal service platform at each moment; the HTTP traffic data includes IP address access frequency data and IP address response time data;
[0031] Information importance correction module: according to the amplitude change characteristics of the data in each HTTP traffic data, obtain the information importance attribute value of each HTTP traffic data; according to the change trend of the access frequency of different IP addresses in each HTTP traffic data and the information importance attribute value, obtain the initial information importance characteristic value of each HTTP traffic data; according to the IP address response time characteristics in each HTTP traffic data, adjust the initial information importance characteristic value to obtain the final information importance characteristic value of each HTTP traffic data;
[0032] Storage necessity analysis module: cluster all HTTP traffic data according to the final information important characteristic value of each HTTP traffic data to obtain data clustering clusters; select reference clustering clusters according to the number of data in the data clustering clusters; obtain the storage necessity of each HTTP traffic data according to the distribution of the final information important characteristic value between each HTTP traffic data and all HTTP traffic data in the reference clustering clusters;
[0033] Storage priority division module: obtains the storage priority of each HTTP traffic data according to the storage necessity.
[0034] The present invention also proposes an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of any one of the information security data storage methods are implemented.
[0035] The present invention has the following beneficial effects:
[0036] The present invention obtains the information important attribute value of each HTTP traffic data according to the amplitude change characteristics of the data in each HTTP traffic data. The amplitude change characteristics reflect the change pattern of network behavior and are helpful to evaluate the importance of data. According to the change trend of the access frequency of different IP addresses in each HTTP traffic data and the information important attribute value, the initial information important characteristic value of each HTTP traffic data is obtained, and the degree to which the traffic data contains key features and important information is initially identified. According to the IP address response time characteristics in each HTTP traffic data, the initial information important characteristic value is adjusted to obtain the final information important characteristic value of each HTTP traffic data. By adjusting the characteristic value, it can more comprehensively reflect the data. The real situation; according to the final information important characteristic value of each HTTP traffic data, all HTTP traffic data are clustered to obtain data clustering clusters. Through clustering, HTTP traffic data with similar characteristics can be clustered together; according to the number of data in the data clustering cluster, a reference clustering cluster is screened out, and traffic data containing a large amount of redundant information is screened out, which is convenient for the subsequent analysis of the importance of traffic data; according to the distribution of the final information important characteristic value between each HTTP traffic data and all HTTP traffic data in the reference clustering cluster, the storage necessity of each HTTP traffic data is obtained, which reflects the importance of the information contained in the HTTP traffic data; and the storage priority of each HTTP traffic data is obtained. The present invention analyzes the accurate storage necessity of each HTTP traffic data, reasonably divides the storage priority, and improves the efficiency of data storage. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] 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.
[0038] Figure 1 A flowchart of a method for storing information security data provided by an embodiment of the present invention;
[0039] Figure 2 A flow chart of a method for obtaining important attribute values of information provided by an embodiment of the present invention;
[0040] Figure 3 A structural block diagram of an information security data storage system provided by an embodiment of the present invention;
[0041] Figure 4 The present invention is a block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0042] 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 information security data storage method, system and electronic device proposed by the present invention, its specific implementation method, structure, features 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.
[0043] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0044] The following describes in detail a specific scheme of an information security data storage method, system and electronic device provided by the present invention in conjunction with the accompanying drawings.
[0045] See also Figure 1 , which shows a flow chart of a method for secure information data storage provided by an embodiment of the present invention, the specific method comprising:
[0046] Step S1: Obtain HTTP traffic data of the target terminal service platform at each moment within a preset time range, where the HTTP traffic data includes IP address access frequency data and IP address response time data.
[0047] In an embodiment of the present invention, due to the high speed at which HTTP traffic data is generated, the amount of HTTP traffic data is huge and has more redundant information, which in turn leads to low storage efficiency of HTTP traffic data. By performing reasonable storage analysis on HTTP traffic, performance bottlenecks can be identified and measures can be taken to optimize the performance and response speed of the system. First, the network interface of the target terminal service platform is configured, and a suitable network traffic analysis and collection tool is selected. Commonly used tools include Wireshark, tcpdump, tshark, and Bro, etc. The traffic data of each IP (Internet Protocol) address is captured, and then the HTTP traffic data of the target terminal service platform at each moment within a preset time range is obtained. The HTTP traffic data includes IP address access frequency data and IP address response time data, that is, at a moment, each user accesses different IP addresses to generate IP address access frequency data and IP address response time data, and these data together constitute a multi-dimensional HTTP traffic data.
[0048] It should be noted that, in the embodiments of the present invention, in order to facilitate the subsequent data processing, the IP address access frequency data and the IP address response time data are standardized to eliminate the dimension of the data so that indicators of different units or orders of magnitude can be comprehensively analyzed and compared. Standardization can adopt existing methods such as Z-score standardization and maximum and minimum standardization. The specific means are technical means well known to those skilled in the art and will not be described in detail here.
[0049] It should be noted that, in one embodiment of the present invention, the preset time range is one month, and data is collected continuously in chronological order; in other embodiments of the present invention, the size of the preset time range can be set according to the specific circumstances, and is not limited or elaborated here.
[0050] Step S2: Obtain the important information attribute value of each HTTP traffic data according to the amplitude change characteristics of the data in each HTTP traffic data; obtain the initial important information feature value of each HTTP traffic data according to the change trend of the access frequency of different IP addresses in each HTTP traffic data and the important information attribute value; adjust the initial important information feature value according to the IP address response time characteristics in each HTTP traffic data to obtain the final important information feature value of each HTTP traffic data.
[0051] When users access web pages, download files, send form data, and perform other operations through browsers, HTTP traffic data will be generated. For short-term hot information or content that users prefer, users will visit more frequently, which will increase the number of requests sent by the corresponding IP address, and thus the IP address access frequency will increase. When the number of requests sent by a certain IP address increases too quickly, the server load may increase. At this time, if server resources such as processors, memory, or network bandwidth are limited, too many requests may cause the IP address response time to increase. Therefore, the importance of HTTP traffic data is evaluated by analyzing the IP address access frequency and IP address response time.
[0052] The amplitude characteristics of HTTP traffic data can help us understand the overall activity level of network traffic. Low-amplitude HTTP traffic data indicates less user activity, such as low website visits or inactive user online behavior. High-amplitude HTTP traffic data usually indicates more frequent user activity, such as a large number of users visiting the website or performing online operations at the same time, and the corresponding information is more important. Therefore, the information importance attribute value of each HTTP traffic data is obtained based on the amplitude change characteristics of the data in each HTTP traffic data.
[0053] Preferably, in one embodiment of the present invention, the method for obtaining the important attribute value of information can be found in Figure 2, which shows a flow chart of a method for obtaining important attribute values of information provided by an embodiment of the present invention, the method comprising:
[0054] Step S201: The maximum IP address access frequency and the maximum IP address response time in each HTTP traffic data are merged to serve as the amplitude of the corresponding HTTP traffic data.
[0055] For short-term hot information or content that users prefer, users will visit more frequently, resulting in a higher IP address access frequency and IP address response time, and more HTTP traffic data.
[0056] In some embodiments of the present invention, the maximum IP address access frequency and the maximum IP address response time in the HTTP traffic data may be merged by multiplication or addition to obtain the amplitude of the corresponding HTTP traffic data.
[0057] Step S202: Obtain the amplitude mean of all HTTP traffic data as the overall amplitude level.
[0058] In order to facilitate subsequent data comparison, an indicator representing the amplitude level of the overall traffic data is quantified by averaging to reflect the general situation of the traffic data, so as to more accurately grasp the overall trend and characteristics of network traffic.
[0059] Step S203: Obtaining information important attribute values of HTTP traffic data according to the degree of deviation of the amplitude of each HTTP traffic data relative to the overall amplitude level.
[0060] In order to further quantify the specificity of HTTP traffic data, the degree of deviation of the amplitude level of any HTTP traffic data relative to the amplitude level of the overall HTTP traffic data is analyzed. The greater the deviation, the higher the amplitude level of any HTTP traffic data is than the amplitude level of the overall HTTP traffic data, which better reflects the abnormality or prominence of the amplitude of the HTTP traffic data relative to the overall amplitude level. The higher the possibility of short-term hot information or mainstream user preference content, the greater the importance of the information.
[0061] It should be noted that, in some embodiments of the present invention, the degree of deviation can be expressed by calculating the difference or ratio between the amplitude of the HTTP traffic data and the overall amplitude level. The larger the amplitude of the HTTP traffic data is than the overall amplitude level, the greater the degree of deviation, the more likely it is that it contains short-term hot information or mainstream user preference content, and the greater the importance of the information.
[0062] In one embodiment of the present invention, the formula for the important attribute value of information is expressed as:
[0063] ;
[0064] in, Indicates Important attribute values of HTTP traffic data; Indicates The amplitude of HTTP traffic data; Indicates The amplitude of HTTP traffic data; Indicates the amount of all HTTP traffic data; Represents the normalization function.
[0065] In the formula for the important attribute value of information, Indicates the mean amplitude of all HTTP traffic data, that is, the overall amplitude level. Indicates the calculation The difference between the amplitude of the HTTP traffic data and the overall amplitude level. The larger the difference, the The larger the amplitude of the individual HTTP traffic data is compared to the overall amplitude level, the larger the corresponding HTTP traffic data includes the maximum IP address access frequency and the maximum IP address response time, indicating that the possibility of short-term hot information or mainstream user preference content is higher, and the importance of the HTTP traffic data is higher; on the contrary, the smaller the difference, the higher the probability of short-term hot information or mainstream user preference content. The smaller the amplitude of individual HTTP traffic data is compared to the overall amplitude level, the smaller the maximum IP address access frequency and the maximum IP address response time contained in the HTTP traffic data are, and the less important they are.
[0066] The higher the IP address access frequency, the more user request operations on the IP address, the more likely it is that it is short-term hot information or user mainstream preferred content, and the more traffic data is generated; the important attribute value of information can reflect the user's behavior patterns, preferences and needs, etc. The higher the important attribute value of information, the higher the credibility of the importance of the information, and the higher the initial important characteristic value of the information; therefore, the initial important characteristic value of information for each HTTP traffic data is obtained based on the changing trend of the access frequency of different IP addresses in each HTTP traffic data and the important attribute value of information.
[0067] Preferably, in one embodiment of the present invention, the method for obtaining important characteristic values of initial information includes:
[0068] According to the change trend and information important attribute value between the maximum IP address access frequency and each other IP address access frequency in each HTTP traffic data, the initial information important characteristic value of each HTTP traffic data is obtained. The change trend and information important attribute value between the maximum IP address access frequency and each other IP address access frequency are positively correlated with the information important characteristic value. Among them, the positive correlation relationship means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, and the idempotence of an exponential function, which is determined by actual application.
[0069] In one embodiment of the present invention, the formula for the important characteristic value of information is expressed as:
[0070] ;
[0071] in, Indicates The important characteristic values of the initial information of HTTP traffic data; Indicates Important attribute values of HTTP traffic data; Indicates The maximum IP address access frequency in HTTP traffic data; Indicates The number of all other IP address access frequencies except the maximum IP address access frequency in the HTTP traffic data; Indicates HTTP traffic data except for the maximum IP address access frequency The frequency of access from other IP addresses.
[0072] In the formula for the information-significant eigenvalue, Indicates The maximum value of the IP address access frequency of HTTP traffic data is The difference between the access frequencies of other IP addresses, that is, the larger the difference, the The maximum IP address access frequency of HTTP traffic data is relative to The greater the change trend of the access frequency of other IP addresses, the higher the probability that it is short-term hot information or content preferred by users. On the contrary, the smaller the difference, the higher the probability that it is short-term hot information or content preferred by users. The maximum IP address access frequency of HTTP traffic data is relative to The smaller the change trend of the access frequency of other IP addresses, the lower the probability that it is short-term hot information or content preferred by users; Indicates The mean of the difference between the maximum IP address access frequency of HTTP traffic data and the access frequencies of all other IP addresses. The smaller the mean, the smaller the change trend of the maximum IP address access frequency relative to the access frequencies of other IP addresses, and the closer the access frequencies. On the contrary, the larger the mean, the greater the change trend of the maximum IP address access frequency relative to the access frequencies of other IP addresses, the more obvious the difference in access frequencies, the greater the value of the important attribute of the information, the greater the important characteristic value of the initial information, and the higher the probability of the existence of short-term hot information or mainstream user preference content.
[0073] It should be noted that in other embodiments of the present invention, other basic mathematical operations such as adding the difference mean and the information important attribute value can be used to construct a correlation that the larger the mean, the larger the information important attribute value, and the larger the initial information important eigenvalue. The specific means are technical means well known to those skilled in the art and will not be elaborated here.
[0074] The response time of the IP address reflects the network performance and the processing speed of user requests. The longer the response time, the higher the network delay or the worse the server's ability to process requests, which means that there are currently a large number of requests, which increases the server load. The larger the initial information important feature value, the greater the possibility of accessing certain short-term hot information or content that the user's mainstream preference prefers, and the larger the final information important feature value. Introducing the IP address response time feature and adjusting the initial information important feature value can help to more accurately evaluate the actual importance of the corresponding information. Therefore, the initial information important feature value is adjusted according to the IP address response time feature in each HTTP traffic data to obtain the final information important feature value of each HTTP traffic data.
[0075] Preferably, in one embodiment of the present invention, the method for obtaining the important characteristic value of the final information includes:
[0076] Calculate the average response time of all IP addresses in each HTTP traffic data as the local response time level; calculate the average local response time level of all HTTP traffic data as the overall response time level;
[0077] According to the change between the local response time level and the overall response time level of each HTTP traffic data and the initial information important characteristic value, the final information important characteristic value of each HTTP traffic data is obtained, and the change between the local response time level and the overall response time level and the initial information important characteristic value are positively correlated with the final information important characteristic value. Among them, the positive correlation relationship means that the dependent variable will increase as the independent variable increases, and the dependent variable will decrease as the independent variable decreases. The specific relationship can be a multiplication relationship, an addition relationship, and the idempotence of an exponential function, which is determined by actual applications.
[0078] In one embodiment of the present invention, the formula for the final important characteristic value of the information is expressed as:
[0079] ;
[0080] in, Indicates The final important characteristic value of HTTP traffic data; Indicates The local response time level of HTTP traffic data; Indicates the overall response time level of HTTP traffic data at all times; Indicates The important characteristic values of the initial information of HTTP traffic data; Represents the normalization function.
[0081] In the formula for the final information-significant eigenvalue, Indicates the calculation for the The difference between the local response time level and the overall response time level of HTTP traffic data, that is, the larger the difference, the The greater the change in the local response time level of HTTP traffic data relative to the overall response time level, the The more significant the local response time level of HTTP traffic data is, the more likely it is to contain short-term hot information or user direct preference content. On the contrary, the smaller the difference is, the higher the probability is. The smaller the change in the local response time level of HTTP traffic data relative to the overall response time level, the The less prominent the local response time level of an HTTP traffic data is, the less likely it is that it contains short-term hot information or user direct preference content; therefore, the larger the difference is, the greater the degree of trust in the initial information important characteristic value of the HTTP traffic data is, the more it is necessary to increase the initial information important characteristic value, and the larger the final information important characteristic value is.
[0082] It should be noted that, in other embodiments of the present invention, It is also possible to construct a correlation that the larger the difference, the larger the initial information important eigenvalue, and the larger the final information important eigenvalue by adding the normalized difference result and the initial information important eigenvalue; The quotient method can also be used to express the changes, and a correlation is established that the greater the local response time level of HTTP traffic data, the smaller the overall response time level, and the greater the change; the specific means are technical means well known to technical personnel in this field and will not be repeated here.
[0083] Step S3: according to the final important characteristic value of the information of each HTTP traffic data, all HTTP traffic data are clustered to obtain data clustering clusters; according to the number of data in the data clustering clusters, reference clustering clusters are screened out; according to the distribution of the final important characteristic value of the information between each HTTP traffic data and all HTTP traffic data in the reference clustering clusters, the necessity of storing each HTTP traffic data is obtained.
[0084] Since HTTP traffic data is generated at a fast speed, the amount of HTTP traffic data is huge and has a lot of redundant information, which makes the importance of most corresponding HTTP traffic data poor, that is, the final important feature value of the information is small. Through clustering, HTTP traffic data with similar importance can be grouped. Therefore, according to the final important feature value of each HTTP traffic data, all HTTP traffic data are clustered to obtain data clustering clusters.
[0085] Preferably, in one embodiment of the present invention, the method for obtaining data clusters includes:
[0086] According to the important characteristic values of the final information of each HTTP traffic data, K-means clustering is performed on all HTTP traffic data to obtain data clustering clusters.
[0087] The K-means clustering algorithm is to cluster multiple clustering objects into specified K clusters based on the similarity between the clustering objects. Each clustering object belongs to and only belongs to one clustering cluster with the smallest distance to the center of the data clustering cluster. It should be noted that, in one embodiment of the present invention, the method for obtaining the K value is to determine the K value using the elbow rule. The specific K-means clustering algorithm and the elbow rule are technical means well known to those skilled in the art and will not be described in detail here.
[0088] The number of data can be used to identify data clusters with different degrees of importance; since there is a large amount of redundant information in HTTP traffic data, and the final important feature values of the information are all at a similar low level, the more data there are, the more redundant information the cluster contains, and it can be used as a reference cluster to evaluate the importance of other HTTP traffic data. Therefore, the reference cluster is selected based on the number of data in the data cluster.
[0089] Preferably, in one embodiment of the present invention, the method for obtaining the reference cluster includes:
[0090] The data cluster with the largest amount of HTTP traffic data among all data clusters is selected as the reference cluster.
[0091] By analyzing the distribution of the final information important characteristic values of HTTP traffic data, we can understand the relationship between the importance level of each HTTP traffic data relative to the redundant information data and quantify the necessity of storing HTTP traffic data; therefore, based on the distribution of the final information important characteristic values between each HTTP traffic data and all HTTP traffic data in the reference cluster, the necessity of storing each HTTP traffic data is obtained.
[0092] Preferably, in one embodiment of the present invention, the method for acquiring storage necessity includes:
[0093] Obtain the average of the final information important feature values of all HTTP traffic data in the reference cluster as the average final information important feature value;
[0094] The difference between the final information important characteristic value of each HTTP traffic data and the average final information important characteristic value is calculated, and normalized mapping is performed to obtain the storage necessity of each HTTP traffic data.
[0095] In one embodiment of the present invention, the formula for storage necessity is:
[0096] ;
[0097] in, Indicates The necessity of storing HTTP traffic data; Indicates the number of HTTP traffic data in the reference cluster; Indicates The final important characteristic value of HTTP traffic data; Indicates The final important characteristic value of HTTP traffic data; Represents the normalization function.
[0098] In the formula for storage necessity, It means calculating the mean of the final important characteristic values of all HTTP traffic data in the reference cluster, that is, the average final important characteristic value of information; Indicates The difference between the final information important characteristic value of HTTP traffic data and the average final information important characteristic value. The larger the difference, the larger the final information important characteristic value compared to the redundant information. The more important the HTTP traffic data is, the more necessary it is to store it.
[0099] Step S4: Obtain the storage priority of each HTTP traffic data according to the storage necessity.
[0100] Storage necessity reflects the importance of the information contained in HTTP traffic data. By setting storage priority, data with higher necessity can be stored first, and data with lower necessity can be stored on storage media with lower cost or compressed, archived, etc., thereby reducing the overall storage cost. The storage priority of each HTTP traffic data is obtained according to storage necessity.
[0101] Preferably, in one embodiment of the present invention, the method for acquiring the storage priority includes:
[0102] Obtain a storage necessity range corresponding to a preset storage priority; if the storage necessity of each HTTP traffic data exists within a storage necessity range corresponding to a preset storage priority, the corresponding storage priority is used as the storage priority of each HTTP traffic data.
[0103] It should be noted that, in one embodiment of the present invention, the preset storage priorities are 1, 2, 3, 4, and 5, and the corresponding storage necessity ranges are: , , , , In other embodiments of the present invention, the preset storage priority and the corresponding storage necessity range can be set according to the specific situation, and are not limited or elaborated here.
[0104] The storage priority is stored in order from large to small. When storing HTTP traffic data with higher storage priority, it is stored on high-performance storage media, which can improve data access speed and response performance. For HTTP traffic data with lower storage priority, a more economical storage solution can be appropriately selected to balance the relationship between performance and cost and improve the utilization of storage resources.
[0105] In summary, the present invention obtains the important information attribute value of each HTTP traffic data according to the amplitude change characteristics of the data in each HTTP traffic data; obtains the initial important information characteristic value of each HTTP traffic data according to the change trend of the access frequency of different IP addresses in each HTTP traffic data and the important information attribute value; obtains the final important information characteristic value in combination with the IP address response time characteristics in the HTTP traffic data; obtains the data clustering cluster of all HTTP traffic data; and then screens out the reference clustering cluster; obtains the storage necessity of each HTTP traffic data according to the distribution of the final important information characteristic values between each HTTP traffic data and all HTTP traffic data in the reference clustering cluster; and obtains the storage priority of each HTTP traffic data. The present invention improves the efficiency of data storage by analyzing the accurate storage necessity of each HTTP traffic data and reasonably dividing the storage priority.
[0106] Based on the same application concept as the information security data storage method provided in the embodiment of the present application, the present embodiment also proposes an information security data storage system, such as Figure 3 As shown, the system includes: a data acquisition module 301, an information importance correction module 302, a storage necessity analysis module 303 and a storage priority division module 304:
[0107] Data acquisition module 301: acquires HTTP traffic data of the target terminal service platform at each moment; HTTP traffic data includes IP address access frequency data and IP address response time data;
[0108] The information importance correction module 302: obtains the information importance attribute value of each HTTP traffic data according to the amplitude change characteristics of the data in each HTTP traffic data; obtains the initial information importance characteristic value of each HTTP traffic data according to the change trend of the access frequency of different IP addresses in each HTTP traffic data and the information importance attribute value; adjusts the initial information importance characteristic value according to the IP address response time characteristics in each HTTP traffic data to obtain the final information importance characteristic value of each HTTP traffic data;
[0109] Storage necessity analysis module 303: clustering all HTTP traffic data according to the final information important characteristic value of each HTTP traffic data to obtain data clustering clusters; screening out reference clustering clusters according to the number of data in the data clustering clusters; obtaining the storage necessity of each HTTP traffic data according to the distribution of the final information important characteristic value between each HTTP traffic data and all HTTP traffic data in the reference clustering clusters;
[0110] The storage priority division module 304 obtains the storage priority of each HTTP traffic data according to the storage necessity.
[0111] It should be noted that the system provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the computer device can be divided into different functional modules to complete all or part of the functions described above.
[0112] It should be understood that the system provided in this embodiment is used to execute the above-mentioned information security data storage method, and therefore has the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0113] The present invention also provides an electronic device, such as Figure 4, including a memory 401, a processor 402, and a computer program 403 stored in the memory and executable on the processor. When the processor 402 executes the computer program 403, any one of the steps of a method for storing secure information data is implemented.
[0114] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. 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, multitasking and parallel processing are also possible or may be advantageous.
[0115] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
Claims
1. A method for storing information security data, characterized in that: The method comprises: Obtaining HTTP traffic data of the target terminal service platform at each moment within a preset time range; the HTTP traffic data includes IP address access frequency data and IP address response time data; According to the amplitude variation characteristics of the data in each HTTP traffic data, the information important attribute value of each HTTP traffic data is obtained; according to the variation trend of the access frequency of different IP addresses in each HTTP traffic data and the information important attribute value, the initial information important characteristic value of each HTTP traffic data is obtained; according to the IP address response time characteristics in each HTTP traffic data, the initial information important characteristic value is adjusted to obtain the final information important characteristic value of each HTTP traffic data; According to the final important characteristic value of each HTTP traffic data, all HTTP traffic data are clustered to obtain data clusters; according to the number of data in the data clusters, reference clusters are selected; according to the distribution of the final important characteristic value of the information between each HTTP traffic data and all HTTP traffic data in the reference clusters, the necessity of storing each HTTP traffic data is obtained; Obtaining a storage priority for each HTTP traffic data according to the storage necessity; The method for obtaining the important attribute value of the information includes: The maximum IP address access frequency and the maximum IP address response time in each HTTP traffic data are merged as the amplitude of the corresponding HTTP traffic data; Get the amplitude mean of all HTTP traffic data as the overall amplitude level; Obtaining information-important attribute values of the HTTP traffic data according to a degree of deviation of the amplitude of each HTTP traffic data relative to the overall amplitude level; The method for obtaining the important characteristic values of the initial information includes: According to the variation trend between the maximum IP address access frequency and each other IP address access frequency in each HTTP traffic data and the information important attribute value, the initial information important characteristic value of each HTTP traffic data is obtained, and the variation trend between the maximum IP address access frequency and each other IP address access frequency and the information important attribute value are both positively correlated with the information important characteristic value; The method for obtaining the important characteristic value of the final information includes: Calculate the average response time of all IP addresses in each HTTP traffic data as the local response time level; calculate the average local response time level of all HTTP traffic data as the overall response time level; According to the change between the local response time level and the overall response time level of each HTTP traffic data and the initial information important characteristic value, the final information important characteristic value of each HTTP traffic data is obtained, and the change between the local response time level and the overall response time level and the initial information important characteristic value are both positively correlated with the final information important characteristic value; The method for obtaining the storage necessity includes: Obtain the average of the final information important feature values of all HTTP traffic data in the reference cluster as the average final information important feature value; The difference between the final information important feature value of each HTTP traffic data and the average final information important feature value is calculated, and normalized mapping is performed to obtain the storage necessity of each HTTP traffic data.
2. The information security data storage method according to claim 1, characterized in that: The method for obtaining the storage priority includes: Obtaining a storage necessity range corresponding to a preset storage priority; If the storage necessity of each HTTP traffic data falls within a storage necessity range corresponding to a preset storage priority, the corresponding storage priority is used as the storage priority of each HTTP traffic data.
3. The information security data storage method according to claim 1, characterized in that: The method for obtaining the data clustering clusters includes: According to the important characteristic value of the final information of each HTTP traffic data, K-means clustering is performed on all HTTP traffic data to obtain data clustering clusters.
4. The information security data storage method according to claim 1, characterized in that: The method for obtaining the reference cluster includes: The data cluster with the most HTTP traffic data among all data clusters is selected as the reference cluster.
5. An information security data storage system using the method of claim 1, characterized in that: The system comprises: Data acquisition module: acquires HTTP traffic data of the target terminal service platform at each moment; the HTTP traffic data includes IP address access frequency data and IP address response time data; Information importance correction module: according to the amplitude change characteristics of the data in each HTTP traffic data, obtain the information importance attribute value of each HTTP traffic data; according to the change trend of the access frequency of different IP addresses in each HTTP traffic data and the information importance attribute value, obtain the initial information importance characteristic value of each HTTP traffic data; according to the IP address response time characteristics in each HTTP traffic data, adjust the initial information importance characteristic value to obtain the final information importance characteristic value of each HTTP traffic data; Storage necessity analysis module: cluster all HTTP traffic data according to the final information important characteristic value of each HTTP traffic data to obtain data clustering clusters; select reference clustering clusters according to the number of data in the data clustering clusters; obtain the storage necessity of each HTTP traffic data according to the distribution of the final information important characteristic value between each HTTP traffic data and all HTTP traffic data in the reference clustering clusters; Storage priority division module: obtains the storage priority of each HTTP traffic data according to the storage necessity.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the steps of the information security data storage method as described in any one of claims 1 to 4 are implemented.
