A network security data transmission method

By analyzing data modularity in the LZW dictionary compression algorithm, optimizing the elimination selection of dictionary characters, and combining the degree of concentration and module correlation, the problem of false elimination caused by inconsistent frequency of dictionary characters in the traditional method is solved, and the efficiency of network security data transmission is improved. .

CN118337221BActive Publication Date: 2024-09-03SHAANXI YIGANG SHENGXUN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410757049.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-03
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

In the traditional LZW dictionary compression algorithm, the frequency of dictionary characters is inconsistent due to data modularity in network security data transmission, which can easily cause false elimination and affect compression efficiency.

Method used

By analyzing the data to be transmitted, we optimize the selection of dictionary characters for elimination during the dictionary update process, and combine the concentration of dictionary characters, module correlation and character distance arrangement entropy to evaluate the removability of each dictionary character and filter out the dictionary characters to be eliminated. , perform clustering and dictionary updating.

Benefits of technology

The compression efficiency of the LZW dictionary compression algorithm is improved, the phenomenon of false elimination is reduced, and the efficiency of network security data transmission is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118337221B
    Figure CN118337221B
Patent Text Reader

Abstract

The present application relates to the technical field of data transmission, and specifically to a network security data transmission method, the method comprising: obtaining network security data to be transmitted; determining the divisibility of any dictionary symbol based on the degree of concentrated distribution of the positions of any dictionary symbol in the dictionary to be updated each time in the corresponding data sequence, the chaotic distribution of the distance between the positions of appearance, and the similar change characteristics of adjacent dictionary symbols; clustering the divisibility differences between the dictionary symbols in the dictionary as clustering distances to screen out the dictionary symbols to be removed; based on the removal selection of dictionary symbols during each dictionary update process, transmitting the optimized compressed data and the corresponding dictionary. The present application removes useless dictionary symbols while retaining the valid information in the dictionary, improves the compression efficiency of the LZW dictionary compression algorithm, and thus improves the network security transmission efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a network security data transmission method. Background Art

[0002] Network security data transmission plays a key role in network security, ensuring that sensitive information is transmitted safely and reliably on the network. However, network security data includes a large amount of data such as logs, traffic data, and alarm information. Before transmitting network security data, it is often necessary to compress network security data to reduce data transmission time and speed up data transmission in the network. Compressing network security data before transmitting can improve data transmission efficiency and reduce data transmission delays.

[0003] In the traditional LZW dictionary compression algorithm, the characters or strings that are used the least in the dictionary are often removed to prevent the dictionary from being too large. However, in this process, due to network data security, the data often has certain rules, that is, it has certain modularity. For example, personal identity information, company confidential data, etc., when the data is collected and transmitted, it is often transmitted one module after another, first transmitting personal identity information, and then transmitting company confidential data. Therefore, in different stages, the frequency of use of characters or strings in the dictionary is inconsistent. When characters or strings are removed based on the frequency of use of characters or strings in the dictionary, it is very easy to cause erroneous removal, which may remove a large number of characters or strings to be used from the dictionary, while retaining characters or strings with lower frequency of use in the dictionary, thereby affecting the compression efficiency of the LZW dictionary compression algorithm. Summary of the invention

[0004] In order to solve the above technical problems, the present application provides a network secure data transmission method to solve the existing problems.

[0005] A network security data transmission method of the present application adopts the following technical solution:

[0006] An embodiment of the present application provides a network security data transmission method, the method comprising the following steps:

[0007] Obtain network security data to be transmitted;

[0008] By analyzing the network security data to be transmitted, the selection of dictionary symbols to be eliminated in each dictionary update process in the LZW dictionary compression algorithm is optimized; specifically:

[0009] (1) Obtain any dictionary to be updated during the compression process and its corresponding data sequence;

[0010] (2) determining the concentration degree and character distance permutation entropy of any dictionary symbol in the dictionary based on the concentration distribution degree of the positions where any dictionary symbol in the dictionary appears in the data sequence and the chaotic distribution of the distances between the positions where any dictionary symbol appears;

[0011] (3) determining the module association degree of any dictionary symbol based on similar change characteristics of neighboring dictionary symbols of any dictionary symbol in the data sequence;

[0012] (4) determining the modularity of any dictionary symbol by combining the module association degree, the concentration degree, and the character distance permutation entropy;

