A method and device for high-speed data transmission and encryption based on hardware acceleration
Use hardware acceleration technology to parse data packet information, calculate performance evaluation coefficients and historical energy consumption coefficients, combine stream processing and Wireshark tools, identify encryption requirements, select appropriate encryption algorithms, and solve the performance bottleneck and energy consumption of traditional software encryption in high-speed data transmission. This eliminates the problem of waste and achieves high efficiency and security of data transmission.
Patent Information
- Application Number
- CN202410340228.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-25
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-03-25
Smart Images

Figure CN118094601B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission and encryption, and in particular to a method and device for high-speed data transmission and encryption based on hardware acceleration. Background Art
[0002] In today's information age, hardware acceleration technology plays an important role in accelerating data processing and improving system performance. Hardware acceleration refers to speeding up specific computing tasks or processing processes through specially designed hardware modules or chips. It uses hardware-level optimization and parallel processing capabilities to provide faster execution speed and higher efficiency than traditional software implementations.
[0003] Nowadays, in response to the demand for high-speed data transmission and encryption, especially in the face of ever-increasing data transmission volume and increasingly complex security threats, traditional software encryption has become inefficient and insecure. In addition, traditional encryption devices often fail to fully consider the impact between hardware performance and internal energy consumption of data packets, resulting in performance bottlenecks and energy waste in high-intensity data transmission and encryption tasks, and are unable to better reflect the allocation of hardware. To address this challenge, a high-speed data transmission and encryption device based on hardware acceleration has emerged. Summary of the invention
[0004] 1. Solving technical problems
[0005] In view of the deficiencies in the prior art, the present invention provides a method and device for high-speed data transmission and encryption based on hardware acceleration, which solves the problems in the above-mentioned background technology.
[0006] (II) Technical solution
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: a method for high-speed data transmission and encryption based on hardware acceleration, comprising the following steps:
[0008] Step 1: Parse the data packets transmitted by the customer, obtain relevant data information in the data packets, encryption requirement data information, and performance data information of the main hardware and standby hardware themselves, and generate a total data set;
[0009] Step 2: Identify the encryption requirement data information in the total data set, determine whether there is an additional encryption requirement Ewz, and filter and aggregate the relevant data information in the data packet according to the stream processing technology, obtain the data status data set, obtain the data sensitivity value Lxz from the data status data set, and determine whether there is secondary encryption according to the data sensitivity value Lxz;
[0010] Step 3: Extract features from the data information in the total data set to obtain: data packet size Sjbz, uplink and downlink average speed value Pjsd, processor clock speed Ghz and memory Ndkz, and combine the data sensitivity value Lxz to obtain the historical energy consumption coefficient Mgxs of the data packet; analyze and calculate the performance data information of the main hardware and standby hardware themselves to obtain the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx1, the second standby hardware performance coefficient Dyjx2, the third standby hardware performance coefficient Dyjx3, ..., the nth standby hardware performance coefficient , and add the main hardware performance coefficient Zyjx and all standby hardware performance coefficients to obtain the total performance evaluation coefficient Zxnx;
[0011] By extracting relevant data information in the data packets sent by customers every hour, day or week in the historical time axis, the historical energy consumption coefficient Mgxs can be obtained;
[0012] Step 4: Set the performance evaluation coefficient threshold K, compare and analyze the total performance evaluation coefficient Zxnx with the preset performance evaluation threshold K, and combine the historical energy consumption coefficient Mgxs to determine whether the total performance evaluation coefficient Zxnx is abnormal;
[0013] Step 5: Combine the historical energy consumption coefficient Mgxs in step 3, compare and analyze it with the total performance evaluation coefficient Zxnx, generate a wake-up index Hzzs, and determine the number of groups of standby hardware through the wake-up index Hzzs.
[0014] Preferably, the relevant data information in the data packets transmitted by the customer, the encryption requirement data information, and the performance data information of the main hardware and the standby hardware themselves are captured and processed according to the Wireshark open source network protocol analysis tool;
[0015] The relevant data information in the data packet includes source address, destination address, protocol type, network traffic, data transmission status, communication protocol type, data packet type, uplink speed and downlink speed;
[0016] The encryption requirement data information includes the encryption annotation of the data packet by the customer and the customer's security requirement information, wherein the customer's security requirement information includes the importance and compliance standards of data protection;
[0017] The performance data information of the main hardware and standby hardware themselves includes the processor clock speed Ghz, memory Ndkz, energy efficiency Nhxl, working temperature of the hardware equipment, heat dissipation efficiency, interconnection interface type and transmission rate between hardware.
[0018] Preferably, the total data set is preferentially identified, the encryption requirement data information collected and obtained is identified, and it is determined whether the transmitted data packet requires an additional encryption requirement Ewz;
[0019] If the encryption requirement data information is identified, then the data packet transmitted at this time requires an additional encryption requirement Ewz to obtain a preliminary encryption signal;
[0020] If the encryption requirement data information is not identified, then the data packet transmitted at this time does not require an additional encryption requirement Ewz.
[0021] Preferably, the captured data packets are parsed to extract the internal source IP address and the target IP address, and data preprocessing is performed on the relevant data information in the data packets according to the flow processing technology, wherein the data preprocessing includes data filtering and aggregation;
[0022] Formulate filtering rules based on the limited source IP address or target IP address range;
[0023] Using the sliding time window form, randomly intercept the data packets within a five-minute period on the historical timeline, and aggregate the data packets within the five minutes to calculate the historical type average value and the historical upper and lower average speed values.
[0024] Preferably, the data sensitivity value Lxz is associated with the data packet size Sjbz, and after dimensionless processing, a historical energy consumption coefficient Mgxs is obtained, and the historical energy consumption coefficient Mgxs is obtained by the following formula:
[0025] ;
[0026] Wherein, Lxz represents the data sensitivity value, Xxsd represents the downlink speed, and Sjbz represents the data packet size.
[0027] Preferably, the historical energy consumption coefficient Mgxs is combined and compared with the preset energy consumption evaluation threshold G to select a mutually compatible encryption method:
[0028] If the historical energy consumption coefficient Mgxs is not lower than the energy consumption evaluation threshold G, that is, Mgxs ≥ G, a lightweight encryption algorithm is selected to encrypt the corresponding data packet;
[0029] If the historical energy consumption coefficient Mgxs is lower than the energy consumption evaluation threshold G, that is, Mgxs<G, a fast encryption algorithm is selected to encrypt the corresponding data packet.
[0030] Preferably, the processor clock speed Ghz is associated with the memory Ndkz, and after dimensionless processing, the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx1, the second standby hardware performance coefficient Dyjx2, the third standby hardware performance coefficient Dyjx3, ..., the nth standby hardware performance coefficient are obtained respectively. , the main hardware performance coefficient Zyjx is obtained by the following formula:
[0031] ;
[0032] In the formula, Nhxl represents the energy efficiency, and Pjsd represents the average uplink and downlink speed value;
[0033] The calculation method of each group of all standby hardware performance coefficients is the same, taking one group of standby hardware performance coefficients as For example, it is obtained by the following formula:
[0034] ;
[0035] In the formula, Ghz i Ndkz is the processor clock speed of the ith standby hardware. i Indicates the memory of the ith standby hardware, Nhxl i It is represented as the energy efficiency of the i-th standby hardware, It is expressed as the average uplink and downlink speed of the i-th standby hardware, 1, 2, 3, ..., n.
[0036] Preferably, the historical energy consumption coefficient Mgxs is combined, and the total performance evaluation coefficient Zxnx is compared and analyzed with a preset performance evaluation threshold K to determine whether the total performance evaluation coefficient Zxnx is abnormal at present;
[0037] If the total performance evaluation coefficient Zxnx is not lower than the performance evaluation threshold K, that is, Zxnx ≥ K, it indicates that the current hardware demand is abnormal;
[0038] If the total performance evaluation coefficient Zxnx is lower than the performance evaluation threshold K, that is, Zxnx<K, it indicates that there is no abnormality in the current hardware demand.
[0039] Preferably, the awakening index Hzzs is obtained by the following formula:
[0040] ;
[0041] Wherein, Lxz represents the data sensitivity value.
[0042] Preferably, a device for high-speed data transmission and encryption based on hardware acceleration comprises a data acquisition module, a data processing module, a data analysis module, an abnormality determination module and an allocation determination module;
[0043] The data acquisition module is used to pre-intercept the data packets transmitted by the customer and obtain relevant data information, encryption requirement data information and performance data information of the main hardware and standby hardware in the data packets through parsing, and generate a total data set;
[0044] The data processing module is used to preferentially identify the total data set, filter and aggregate relevant data information in the data packet according to the stream processing technology, and obtain the data sensitivity value Lxz;
[0045] The data analysis module extracts features from the data information in the total data set to obtain: data packet size Sjbz, uplink and downlink average speed value Pjsd, processor clock speed Ghz and memory Ndkz, and combines the data sensitivity value Lxz to obtain the historical energy consumption coefficient Mgxs of the data packet; analyzes and calculates the performance data information of the main hardware and standby hardware themselves to obtain the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx1, the second standby hardware performance coefficient Dyjx2, the third standby hardware performance coefficient Dyjx3, ..., the nth standby hardware performance coefficient , and add the main hardware performance coefficient Zyjx and all standby hardware performance coefficients to obtain the total performance evaluation coefficient Zxnx;
[0046] The abnormality determination module is used to compare and analyze the total performance evaluation coefficient Zxnx with a preset performance evaluation threshold K, and combine the historical energy consumption coefficient Mgxs to determine whether the total performance evaluation coefficient Zxnx is abnormal at present;
[0047] The allocation determination module is used to compare and analyze the historical energy consumption coefficient Mgxs and the total performance evaluation coefficient Zxnx to generate a wake-up index Hzzs, and determine the number of groups of standby hardware through the wake-up index Hzzs.
[0048] (III) Beneficial effects
[0049] The present invention provides a method and device for high-speed data transmission and encryption based on hardware acceleration, which has the following beneficial effects:
[0050] (1) This is a method for high-speed data transmission and encryption based on hardware acceleration. This method not only realizes the generation of data status data sets and intelligent judgment of secondary encryption by filtering and aggregating relevant information in data packets, but also further calculates the historical energy consumption coefficient Mgxs of data packets through feature extraction; at the same time, the analysis and calculation of the performance data of the main hardware and standby hardware, as well as the extraction and analysis of the historical energy consumption coefficient Mgxs, further enhance the accurate judgment and analysis of the total performance evaluation coefficient Zxnx. By setting the performance evaluation coefficient threshold K, this method can timely identify and determine whether the current total performance evaluation coefficient Zxnx is abnormal, thereby providing an important reference for subsequent system adjustment and optimization. In addition, combined with the comparative analysis of the historical energy consumption coefficient Mgxs and the total performance evaluation coefficient Zxnx, the generated wake-up index Hzzs further guides the reasonable configuration of the number of standby hardware groups and realizes the effective use of system resources.
[0051] (2) This is a method of high-speed data transmission and encryption based on hardware acceleration. The data packets captured by the Wireshark open source network protocol analysis tool contain performance data information of the main hardware and standby hardware themselves, such as processor clock speed Ghz, memory Ndkz, and energy efficiency Nhxl, etc., which helps to monitor the working status and performance of the hardware equipment, and parses and preprocesses the captured data packets, including data filtering and aggregation, to further ensure the security and integrity of data transmission and improve the security protection capability of data packets; intercepts data packets on the historical timeline in the form of a sliding time window, aggregates and counts the data, and calculates the historical type average and the historical upper and lower average speed values, thereby providing real-time data support for historical data analysis and performance evaluation, and further improving the accuracy of subsequent performance evaluation.
[0052] (3) This is a high-speed data transmission and encryption device based on hardware acceleration. Through the data acquisition module, the device can pre-intercept and parse the data packets transmitted by the customer, extract a large amount of data information from it, and summarize it into a total data set, so as to facilitate the establishment of a complete data foundation and provide sufficient information support for subsequent processing; the data processing module combines the flow processing technology to analyze and process the total data set, and prioritizes it to extract the data sensitive value Lxz, so as to quickly identify the importance of the data. The total performance evaluation coefficient Zxnx is analyzed using the preset performance evaluation threshold K to help determine whether the current hardware requirements are abnormal, so as to warn of potential problems in advance. The allocation judgment module generates the wake-up index Hzzs by comparing and analyzing the historical energy consumption coefficient Mgxs with the total performance evaluation coefficient Zxnx, which helps to determine the number of groups of standby hardware. This resource allocation helps to further improve hardware utilization, reduce energy consumption costs, and ensure that the system can operate in an efficient state. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 The present invention is a flowchart of a method for high-speed data transmission and encryption based on hardware acceleration. DETAILED DESCRIPTION
[0054] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0055] Example 1
[0056] See also Figure 1 The present invention provides a method for high-speed data transmission and encryption based on hardware acceleration, comprising the following steps:
[0057] Step 1: Parse the data packets transmitted by the customer, obtain relevant data information in the data packets, encryption requirement data information, and performance data information of the main hardware and standby hardware themselves, and generate a total data set;
[0058] Step 2: Identify the encryption requirement data information in the total data set, determine whether there is an additional encryption requirement Ewz, and filter and aggregate the relevant data information in the data packet according to the stream processing technology, obtain the data status data set, obtain the data sensitivity value Lxz from the data status data set, and determine whether there is secondary encryption according to the data sensitivity value Lxz;
[0059] Among them, stream processing technology is a technology for real-time processing of data streams. It continuously processes the data in the data packets, analyzes and processes the data in real time, and continuously generates results in the data packets. Its processing steps include data buffering, stream data transmission, real-time processing engine, continuous calculation and event-driven processing. The specific content is: using stream processing technology to buffer the data packets so that the data can be continuously processed and analyzed. Then the data will be transmitted in the form of a continuous stream instead of transmitting all data information at one time. By continuously calculating the data stream, the data can be filtered, aggregated and counted in real time.
[0060] Step 3: Extract features from the data information in the total data set to obtain: data packet size Sjbz, uplink and downlink average speed value Pjsd, processor clock speed Ghz and memory Ndkz, and combine the data sensitivity value Lxz to obtain the historical energy consumption coefficient Mgxs of the data packet; analyze and calculate the performance data information of the main hardware and standby hardware themselves to obtain the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx1, the second standby hardware performance coefficient Dyjx2, the third standby hardware performance coefficient Dyjx3, ..., the nth standby hardware performance coefficient , and add the main hardware performance coefficient Zyjx and all standby hardware performance coefficients to obtain the total performance evaluation coefficient Zxnx;
[0061] By extracting relevant data information in the data packets sent by customers every hour, day or week in the historical time axis, the historical energy consumption coefficient Mgxs can be obtained;
[0062] Step 4: Set the performance evaluation coefficient threshold K, compare and analyze the total performance evaluation coefficient Zxnx with the preset performance evaluation threshold K, and combine the historical energy consumption coefficient Mgxs to determine whether the total performance evaluation coefficient Zxnx is abnormal;
[0063] Step 5: Combine the historical energy consumption coefficient Mgxs in step 3, compare and analyze it with the total performance evaluation coefficient Zxnx, generate a wake-up index Hzzs, and determine the number of groups of standby hardware through the wake-up index Hzzs.
[0064] During the operation of this system, the data transmitted by the customer is first acquired and a total data set is generated. Then, by filtering and aggregating the relevant information in the data packet, the intelligent judgment of the secondary encryption is realized, and the key data packet feature information is obtained, such as the data packet size Sjbz, the average uplink and downlink speed value Pjsd, the processor clock speed Ghz and the bandwidth Ndkz, and the historical energy consumption coefficient Mgxs of the data packet is further calculated. At the same time, the analysis and calculation of the performance data of the main hardware and standby hardware, as well as the extraction and analysis of the historical energy consumption coefficient Mgxs, by setting the performance evaluation coefficient threshold K, this method can timely identify and determine whether the current total performance evaluation coefficient Zxnx is abnormal. In addition, combined with the comparative analysis of the historical energy consumption coefficient Mgxs and the total performance evaluation coefficient Zxnx, the generated wake-up index Hzzs further guides the reasonable configuration of the number of standby hardware groups, and realizes the effective utilization of system resources and the optimization control of energy consumption.
[0065] Example 2
[0066] Please refer to Figure 1Specifically: using the Wireshark open source network protocol analysis tool to capture and process the relevant data information in the data packets transmitted by the customer, the encryption requirement data information, and the performance data information of the main hardware and standby hardware themselves;
[0067] After starting the Wireshark open source network protocol analyzer tool, the staff selects the network interface to capture data packets. One or more interfaces can be selected to capture data packets. During the capture process, the Wireshark open source network protocol analyzer tool will begin to monitor the selected network interface and capture all data packets passing through the selected network interface. The captured content will then be displayed in real time, and detailed information of the captured data packets can be seen through the interface, including protocol type, source address, destination address, and network traffic.
[0068] The relevant data information in the data packet includes source address, destination address, protocol type, network traffic, data transmission status, communication protocol type, data packet type, uplink speed and downlink speed;
[0069] The encryption requirement data information includes the encryption annotation of the data packet by the customer and the customer's security requirement information, wherein the customer's security requirement information includes the importance and compliance standards of data protection;
[0070] The performance data information of the main hardware and standby hardware themselves includes the processor clock speed Ghz, memory Ndkz, energy efficiency Nhxl, working temperature of the hardware equipment, heat dissipation efficiency, interconnection interface type and transmission rate between hardware.
[0071] Prioritize the identification of the total data set, identify the encryption requirement data information collected and obtained, and determine whether the transmitted data packet requires additional encryption requirement Ewz;
[0072] If the encryption requirement data information is identified, then the data packet transmitted at this time requires an additional encryption requirement Ewz to obtain a preliminary encryption signal;
[0073] If the encryption requirement data information is not identified, then the data packet transmitted at this time does not require an additional encryption requirement Ewz.
[0074] Parse the captured data packets, extract the internal source IP address and destination IP address, and perform data preprocessing on the relevant data information in the data packets based on the flow processing technology, where data preprocessing includes data filtering and aggregation;
[0075] Filtering rules are formulated based on the limited source IP address or target IP address range. The purpose is to improve the security of data packets. The sliding time window is used to randomly intercept data packets within a five-minute period on the historical timeline, and the data packets within the five minutes are aggregated and counted to calculate the historical type average and the historical upper and lower average speed values.
[0076] In this embodiment, the data packets transmitted by the customer are captured and analyzed using the Wireshark open source network protocol analysis tool, and the data information with the largest weight in the total data set is preferentially identified to determine whether there is an additional encryption requirement Ewz required by the customer, so as to further improve the degree of encryption.
[0077] Example 3
[0078] Please refer to Figure 1 Specifically, the data sensitivity value Lxz is associated with the data packet size Sjbz, and after dimensionless processing, the historical energy consumption coefficient Mgxs is obtained. The historical energy consumption coefficient Mgxs is obtained by the following formula:
[0079] ;
[0080] Wherein, Lxz represents the data sensitivity value, Xxsd represents the downlink speed, and Sjbz represents the data packet size.
[0081] Data sensitivity value Lxz: refers to the different sensitivities of data encryption due to different data contents. Personal identity information in the data corresponds to 3 points, report records correspond to 4 points, transaction information corresponds to 5 points, and content that does not include personal identity information, report records and transaction information corresponds to 0 points. There are different types of judgments for the corresponding scores of data with different contents. The staff can evaluate the data type and then store the corresponding score of the data content of that type. Among them, data types include text type, number type and image type.
[0082] The downlink speed Xxsd and data packet size Sjbz are obtained by monitoring and capturing data packets at the network interface, thereby obtaining the uplink and downlink speeds and data packet sizes of network transmission in real time.
[0083] Combine the historical energy consumption coefficient Mgxs, compare and analyze it with the preset energy consumption assessment threshold G, and select a mutually adaptive encryption method:
[0084] If the historical energy consumption coefficient Mgxs is not lower than the energy consumption assessment threshold G, that is, Mgxs ≥ G, then a key length of 80 bits to 128 bits is selected, and the key length is all in digital form, and the corresponding data packet is encrypted;
[0085] If the historical energy consumption coefficient Mgxs is lower than the energy consumption assessment threshold G, that is, Mgxs<G, a key length of 80 bits to 128 bits is selected, and the key length is a mixed form of numbers and letters to encrypt the corresponding data packet.
[0086] If the historical energy consumption coefficient Mgxs is not lower than the energy consumption evaluation threshold G, that is, Mgxs ≥ G, a key length of 80 to 128 bits is selected, and the key length is all in digital form. For example, an 80-bit digital key such as "12345678901234567890" or a 128-bit digital key (such as "98765432109876543210987654321098") can be selected to encrypt the data packet.
[0087] If the historical energy consumption coefficient Mgxs is lower than the energy consumption assessment threshold G, that is, Mgxs<G, a key length of 80 bits to 128 bits is selected, and the key length is a mixed form of numbers and letters.
[0088] For example, you can choose an 80-bit mixed key (such as "A1b2C3d4E5f6G7h8I9") or a 128-bit mixed key (such as "K9j8H7g6F5d4S3a2Q1w2e3r4t5y6u7i8o9p0") to encrypt the data packet.
[0089] The processor clock speed Ghz is associated with the memory Ndkz, and after dimensionless processing, the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx1, the second standby hardware performance coefficient Dyjx2, the third standby hardware performance coefficient Dyjx3, ..., the nth standby hardware performance coefficient are obtained respectively. , the main hardware performance coefficient Zyjx is obtained by the following formula:
[0090]
[0091] In the formula, Nhxl represents the energy efficiency, and Pjsd represents the average uplink and downlink speed value;
[0092] The energy efficiency Nhxl is collected and obtained through the content in the specification sheet provided by the manufacturer;
[0093] The calculation method of each group of all standby hardware performance coefficients is the same, taking one group of standby hardware performance coefficients as For example, it is obtained by the following formula:
[0094]
[0095] In the formula, Ghz iNdkz is the processor clock speed of the ith standby hardware. i Indicates the memory of the ith standby hardware, Nhxl i It is represented as the energy efficiency of the i-th standby hardware, It is expressed as the average uplink and downlink speed of the i-th standby hardware, 1, 2, 3, ..., n.
[0096] In this embodiment, by associating the data sensitivity value Lxz with the data packet size Sjbz, the historical energy consumption coefficient Mgxs is obtained. This step helps to evaluate the encryption requirements of different types of data and select appropriate encryption methods according to their sensitivity, thereby further ensuring the secure transmission and storage of data; and, by comparing and analyzing the historical energy consumption coefficient Mgxs with a preset energy consumption assessment threshold G, it is determined whether to select a lightweight or fast encryption algorithm for data packet encryption based on the value of the historical energy consumption coefficient Mgxs. This flexible selection method can ensure that the energy consumption cost is reduced as much as possible while meeting the security requirements; through the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx1, the second standby hardware performance coefficient Dyjx2, the third standby hardware performance coefficient Dyjx3, ..., the nth standby hardware performance coefficient , which helps to comprehensively evaluate the working performance and energy efficiency of hardware devices, thereby providing reliable hardware support and protection for the data encryption process.
[0097] Example 4
[0098] Please refer to Figure 1 Specifically: combining the historical energy consumption coefficient Mgxs, and comparing and analyzing the total performance evaluation coefficient Zxnx with the preset performance evaluation threshold K, to determine whether the current total performance evaluation coefficient Zxnx is abnormal;
[0099] If the total performance evaluation coefficient Zxnx is not lower than the performance evaluation threshold K, that is, Zxnx ≥ K, it indicates that the current hardware demand is abnormal;
[0100] If the total performance evaluation coefficient Zxnx is lower than the performance evaluation threshold K, that is, Zxnx<K, it indicates that there is no abnormality in the current hardware demand.
[0101] The awakening index Hzzs is obtained by the following formula:
[0102] ;
[0103] Wherein, Lxz represents the data sensitivity value.
[0104] Example 5
[0105] Please refer to Figure 1 ,Specifically: A high-speed data transmission and encryption device based on hardware acceleration includes a data acquisition module, a data processing module, a data analysis module, an anomaly determination module and an allocation determination module;
[0106] The data acquisition module is used to pre-intercept the data packets transmitted by the customer and obtain relevant data information, encryption requirement data information and performance data information of the main hardware and standby hardware in the data packets through parsing, and generate a total data set;
[0107] The data processing module is used to preferentially identify the total data set, filter and aggregate relevant data information in the data packet according to the stream processing technology, and obtain the data sensitivity value Lxz;
[0108] The data analysis module extracts features from the data information in the total data set to obtain: data packet size Sjbz, uplink and downlink average speed value Pjsd, processor clock speed Ghz and memory Ndkz, and combines the data sensitivity value Lxz to obtain the historical energy consumption coefficient Mgxs of the data packet; analyzes and calculates the performance data information of the main hardware and standby hardware themselves to obtain the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx1, the second standby hardware performance coefficient Dyjx2, the third standby hardware performance coefficient Dyjx3, ..., the nth standby hardware performance coefficient , and add the main hardware performance coefficient Zyjx and all standby hardware performance coefficients to obtain the total performance evaluation coefficient Zxnx;
[0109] The abnormality determination module is used to compare and analyze the total performance evaluation coefficient Zxnx with a preset performance evaluation threshold K, and combine the historical energy consumption coefficient Mgxs to determine whether the total performance evaluation coefficient Zxnx is abnormal at present;
[0110] The allocation determination module is used to compare and analyze the historical energy consumption coefficient Mgxs and the total performance evaluation coefficient Zxnx to generate a wake-up index Hzzs, and determine the number of groups of standby hardware through the wake-up index Hzzs.
[0111] Example:
[0112] Data collection: additional encryption requirement Ewz is 0; data sensitivity value Lxz is 3; downlink speed Xxsd is 1.2; data packet size Sjbz is 3.6; energy efficiency Nhxl is 68%; uplink and downlink average speed value Pjsd is 0.90; uplink and downlink average speed of the i-th standby hardware 0.90; Processor clock speed of the i-th standby hardware Ghz i 1.0; the memory Ndkz of the i-th standby hardwarei =2; the energy efficiency of the i-th standby hardware is 65%; the processor clock speed is 1.5 Ghz; the memory Ndkz is 5; if there are 7 groups of standby hardware, then n is 8;
[0113] The total performance evaluation coefficient ;
[0114] With the above data, the following calculations can be performed:
[0115] Historical energy consumption coefficient ;
[0116] Main hardware performance coefficient ;
[0117] A set of standby hardware performance coefficients ;
[0118] Arousal index; ;
[0119] If the energy consumption assessment threshold G is 10, the historical energy consumption coefficient Mgxs is not lower than the energy consumption assessment threshold G, that is, Mgxs≥G. At this time, a key length of 80 bits to 128 bits is selected, and the key length is a mixture of numbers and letters. The corresponding data packet is encrypted, and 7 standby hardware units can be awakened.
[0120] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for high-speed data transmission and encryption based on hardware acceleration, Features: The following steps are included: Step 1: Parse the data packets transmitted by the customer, obtain relevant data information in the data packets, encryption requirement data information, and performance data information of the main hardware and standby hardware themselves, and generate a total data set; Step 2: Identify the encryption requirement data information in the total data set, determine whether there is an additional encryption requirement Ewz, and filter and aggregate the relevant data information in the data packet according to the stream processing technology, obtain the data status data set, obtain the data sensitivity value Lxz from the data status data set, and determine whether there is secondary encryption according to the data sensitivity value Lxz; Step 3: Extract features from the data information in the total data set to obtain: data packet size Sjbz, uplink and downlink average speed value Pjsd, processor clock speed Ghz and memory Ndkz, and combine the data sensitivity value Lxz to obtain the historical energy consumption coefficient Mgxs of the data packet; analyze and calculate the performance data information of the main hardware and standby hardware to obtain the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx respectively. 1 , Second standby hardware performance coefficient Dyjx 2 , the third standby hardware performance coefficient Dyjx 3 ,..., nth standby hardware performance coefficient , and add the main hardware performance coefficient Zyjx and all standby hardware performance coefficients to obtain the total performance evaluation coefficient Zxnx; By extracting relevant data information in the data packets sent by customers every hour, day or week in the historical time axis, the historical energy consumption coefficient Mgxs can be obtained; Step 4: Set the performance evaluation coefficient threshold K, compare and analyze the total performance evaluation coefficient Zxnx with the preset performance evaluation threshold K, and combine the historical energy consumption coefficient Mgxs to determine whether the total performance evaluation coefficient Zxnx is abnormal; Step 5: Combine the historical energy consumption coefficient Mgxs in step 3, compare and analyze it with the total performance evaluation coefficient Zxnx, generate a wake-up index Hzzs, and determine the number of groups of standby hardware by using the wake-up index Hzzs; Prioritize the identification of the total data set, identify the encryption requirement data information collected and obtained, and determine whether the transmitted data packet requires additional encryption requirement Ewz; If the encryption requirement data information is identified, then the data packet transmitted at this time requires an additional encryption requirement Ewz to obtain a preliminary encryption signal; If the encryption requirement data information is not identified, then the data packet transmitted at this time does not require additional encryption requirement Ewz; Parse the captured data packets, extract the internal source IP address and destination IP address, and perform data preprocessing on the relevant data information in the data packets based on the flow processing technology, where data preprocessing includes data filtering and aggregation; Formulate filtering rules based on the limited source IP address or target IP address range; Using the sliding time window form, randomly intercept the data packets within a five-minute period on the historical time axis, aggregate and count the data packets within the five minutes, and calculate the historical type average value and the historical upper and lower average speed value; The data sensitivity value Lxz is associated with the data packet size Sjbz, and after dimensionless processing, the historical energy consumption coefficient Mgxs is obtained. The historical energy consumption coefficient Mgxs is obtained by the following formula: ; Where Lxz represents the data sensitivity value, Xxsd represents the downlink speed, and Sjbz represents the data packet size; The awakening index Hzzs is obtained by the following formula: ; The processor clock speed Ghz is associated with the memory Ndkz, and after dimensionless processing, the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx are obtained respectively. 1 , Second standby hardware performance coefficient Dyjx 2 , the third standby hardware performance coefficient Dyjx 3 ,..., nth standby hardware performance coefficient , the main hardware performance coefficient Zyjx is obtained by the following formula: ; In the formula, Nhxl represents the energy efficiency, and Pjsd represents the average uplink and downlink speed value; The calculation method of each group of all standby hardware performance coefficients is the same, taking one group of standby hardware performance coefficients as For example, it is obtained by the following formula: ; In the formula, Ghz i Ndkz is the processor clock speed of the ith standby hardware. i Indicates the memory of the ith standby hardware, Nhxl i It is represented as the energy efficiency of the i-th standby hardware, It is expressed as the average uplink and downlink speed of the i-th standby hardware, 1, 2, 3, ..., n.
2. A method for high-speed data transmission and encryption based on hardware acceleration according to claim 1, Features: Capture and process the relevant data information in the data packets transmitted by customers, encryption requirement data information, and performance data information of the main hardware and standby hardware themselves based on the Wireshark open source network protocol analysis tool; The relevant data information in the data packet includes source address, destination address, protocol type, network traffic, data transmission status, communication protocol type, data packet type, uplink speed and downlink speed; The encryption requirement data information includes the encryption annotation of the data packet by the customer and the customer's security requirement information, wherein the customer's security requirement information includes the importance and compliance standards of data protection; The performance data information of the main hardware and standby hardware themselves includes the processor clock speed Ghz, memory Ndkz, energy efficiency Nhxl, working temperature of the hardware equipment, heat dissipation efficiency, interconnection interface type and transmission rate between hardware.
3. The method for high-speed data transmission and encryption based on hardware acceleration according to claim 2, Features: Combine the historical energy consumption coefficient Mgxs, compare and analyze it with the preset energy consumption assessment threshold G, and select a mutually adaptive encryption method: If the historical energy consumption coefficient Mgxs is not lower than the energy consumption assessment threshold G, that is, Mgxs ≥ G, then a key length of 80 bits to 128 bits is selected, and the key length is all in digital form, and the corresponding data packet is encrypted; If the historical energy consumption coefficient Mgxs is lower than the energy consumption assessment threshold G, that is, Mgxs<G, a key length of 80 bits to 128 bits is selected, and the key length is a mixed form of numbers and letters to encrypt the corresponding data packet.
4. The method for high-speed data transmission and encryption based on hardware acceleration according to claim 1, Features: Combined with the historical energy consumption coefficient Mgxs, the total performance evaluation coefficient Zxnx is compared and analyzed with a preset performance evaluation threshold K to determine whether the total performance evaluation coefficient Zxnx is abnormal at present; If the total performance evaluation coefficient Zxnx is not lower than the performance evaluation threshold K, that is, Zxnx ≥ K, it indicates that the current hardware demand is abnormal; If the total performance evaluation coefficient Zxnx is lower than the performance evaluation threshold K, that is, Zxnx<K, it indicates that there is no abnormality in the current hardware demand.
5. A device for high-speed data transmission and encryption based on hardware acceleration, used to implement a method for high-speed data transmission and encryption based on hardware acceleration as claimed in any one of claims 1 to 4. Features: It includes a data acquisition module, a data processing module, a data analysis module, an abnormality determination module and an allocation determination module; The data acquisition module is used to pre-intercept the data packets transmitted by the customer and obtain relevant data information, encryption requirement data information and performance data information of the main hardware and standby hardware in the data packets through parsing, and generate a total data set; The data processing module is used to prioritize the identification of the total data set, filter and aggregate the relevant data information in the data packet according to the stream processing technology, and obtain the data sensitivity value Lxz; The data analysis module extracts features from the data information in the total data set to obtain: data packet size Sjbz, uplink and downlink average speed value Pjsd, processor clock speed Ghz and memory Ndkz, and combines the data sensitivity value Lxz to obtain the historical energy consumption coefficient Mgxs of the data packet; analyzes and calculates the performance data information of the main hardware and standby hardware to obtain the main hardware performance coefficient Zyjx and the first standby hardware performance coefficient Dyjx respectively. 1 , Second standby hardware performance coefficient Dyjx 2 , the third standby hardware performance coefficient Dyjx 3 ,..., nth standby hardware performance coefficient , and add the main hardware performance coefficient Zyjx and all standby hardware performance coefficients to obtain the total performance evaluation coefficient Zxnx; The abnormality determination module is used to compare and analyze the total performance evaluation coefficient Zxnx with a preset performance evaluation threshold K, and combine the historical energy consumption coefficient Mgxs to determine whether the total performance evaluation coefficient Zxnx is abnormal at present; The allocation determination module is used to compare and analyze the historical energy consumption coefficient Mgxs and the total performance evaluation coefficient Zxnx to generate a wake-up index Hzzs, and determine the number of groups of standby hardware through the wake-up index Hzzs.