[0013] (5) obtaining a characteristic distance of any dictionary symbol, and determining the divisibility of any dictionary symbol based on the product of the modularity, the characteristic distance, and the occurrence frequency of any dictionary symbol;

[0014] (6) clustering the divisibility differences between the dictionary symbols in the dictionary as clustering distances to screen out the dictionary symbols to be removed;

[0015] Based on the elimination selection of dictionary symbols during each dictionary update process, the optimized compressed data and the corresponding dictionary are transmitted.

[0016] Preferably, the method for determining the concentration degree and character distance arrangement entropy includes:

[0017] The order of occurrence of any dictionary symbol in the data sequence forms a distribution sequence of any dictionary symbol;

[0018] Obtaining the numerical difference between each element in the distribution sequence of any dictionary symbol and the element with the closest numerical value between the two adjacent elements on its left and right, accumulating the numerical differences obtained for all elements in the distribution sequence to obtain a character distance accumulation value, and taking the inverse of the character distance accumulation value as the concentration degree of any dictionary symbol;

[0019] A difference sequence of the distribution sequence of any dictionary symbol is obtained; and the permutation entropy of the absolute values ​​of all elements in the difference sequence is used as the character distance permutation entropy of any dictionary symbol.

[0020] Preferably, the method for determining the module association degree includes:

[0021] Obtaining a set of adjacent dictionary symbols of any dictionary symbol from the data sequence;

[0022] Determining the feature commonality of any dictionary symbol based on common features between different elements in a set of dictionary symbols adjacent to any dictionary symbol;

[0023] Multiply the occurrence frequency of each dictionary symbol by the feature commonality to obtain the optimized occurrence frequency of each dictionary symbol;

[0024] Determining a frequency difference value for each dictionary symbol based on the optimized occurrence frequency of each dictionary symbol;

[0025] The optimized occurrence frequency of each adjacent dictionary symbol of any dictionary symbol is multiplied by the frequency difference value as the basic association degree of each adjacent dictionary symbol, and the basic association degrees of all adjacent dictionary symbols of any dictionary symbol are accumulated and summed to obtain the module association degree of any dictionary symbol.

[0026] Preferably, the method for obtaining the set of neighboring dictionary symbols includes: for all occurrence positions of any dictionary symbol in the data sequence, taking all dictionary symbols adjacent to all occurrence positions as neighboring dictionary symbols of any dictionary symbol, and forming all neighboring dictionary symbols of any dictionary symbol into a neighboring dictionary symbol set of any dictionary symbol.

[0027] Preferably, the method for determining the feature commonality includes:

[0028] For any adjacent dictionary symbol of any dictionary symbol, obtain the similarity between the adjacent dictionary symbol set of any adjacent dictionary symbol and the adjacent dictionary symbol set of any dictionary symbol, and obtain the intersection between the two adjacent dictionary symbol sets, recorded as the feature intersection of any adjacent dictionary symbol;

[0029] Obtain the frequency of occurrence of each feature intersection in the feature intersections of any dictionary symbol and all its neighboring dictionary symbols, and record it as the feature occurrence frequency of each feature intersection; multiply the similarity of any dictionary symbol and any of its neighboring dictionary symbols by the feature occurrence frequency of the corresponding feature intersection to obtain the basic commonality of any dictionary symbol and any of its neighboring dictionary symbols;

[0030] The basic commonality of any dictionary symbol and all its adjacent dictionary symbols is accumulated and summed to obtain the characteristic commonality of any dictionary symbol.

[0031] Preferably, the method for determining the frequency difference value includes:

[0032] The absolute value of the difference between the optimized occurrence frequencies of all neighboring dictionary symbols of each dictionary symbol is used as the distance measurement index in the clustering algorithm, and all neighboring dictionary symbols of each dictionary symbol are clustered to obtain a number of clusters;

[0033] The average occurrence frequency of all elements in each cluster in the data sequence in which it is located is obtained; the difference between the maximum value and the minimum value of the average occurrence frequency of all clusters is recorded as the frequency difference value of each dictionary symbol.

[0034] Preferably, the method for determining the modularity comprises: dividing the product of the module association degree and the concentration degree of any dictionary symbol by the character distance permutation entropy of any dictionary symbol to obtain the modularity of any dictionary symbol.

[0035] Preferably, the method for acquiring the characteristic distance is: acquiring the distance between any dictionary symbol and the last dictionary symbol in the dictionary where the symbol is located as the characteristic distance of any dictionary symbol.

[0036] Preferably, the process of screening the dictionary symbols to be removed includes:

[0037] Clustering all dictionary symbols in the dictionary, with the distance measurement index being the absolute value of the difference between the divisibility of the dictionary symbols, to obtain a plurality of clusters, which are respectively recorded as category clusters;

[0038] The divisibility mean of all elements in each category cluster is calculated, and all dictionary symbols in the category cluster with the largest divisibility mean are used as dictionary symbols to be removed.

[0039] Preferably, the optimized compressed data and the corresponding dictionary are transmitted based on the selection of dictionary symbols to be eliminated during each dictionary update process, including: eliminating the dictionary symbols to be eliminated selected from the dictionary, repeating the dictionary update process until the network security data is compressed, and transmitting the compressed network security data and the corresponding dictionary.

[0040] In the above scheme, the present application realizes the update of the dictionary in the LZW dictionary compression algorithm. Compared with the prior art, when the dictionary is eliminated based on the frequency of occurrence of characters or strings, it is very easy to cause the phenomenon of erroneous elimination of dictionary symbols such as characters or strings, thereby reducing the compression efficiency of the LZW dictionary compression algorithm. Based on the LZW dictionary compression characteristics, the present application evaluates the possibility that the dictionary symbols are the same module in the data sequence by the concentration of the positions of each dictionary symbol in the dictionary to be updated in the data sequence, and the chaotic distribution of the distances between the positions. The greater the possibility of the dictionary symbol being the same module in the data sequence, the greater the deletability corresponding to the dictionary symbol; at the same time, combined with the adjacent The similar change characteristics of dictionary symbols make the evaluation index of character distance permutation entropy more in line with the actual situation, thereby accurately evaluating the removability of each dictionary symbol, and eliminating the dictionary symbols in the dictionary that are more likely to belong to the same module, and removing the dictionary symbols to be eliminated from the dictionary to complete the update of the dictionary. This solves the problem that the dictionary update process of the prior art simply eliminates dictionary symbols based on the frequency of occurrence without considering the unique characteristics of belonging to the same module. The present application removes useless dictionary symbols while retaining the valid information in the dictionary, improves the compression efficiency of the LZW dictionary compression algorithm, and thereby improves the transmission efficiency of network security. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0042] Figure 1 A flowchart of a network security data transmission method provided by this application;

[0043] Figure 2 A flowchart of the steps of the dictionary symbol removal selection process in the dictionary update process provided by this application;

[0044] Figure 3 A flowchart for constructing the index of dictionary symbols to be removed provided in this application. DETAILED DESCRIPTION

[0045] In order to further explain the technical means and effects adopted by the present application to achieve the predetermined invention purpose, the following is a detailed description of the specific implementation method, structure, features and effects of a network security data transmission method proposed by the present application 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.

[0046] 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 application belongs.

[0047] The following is a detailed description of a specific scheme of a network security data transmission method provided by the present application with reference to the accompanying drawings.

[0048] An embodiment of the present application provides a network data transmission security method.

[0049] Specifically, the following network security data transmission method is provided. Figure 1 , the method comprises the following steps:

[0050] The first big step is to obtain the network security data to be transmitted.

[0051] This embodiment collects various log information recorded by the configuration system and network equipment, as well as network security data such as network traffic data to be transmitted. The collected network security data is formatted to obtain corresponding ASCII encoding. The ASCII encoding conversion process is a well-known technology and will not be repeated here.

[0052] At this point, the network security data to be transmitted can be obtained.

[0053] The second major step is to optimize the selection of dictionary symbols to be eliminated during each dictionary update in the LZW dictionary compression algorithm by analyzing the network security data to be transmitted.

[0054] The collection and conversion of network security data are completed according to the above steps. The obtained network security data is compressed before transmission, which can effectively improve the transmission efficiency of network security data.

[0055] It should be noted that the LZW dictionary compression algorithm is a classic lossless data compression algorithm used to convert input data streams into shorter output code streams to achieve data compression. The algorithm achieves compression by building a dynamic dictionary. The dictionary continues to grow during the compression process, recording the data sequences that have appeared and their corresponding codes. In this process, in order to avoid the dictionary from growing infinitely, a maximum dictionary size is usually set. When the dictionary reaches this size, the dictionary will be compressed or reset according to a certain strategy. The traditional LZW dictionary compression algorithm often removes the characters or strings that are used the least in the dictionary to prevent the dictionary from being too large. However, in this process, due to the network data transmission, its data often has certain rules, that is, it has certain modularity. For example, personal identity information, company confidential data, etc., when the data is collected and transmitted, it is often transmitted one module after another, first transmitting personal identity information, and then transmitting company confidential data. Therefore, in different stages, the frequencies of use of characters or strings in the dictionary are inconsistent. When characters or strings are removed based on their frequencies of use in the dictionary, it is very easy to cause erroneous removal, and characters or strings that are used in large quantities may be removed from the dictionary, while characters or strings that are used less frequently may be retained in the dictionary, thereby affecting the compression efficiency of the LZW dictionary compression algorithm.

[0056] In this embodiment, the second major step of selecting and removing dictionary symbols during the dictionary update process is divided into six sub-steps, as shown in the attached figure. Figure 2 As shown, specifically:

[0057] The first sub-step is to obtain any dictionary to be updated during the compression process and its corresponding data sequence.

[0058] This application first initializes the dictionary in the LZW dictionary compression algorithm. This embodiment uses the ASCII character set as the initialized dictionary, and compresses the collected network security data based on the initialized dictionary. In this process, the dictionary continues to grow until the dictionary reaches the preset maximum dictionary size. In this embodiment, the maximum dictionary size is set to 200, and the implementer can set it according to the specific situation. That is, when the cumulative sum of the characters and strings in the dictionary reaches the maximum dictionary size, the characters and strings in the dictionary are analyzed to obtain the characters or strings that need to be removed, and then the dictionary is updated. Among them, this embodiment refers to the characters or strings in the dictionary as dictionary symbols.

[0059] Since the data is continuously compressed while the dictionary is expanding, in this embodiment, the data to be compressed between each two dictionary updates is recorded as a data sequence, and by analogy, several corresponding data sequences can be obtained through each dictionary update. The condition for dictionary update is: after the dictionary size reaches the maximum dictionary size, the characters or strings in the dictionary are analyzed and removed to prepare for the next dictionary construction.

[0060] Based on this, the present application obtains a dictionary of dictionary symbols to be removed during the compression process and its corresponding data sequence.

[0061] According to this sub-step, the dictionary of dictionary symbols to be removed and the acquisition of their corresponding data sequences are completed. In the compression process of the data sequence, each dictionary symbol in the dictionary has its corresponding number of matches, and the dictionary is the dictionary that needs to be updated when the maximum dictionary size is reached. When the data in the data sequence is consistent with the dictionary symbol in the dictionary, it can be considered that the data has completed a match with the corresponding dictionary symbol. Since the data sequence is compressed by its corresponding dictionary, the data in the data sequence can be regarded as composed of many dictionary symbols, such as the data sequence aefabeabcfab composed of dictionary symbols a, abc, e, f, ab.

[0062] The second sub-step is to determine the concentration degree and character distance arrangement entropy of any dictionary symbol in the dictionary based on the concentration distribution degree of the positions where any dictionary symbol appears in the data sequence and the chaotic distribution of the distances between the positions where any dictionary symbol appears.

[0063] For any dictionary symbol in the data sequence, this embodiment takes dictionary symbol Q as an example, and takes dictionary symbol Q as the target dictionary symbol. The target dictionary symbol appears multiple times in the data sequence, and the positions of the target dictionary symbol in the data sequence form a distribution sequence of the target dictionary symbol.

[0064] The distribution concentration of dictionary symbols is obtained through the distribution characteristics of the target dictionary symbols in the data sequence. The more concentrated or regular the distribution of dictionary symbols is, the more likely it is that the dictionary symbol is a characteristic dictionary symbol in a module in the data sequence. When the module completes dictionary compression, the greater the deletability of the dictionary symbol. Based on this, the present application constructs the concentration of target dictionary symbols to indicate the concentration and regularity of dictionary symbol distribution. Among them, the process of obtaining the concentration index of the target dictionary symbol is as follows:

[0065] Obtain the numerical difference between each element in the distribution sequence of the target dictionary symbol and the element with the closest numerical value between the two adjacent elements on its left and right, accumulate the numerical differences obtained by all elements in the distribution sequence, obtain the character distance accumulation value, and use the inverse of the character distance accumulation value as the concentration degree of the target dictionary symbol. It should be understood that the smaller the character distance accumulation value, the greater the concentration degree, indicating that the distribution of the dictionary symbol is more concentrated, and the greater the possibility that it is a characteristic dictionary symbol of the module.

[0066] The character distance permutation entropy is obtained by calculating the degree of disorder between the distribution distances of the target dictionary symbols in the data sequence. The more similar and regular the distribution distances of the dictionary symbols are, the more likely the dictionary symbols are to be orderly distributed in a module in the data sequence. When the module completes dictionary compression, the greater the deletability of the dictionary symbol. The character distance permutation entropy acquisition process of the target dictionary symbol is as follows:

[0067] Obtain the differential sequence of the distribution sequence of the target dictionary symbol; use the permutation entropy of the absolute values ​​of all elements in the differential sequence as the character distance permutation entropy of the target dictionary symbol. The calculation method of the permutation entropy is a well-known technology and will not be repeated here. It should be understood that the larger the permutation entropy, the greater the disorder of the character distance sequence, that is, the more chaotic the distance between the dictionary symbol and the next identical dictionary symbol appears, the lower the regularity, indicating that the possibility of the dictionary symbol distribution being modular distribution is smaller, and the corresponding modularity is smaller.

[0068] The third sub-step is to determine the module association degree of any dictionary symbol based on similar change characteristics of neighboring dictionary symbols of any dictionary symbol in the data sequence.

[0069] This embodiment constructs the module association degree of the target dictionary symbol through similar change features of the neighboring dictionary symbols of the target dictionary symbol.

[0070] For all occurrence positions of the target dictionary symbol in the data sequence, all dictionary symbols adjacent to all occurrence positions are used as neighboring dictionary symbols of the target dictionary symbol, and all neighboring dictionary symbols of the target dictionary symbol are combined into a neighboring dictionary symbol set of the target dictionary symbol.

[0071] For each neighboring dictionary symbol in the neighboring dictionary symbol set of the target dictionary symbol, the occurrence frequency of each neighboring dictionary symbol in the data sequence is obtained. The greater the occurrence frequency, the greater the correlation between the neighboring dictionary symbol and the target dictionary symbol, and the greater the modularity of the dictionary symbol should be.

[0072] However, when modularity is constructed only based on the frequency of occurrence, since the data in the same module is often highly correlated, there often exists some shared data. For example, the dictionary symbols abc and abe, in which only one character is changed, are considered to be two adjacent dictionary symbols, and the frequency of occurrence of each dictionary symbol is low, but the frequency of occurrence of the character ab is high. In this case, the module correlation of the dictionary symbol is calculated incorrectly, which leads to a deviation in the calculation of the modularity of the dictionary symbol.

[0073] According to the above situation, this embodiment determines the feature commonality of dictionary symbols by analyzing the common features between different adjacent dictionary symbols, optimizes the occurrence frequency based on the feature commonality of dictionary symbols, and thus obtains a more accurate module association degree of dictionary symbols.

[0074] For any neighboring dictionary symbol W of the target dictionary symbol, the similarity between the neighboring dictionary symbol set of any neighboring dictionary symbol W and the neighboring dictionary symbol set of the target dictionary symbol is obtained by a similarity calculation method, and the intersection between the two neighboring dictionary symbol sets is obtained, which is recorded as the feature intersection of any neighboring dictionary symbol W.

[0075] The obtained feature intersections are counted. A feature intersection can be obtained between the target dictionary symbol and any of its neighboring dictionary symbols. Then, the frequency of occurrence of each feature intersection in the feature intersection of the target dictionary symbol and all of its neighboring dictionary symbols can be obtained, which is recorded as the feature occurrence frequency of each feature intersection. The similarity between the target dictionary symbol and any of its neighboring dictionary symbols is multiplied by the feature occurrence frequency of the corresponding feature intersection to obtain the basic commonality between the target dictionary symbol and any of its neighboring dictionary symbols. The basic commonality between the target dictionary symbol and all of its neighboring dictionary symbols is accumulated and summed to obtain the feature commonality of the target dictionary symbol. It should be understood that the greater the basic commonality, the greater the actual correlation between the target dictionary symbol and any of its neighboring dictionary symbols, and the greater the feature commonality, the more relevant the correlation relationship between the target dictionary symbol and all of its neighboring dictionary symbols in the data sequence.

[0076] In this embodiment, the similarity calculation method adopts the Jaccard similarity calculation method, which is a well-known technology and will not be described in detail.

[0077] According to the above steps, the feature commonality of each dictionary symbol can be obtained, and the occurrence frequency of each dictionary symbol is multiplied by the feature commonality to obtain the optimized occurrence frequency of each dictionary symbol. Based on this, the module association degree of the target dictionary symbol is determined based on the optimized occurrence frequencies of all neighboring dictionary symbols of the target dictionary symbol. The specific process is as follows:

[0078] First, the absolute value of the difference between the optimized occurrence frequencies of all neighboring dictionary symbols of the target dictionary symbol is used as a distance measurement indicator in the clustering algorithm, and all neighboring dictionary symbols of the target dictionary symbol are clustered to obtain a number of cluster clusters. Among them, this embodiment selects the k-means clustering algorithm, sets k to 2, and the k-means clustering process is a well-known technology and will not be repeated here.

[0079] Based on the optimized occurrence frequency, the neighboring dictionary symbols of the target dictionary symbol are classified, and the k-means clustering algorithm is used, where k is set to 2, the distance measurement indicator is the absolute value of the optimized occurrence frequency difference, and the initial cluster center point is randomly selected. The clustering process is a well-known technology and will not be repeated here.

[0080] Get the average frequency of occurrence of all elements in each cluster in its data sequence; record the difference between the maximum and minimum values ​​of the average frequency of occurrence of all clusters as the frequency difference value of the target dictionary symbol. It should be understood that the larger the frequency difference value, the greater the modularity corresponding to the target dictionary symbol. The logic is that the data in the same module often have data with a high frequency of occurrence and data with a low frequency of occurrence, while the frequency of occurrence of non-module data is often relatively similar.

[0081] According to the above steps, the optimized occurrence frequency and feature commonality of each neighboring dictionary symbol of the target dictionary symbol are obtained, and the optimized occurrence frequency of each neighboring dictionary symbol is multiplied by the frequency difference value as the basic association degree of each neighboring dictionary symbol, and the basic association degrees of all neighboring dictionary symbols of the target dictionary symbol are accumulated and summed to obtain the module association degree of the target dictionary symbol. It should be understood that the greater the module association degree, the more likely the target dictionary symbol is to belong to the data in a certain module.

[0082] The fourth sub-step is to determine the modularity of any dictionary symbol by combining the module association degree, the concentration degree and the character distance arrangement entropy.

[0083] If the data sequence where the target dictionary symbol is located is data within a module, then it may be data of another module when the dictionary is updated next time. The more likely the data sequence corresponding to the current dictionary next time has the same characteristics, the more likely it is that the data within a module needs to be eliminated to ensure the compression efficiency during the next dictionary generation process.

[0084] Furthermore, this embodiment uses the module association degree and concentration degree of the target dictionary symbols as constraint factors of the character distance permutation entropy, constructs the modularity of the target dictionary symbols, and makes the evaluation index of the character distance permutation entropy more in line with the actual situation.

[0085] Specifically, the modularity of any dictionary symbol is positively correlated with the module association degree and the concentration degree of any dictionary symbol, and is negatively correlated with the character distance permutation entropy of any dictionary symbol.

[0086] It can be understood that a positive correlation 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, or the power of an exponential function, which is determined by actual application and this application does not impose any special restrictions. A negative correlation means that the dependent variable will decrease as the independent variable increases, and the dependent variable will increase as the independent variable decreases. It can be a subtraction relationship, a division relationship, etc., which is determined by actual application.

[0087] In this embodiment, the modularity of the target dictionary symbol is obtained by dividing the product of the module association degree and the concentration degree of the target dictionary symbol by the character distance permutation entropy of the target dictionary symbol.

[0088] It should be understood that the greater the modularity of the target dictionary symbol, the more likely it is that the data sequence where the target dictionary symbol is located is data within a module. That is, during the next dictionary update process, since a data sequence corresponding to a dictionary is more likely to belong to the same module, it is more necessary to eliminate the data within a module, thereby ensuring that there are no redundant dictionary symbols that are meaningless in the current data compression process during the next dictionary generation process, which affects the efficiency of the dictionary for data compression.

[0089] A fifth sub-step is to obtain a characteristic distance of any dictionary symbol, and determine the divisibility of any dictionary symbol based on the product of the modularity, the characteristic distance and the occurrence frequency of any dictionary symbol;

[0090] According to the above steps, each dictionary symbol in the dictionary has its corresponding modularity, and the divisibility of the dictionary symbol is constructed through the modularity, feature distance and occurrence frequency of the dictionary symbol. It should be understood that the greater the divisibility, the more likely the dictionary symbol should be removed when the dictionary is updated.

[0091] In this embodiment, the modularity and feature distance of the target dictionary symbol obtained in the above steps are used as the optimization weights of the occurrence frequency of the target dictionary symbol, and the result of multiplying the three is used as the divisibility of the target dictionary symbol.

[0092] The characteristic distance acquisition method is: obtaining the distance between the target dictionary symbol and the last dictionary symbol in the dictionary where it is located as the characteristic distance of the target dictionary symbol. It should be understood that the larger the characteristic distance is, the longer the interval between the target dictionary symbol and the last use is, and the greater the divisibility corresponding to it is.

[0093] The sixth sub-step is to cluster the divisibility differences between the dictionary symbols in the dictionary as clustering distances to screen out the dictionary symbols to be removed.

[0094] According to the above steps, the divisibility index of each dictionary symbol in the dictionary is constructed, and the k-means clustering algorithm is used for all dictionary symbols in the dictionary. In this embodiment, k is set to 2, and the distance measurement index is the absolute value of the difference between the divisibility of the dictionary symbols. The initial cluster center point is randomly selected. The clustering process of the k-means algorithm is a well-known technology and will not be repeated here.

[0095] The dictionary symbols can be divided into two clusters, which are respectively recorded as category clusters. The divisibility mean of all elements in each category cluster is calculated, and all dictionary symbols in the category cluster with the largest divisibility mean are taken as dictionary symbols to be removed.

[0096] In this embodiment, the index construction flow chart of the dictionary symbols to be removed is as shown in the attached figure. Figure 3 shown.

[0097] The third major step is to transmit the optimized compressed data and the corresponding dictionary based on the elimination selection of dictionary symbols during each dictionary update process.

[0098] According to the above steps, the dictionary symbols to be removed are obtained, and the dictionary symbols to be removed are removed from the corresponding dictionary to complete the dictionary update. The next data is compressed based on the updated dictionary until the dictionary reaches the upper limit again, and the above steps are repeated until the data compression is completed. The compressed network security data and the corresponding dictionary are transmitted to the recipient. The data transmission process is a well-known method and will not be repeated here.

[0099] In the present application, when the network security data is transmitted after being efficiently compressed, the transmission efficiency of the network security data can be effectively improved and the storage space of the network security data can be saved.

[0100] 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.

[0101] It should be noted that, unless otherwise specified and limited, terms such as "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such article or device. In the absence of further restrictions, an element defined by the sentence "including one..." does not exclude the existence of other identical elements in the article or device including the element. In addition, the term "and\or" used herein includes any and all combinations of one or more related listed items.

[0102] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not invented by the present application.

[0103] It should be understood that the present application is not limited to the exact construction that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.

Claims

1. A network secure data transmission method, characterized in that: The method comprises the following steps: Obtain network security data to be transmitted; By analyzing the network security data to be transmitted, the selection of dictionary symbols to be eliminated in each dictionary update process in the LZW dictionary compression algorithm is optimized; specifically: (1) Obtain any dictionary to be updated during the compression process and its corresponding data sequence; (2) determining the concentration degree and character distance permutation entropy of any dictionary symbol in the dictionary based on the concentration distribution degree of the positions where any dictionary symbol in the dictionary appears in the data sequence and the chaotic distribution of the distances between the positions where any dictionary symbol appears; (3) determining the module association degree of any dictionary symbol based on similar change characteristics of neighboring dictionary symbols of any dictionary symbol in the data sequence; (4) determining the modularity of any dictionary symbol by combining the module association degree, the concentration degree, and the character distance permutation entropy; (5) obtaining a characteristic distance of any dictionary symbol, and determining the divisibility of any dictionary symbol based on the product of the modularity, the characteristic distance, and the occurrence frequency of any dictionary symbol; (6) clustering the divisibility differences between the dictionary symbols in the dictionary as clustering distances to screen out the dictionary symbols to be removed; Based on the elimination selection of dictionary symbols during each dictionary update process, the optimized compressed data and the corresponding dictionary are transmitted; The method for determining the module association degree includes: Obtaining a set of adjacent dictionary symbols of any dictionary symbol from the data sequence; Determining the feature commonality of any dictionary symbol based on common features between different elements in a set of dictionary symbols adjacent to any dictionary symbol; Multiply the occurrence frequency of each dictionary symbol by the feature commonality to obtain the optimized occurrence frequency of each dictionary symbol; Determining a frequency difference value for each dictionary symbol based on the optimized occurrence frequency of each dictionary symbol; Multiplying the optimized occurrence frequency of each adjacent dictionary symbol of any dictionary symbol by the frequency difference value to obtain the basic relevance of each adjacent dictionary symbol, and summing up the basic relevance of all adjacent dictionary symbols of any dictionary symbol to obtain the module relevance of any dictionary symbol; The method for determining the feature commonality includes: For any adjacent dictionary symbol of any dictionary symbol, obtain the similarity between the adjacent dictionary symbol set of any adjacent dictionary symbol and the adjacent dictionary symbol set of any dictionary symbol, and obtain the intersection between the two adjacent dictionary symbol sets, recorded as the feature intersection of any adjacent dictionary symbol; Obtain the frequency of occurrence of each feature intersection in the feature intersections of any dictionary symbol and all its neighboring dictionary symbols, and record it as the feature occurrence frequency of each feature intersection; multiply the similarity of any dictionary symbol and any of its neighboring dictionary symbols by the feature occurrence frequency of the corresponding feature intersection to obtain the basic commonality of any dictionary symbol and any of its neighboring dictionary symbols; Accumulate and sum the basic commonalities of any dictionary symbol and all its neighboring dictionary symbols to obtain the characteristic commonality of any dictionary symbol; The method for determining the modularity includes: dividing the product of the module association degree and the concentration degree of any dictionary symbol by the character distance permutation entropy of any dictionary symbol to obtain the modularity of any dictionary symbol.

2. A network secure data transmission method as claimed in claim 1, characterized in that: The method for determining the concentration degree and character distance arrangement entropy includes: The order of occurrence of any dictionary symbol in the data sequence forms a distribution sequence of any dictionary symbol; Obtaining the numerical difference between each element in the distribution sequence of any dictionary symbol and the element with the closest numerical value between the two adjacent elements on its left and right, accumulating the numerical differences obtained for all elements in the distribution sequence to obtain a character distance accumulation value, and taking the inverse of the character distance accumulation value as the concentration degree of any dictionary symbol; A difference sequence of the distribution sequence of any dictionary symbol is obtained; and the permutation entropy of the absolute values ​​of all elements in the difference sequence is used as the character distance permutation entropy of any dictionary symbol.

3. A network secure data transmission method as claimed in claim 1, characterized in that: The method for obtaining the adjacent dictionary symbol set includes: for all occurrence positions of any dictionary symbol in the data sequence, all dictionary symbols adjacent to all occurrence positions are used as adjacent dictionary symbols of any dictionary symbol, and all adjacent dictionary symbols of any dictionary symbol are combined into an adjacent dictionary symbol set of any dictionary symbol.

4. A network secure data transmission method as claimed in claim 1, characterized in that: The method for determining the frequency difference value comprises: The absolute value of the difference between the optimized occurrence frequencies of all neighboring dictionary symbols of each dictionary symbol is used as the distance measurement index in the clustering algorithm, and all neighboring dictionary symbols of each dictionary symbol are clustered to obtain a number of clusters; The average occurrence frequency of all elements in each cluster in the data sequence in which it is located is obtained; the difference between the maximum value and the minimum value of the average occurrence frequency of all clusters is recorded as the frequency difference value of each dictionary symbol.

5. A network secure data transmission method as claimed in claim 1, characterized in that: The method for acquiring the characteristic distance is: acquiring the distance between any dictionary symbol and the last dictionary symbol in the dictionary where the distance is located as the characteristic distance of any dictionary symbol.

6. A network secure data transmission method as claimed in claim 5, characterized in that: The process of screening the dictionary characters to be removed includes: Clustering all dictionary symbols in the dictionary, with the distance measurement index being the absolute value of the difference between the divisibility of the dictionary symbols, to obtain a plurality of clusters, which are respectively recorded as category clusters; The divisibility mean of all elements in each category cluster is calculated, and all dictionary symbols in the category cluster with the largest divisibility mean are used as dictionary symbols to be removed.

7. A network secure data transmission method as claimed in claim 6, characterized in that: The optimized compressed data and the corresponding dictionary are transmitted based on the selection of dictionary symbols to be eliminated during each dictionary update process, including: eliminating the dictionary symbols to be eliminated selected from the dictionary, repeating the dictionary update process until the network security data is compressed, and transmitting the compressed network security data and the corresponding dictionary.