Water conservancy data unvarnished transmission method, device and equipment and storage medium
By adopting random number filling strategy and priority classification encryption data packets in the water conservancy monitoring system, the problem of insufficient data transmission security and real-time reliability of the water conservancy monitoring system is solved, and the secure and transparent transmission and efficient analysis of data are realized, which improves the system's response ability and decision support efficiency.
Patent Information
- Application Number
- CN202510319384.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-07-25
AI Technical Summary
The data transmission security and real-time reliability of the water conservancy monitoring system are insufficient. Especially when the equipment is widely distributed and maintenance is difficult, the static key management method is easily attacked, resulting in data leakage and network congestion, affecting the real-time and reliability of the system.
The initial water conservancy data is encrypted using a random number filling strategy to form an encrypted water conservancy data packet, and priority classification and secondary encryption are carried out, and water conservancy data analysis is performed through transmission to the target receiving platform.
Ensure the security and real-time nature of data transmission, improve the response capability and decision-making support efficiency of the water conservancy system, prevent data leakage and optimize the utilization of network resources.
Smart Images

Figure CN120378133A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data transmission, and particularly to a method, device, equipment, and storage medium for transmitting water conservancy data transparently. Background Art
[0002] With the rapid development of the intellectualization and digitalization of water conservancy projects, the water conservancy system has gradually evolved into a complex, multi-level distributed monitoring and management network. Its core function is to monitor key hydrological data such as water level, flow rate, and rainfall in real time, and to achieve remote data transparent transmission and dynamic scheduling. The operating environment of the water conservancy monitoring system usually has unique complexity: monitoring devices are often distributed in remote or harsh environments, such as mountainous areas, river channels, dikes, etc. The communication conditions in these areas may be restricted by terrain, climate, and facility conditions. At the same time, the water conservancy system has high security requirements. Since water conservancy monitoring data directly affects important decisions such as flood control scheduling and disaster warning, water conservancy monitoring data not only needs to support real-time transmission, but also must ensure the confidentiality, integrity, and authenticity of the data. Traditional water conservancy systems usually deploy sensors at monitoring points and use wired networks or wireless communication technologies to achieve data transmission. During the data transmission process, to ensure security, a symmetric encryption algorithm is used to encrypt the data, and at the same time, a data integrity verification mechanism is combined. At the cloud platform or central server side, data storage, decryption, and analysis are centralized to form water conservancy decision support.
[0003] However, the static key management method will lead to data leakage and out-of-control of the entire system after the device is lost, the communication link is eavesdropped, or the attacker obtains the key. In the traditional water conservancy monitoring solution, due to the wide distribution and difficult maintenance of water conservancy monitoring devices, once a device is compromised, its key may be exploited by the attacker, endangering the security of the entire system. After encryption and decryption transmission, the central server in the cloud stores and decrypts and analyzes all data. This will cause the data transmission pressure to be concentrated in the cloud. Especially in emergencies such as flood warnings, the upload of a large amount of monitoring data may cause network congestion, affecting the real-time performance and reliability of the system.
[0004] The above content is only used to assist in understanding the technical solution of this application, and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main purpose of this application is to provide a method, device, equipment, and storage medium for transmitting water conservancy data transparently, aiming to solve the technical problems of insufficient data transmission security and real-time reliability of the water conservancy monitoring system.
[0006] To achieve the above purpose, this application proposes a method for transmitting water conservancy data transparently, and the method includes:
[0007] Obtain initial water conservancy data according to water conservancy environment data and water conservancy equipment data;
[0008] Encrypt the initial water conservancy data according to the random number filling strategy to obtain an encrypted water conservancy data packet;
[0009] Perform priority classification and secondary encryption on the encrypted water conservancy data packet to obtain an encrypted classified data packet;
[0010] Transparently transmit the encrypted classified data packet to the target receiving platform, so that the target receiving platform performs water conservancy data analysis based on the encrypted classified data packet.
[0011] In one embodiment, the step of encrypting the initial water conservancy data according to the random filling strategy to obtain an encrypted water conservancy data packet includes:
[0012] Generate random filling information according to the random filling strategy to obtain tail filling information and head filling information;
[0013] Add the tail filling information to the tail of the initial water conservancy data;
[0014] Encrypt the initial water conservancy data and the tail filling information according to the symmetric encryption algorithm to obtain initial encrypted data;
[0015] Add the head filling information to the head of the initial encrypted data to obtain adjusted encrypted data;
[0016] Calculate the integrity check value of the adjusted encrypted data and the integrity key according to the hash encryption algorithm;
[0017] Obtain target encrypted data according to the adjusted encrypted data and the integrity check value, and obtain an encrypted water conservancy data packet according to the target encrypted data.
[0018] In one embodiment, the step of performing priority classification and secondary encryption on the encrypted water conservancy data packet to obtain an encrypted classified data packet includes:
[0019] Decrypt the encrypted water conservancy data packet to obtain decrypted water conservancy data;
[0020] Perform integrity verification and normalization processing on the decrypted water conservancy data to obtain preprocessed water conservancy data;
[0021] Calculate the target priority score of the preprocessed water conservancy data;
[0022] Obtain a classification threshold, and classify the data of the target priority score according to the classification threshold and the target priority score to obtain first-priority data, second-priority data, and third-priority data;
[0023] Perform secondary encryption on the first-priority data, the second-priority data, and the third-priority data to obtain an encrypted classification data packet.
[0024] In one embodiment, the step of decrypting the encrypted water conservancy data packet to obtain decrypted water conservancy data includes:
[0025] Obtain an integrity key;
[0026] Obtain adjusted encrypted data and an integrity check value according to the encrypted water conservancy data packet;
[0027] Perform an integrity calculation according to the adjusted encrypted data and the integrity key to obtain an integrity calculation value;
[0028] When the integrity calculation value is the same as the integrity check value, obtain initial encrypted data according to the adjusted encrypted data;
[0029] Perform symmetric decryption on the initial encrypted data to obtain decrypted water conservancy data.
[0030] In one embodiment, the step of calculating the target priority score of the preprocessed water conservancy data includes:
[0031] Calculate a water level priority score according to the water level value, the preset warning water level value, the water level priority coefficient, and the water level change rate priority coefficient of the preprocessed water conservancy data;
[0032] Calculate a flow rate priority score according to the instantaneous flow rate and the flow rate priority coefficient of the preprocessed water conservancy data;
[0033] Calculate a rainfall priority score according to the rainfall amount, the cumulative rainfall amount, and the rainfall priority coefficient of the preprocessed water conservancy data;
[0034] Calculate a target priority score according to the water level priority score, the flow rate priority score, and the rainfall priority score.
[0035] In one embodiment, the step of obtaining a classification threshold and classifying the data of the target priority score according to the classification threshold and the target priority score to obtain first-priority data, second-priority data, and third-priority data includes:
[0036] Obtain a classification threshold, and obtain a first classification threshold, a second classification threshold, and a third classification threshold according to the classification threshold;
[0037] When it is detected that the current network state is network congestion, update the first classification threshold and the second classification threshold;
[0038] When the target priority score is greater than the updated first classification threshold, confirm that the data of the target priority score is first-priority data;
[0039] When the target priority score is less than the updated first classification threshold and greater than the updated second classification threshold, confirm that the data of the target priority score is second-priority data;
[0040] When the target priority score is less than the third classification threshold, confirm that the data of the target priority score is third-priority data.
[0041] In one embodiment, the step of transmitting the encrypted classified data packet to the target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classified data packet includes:
[0042] Obtain first-priority data, second-priority data, and third-priority data according to the encrypted classified data packet;
[0043] Sort the first-priority data, the second-priority data, and the third-priority data to obtain a transmission queue;
[0044] Transmit the transmission queue to the target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classified data packet in the transmission queue.
[0045] In addition, to achieve the above object, the present application also proposes a water conservancy data transmission device, where the water conservancy data transmission device includes: an acquisition module for acquiring initial water conservancy data according to water conservancy environment data and water conservancy equipment data;
[0046] An encryption module for encrypting the initial water conservancy data according to a random number filling strategy to obtain an encrypted water conservancy data packet;
[0047] A classification module for performing priority classification and secondary encryption on the encrypted water conservancy data packet to obtain an encrypted classified data packet;
[0048] A transmission module for transmitting the encrypted classified data packet to the target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classified data packet.
[0049] In addition, to achieve the above object, the present application also proposes a water conservancy data transmission device, where the device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the water conservancy data transmission method as described above.
[0050] In addition, to achieve the above object, the present application also provides a storage medium, which is a computer-readable storage medium. A computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the water conservancy data transparent transmission method described above are implemented.
[0051] In addition, to achieve the above object, the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps of the water conservancy data transparent transmission method described above are implemented.
[0052] One or more technical solutions proposed by the present application have at least the following technical effects:
[0053] By obtaining initial water conservancy data according to water conservancy environment data and water conservancy equipment data; using a random number filling strategy to encrypt the initial water conservancy data to form an encrypted water conservancy data packet; classifying the encrypted water conservancy data packet by priority and performing secondary encryption to obtain an encrypted classified data packet; transmitting the encrypted classified data packet to a target receiving platform so that the target receiving platform can perform water conservancy data analysis based on the encrypted classified data packet. The technical problems of insufficient data transmission security and real-time reliability in the water conservancy monitoring system are solved. Compared with the prior art, by introducing means such as encryption, priority classification, and secondary encryption, the security and real-time performance of data transmission are ensured. By transmitting the encrypted classified data packet in a transparent manner, the target receiving platform can perform efficient analysis on the premise of ensuring data security, thereby improving the response ability and decision-making support efficiency of the water conservancy system. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.
[0055] To more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.
[0056] Figure 1 It is a schematic flowchart provided for the first embodiment of the water conservancy data transparent transmission method of the present application;
[0057] Figure 2 It is a schematic diagram of the encryption process provided for the first embodiment of the water conservancy data transparent transmission method of the present application;
[0058] Figure 3 It is a schematic flowchart provided for the second embodiment of the water conservancy data transparent transmission method of the present application;
[0059] Figure 4 Schematic diagram of the module structure of the water conservancy data transparent transmission device according to the embodiment of the present application;
[0060] Figure 5 Schematic diagram of the device structure of the hardware operating environment involved in the water conservancy data transparent transmission method according to the embodiment of the present application.
[0061] The realization of the purpose, functional characteristics and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0062] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0063] In order to better understand the technical solutions of the present application, the following will be described in detail in conjunction with the accompanying drawings of the specification and specific implementation manners.
[0064] The main solution of the embodiment of the present application is: obtaining initial water conservancy data according to water conservancy environment data and water conservancy equipment data; encrypting the initial water conservancy data according to a random number filling strategy to obtain an encrypted water conservancy data packet; performing priority classification and secondary encryption on the encrypted water conservancy data packet to obtain an encrypted classification data packet; and transparently transmitting the encrypted classification data packet to a target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classification data packet.
[0065] In this embodiment, for the convenience of description, the following will be described with the water conservancy data transparent transmission device as the execution subject.
[0066] Due to the insufficient security and real-time reliability of data transmission in the existing water conservancy monitoring system, the present application provides a solution. By obtaining initial water conservancy data according to water conservancy environment data and water conservancy equipment data; encrypting the initial water conservancy data by using a random number filling strategy to form an encrypted water conservancy data packet; performing priority classification on the encrypted water conservancy data packet and performing secondary encryption to obtain an encrypted classification data packet; and transparently transmitting the encrypted classification data packet to a target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classification data packet. The technical problem of insufficient security and real-time reliability of data transmission in the water conservancy monitoring system is solved. Compared with the existing technology, by introducing means such as encryption, priority classification and secondary encryption, the security and real-time performance of data transmission are ensured. By transparently transmitting the encrypted classification data packet, the target receiving platform can perform efficient analysis on the premise of ensuring data security, thereby improving the response ability and decision support efficiency of the water conservancy system.
[0067] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device, a water conservancy data transmission device, etc. that can implement the above functions. Hereinafter, taking the water conservancy data transmission device as an example, this embodiment and the following embodiments will be described.
[0068] Based on this, the embodiments of the present application provide a water conservancy data transmission method. Refer to Figure 1 , Figure 1 which is a schematic flowchart of the first embodiment of the water conservancy data transmission method of the present application.
[0069] In this embodiment, the water conservancy data transmission method includes steps S10 to S40:
[0070] Step S10, obtaining initial water conservancy data according to water conservancy environment data and water conservancy equipment data;
[0071] It should be noted that water conservancy environment data refers to data describing the natural environment states such as water bodies, climate, and geography. The water conservancy environment data in this embodiment includes but is not limited to water level, flow rate, rainfall, soil humidity, sediment concentration, etc. The data of water level and flow rate are helpful for judging the flow situation and water volume change of the river course, while rainfall is an important parameter in water resources management. Collecting water conservancy environment data provides basic information for further water conservancy data analysis, dispatching decision-making, and early warning systems.
[0072] In addition, water conservancy equipment data refers to the operation status data obtained from water conservancy equipment such as pumping stations, gates, and monitoring equipment. The water conservancy equipment data includes but is not limited to the operation status of the equipment. For example, the start-stop status of the pumping station and the opening / closing angle of the gate; fault information, such as whether the equipment has a fault or alarm, etc. The water conservancy equipment data is used to evaluate the working condition of the equipment, ensure the normal operation of the equipment, and prevent water conservancy project safety accidents caused by equipment failures.
[0073] In addition, the initial water conservancy data is the raw data collected from various water conservancy equipment and environmental sensors. These data are not processed or encrypted, and directly reflect the current states of water bodies and equipment. It includes environmental data and equipment data, serving as the basis for subsequent data processing, encryption, and analysis.
[0074] Step S20, encrypting the initial water conservancy data according to the random number filling strategy to obtain an encrypted water conservancy data packet;
[0075] It should be noted that the random number filling strategy is an encryption method that adds a random number to the original data to increase the complexity and unpredictability of the data. By filling with random numbers, the encrypted data becomes more difficult to decrypt and crack, thus enhancing the security of data transmission.
[0076] In addition, the encrypted water conservancy data packet is the result obtained by encrypting the initial water conservancy data through an encryption algorithm. The encrypted data packet cannot be interpreted by unauthorized parties during the transmission process, ensuring the confidentiality of the data.
[0077] It can be understood that the initial water conservancy data is encrypted, a random number is added to the data using the random number filling strategy to increase the complexity of the data, and then the filled data is encrypted through an encryption algorithm. This encryption process ensures the confidentiality and security of the data, preventing the data from being stolen or tampered with during transmission. The encrypted water conservancy data packet can effectively protect data privacy and prevent external attackers from obtaining sensitive data.
[0078] In a feasible implementation manner, step S20 may include steps S21 to S26:
[0079] Step S21, generate random filling information according to the random filling strategy to obtain tail filling information and head filling information;
[0080] It should be noted that the random filling information is the data filled with random numbers generated by the random filling strategy. Adding random filling information to the data can make the data more complex and unpredictable during encryption.
[0081] In addition, the tail filling information is the content generated by the random filling strategy and appended to the tail of the data. These information are used to ensure that the length of the data meets the requirements of the encryption algorithm, and at the same time increase the complexity and unpredictability of the data, thereby enhancing the security after encryption. The tail filling information includes the data for filling the plaintext, the filling length, and the next header information. In this embodiment, the filling data can be a random number, and the filling length can be 1 byte.
[0082] In addition, the head filling information is similar to the tail filling information. It is the content generated by the random filling strategy and appended to the head of the data. The head filling information also increases the complexity of the data and ensures the protection strength of the encrypted data. The head filling information includes a security index parameter and a sequence number. In this embodiment, both the security index parameter and the sequence number are 4-byte data.
[0083] It is understandable that the random padding information generated according to the random padding strategy is divided into tail padding information and head padding information. This ensures that the encrypted data is more complex in structure, thereby enhancing the security of the data. The randomly padded information makes the structure of the original data unpredictable, which helps prevent the data from being cracked during the encryption process.
[0084] Step S22, add the tail padding information to the tail of the initial water conservancy data;
[0085] It is understandable that adding the tail padding information to the tail of the initial water conservancy data forms a new data packet. This ensures that the data can meet the requirements of the symmetric encryption algorithm and increases the security of the data. Through tail padding, the structure of the data is enhanced, making the encrypted data more complex and further improving the data protection ability.
[0086] Step S23, encrypt the initial water conservancy data and the tail padding information according to the symmetric encryption algorithm to obtain the initial encrypted data;
[0087] It should be noted that the symmetric encryption algorithm is an encryption algorithm in which the same key is used for encryption and decryption. The encryption and decryption processes of the symmetric encryption algorithm are relatively fast and are suitable for encrypting large-scale data.
[0088] In addition, the initial encrypted data is the result of encrypting the initial water conservancy data and the tail padding information, and the ciphertext obtained after encryption using the symmetric encryption algorithm. This data can only be decrypted with the same key to ensure the confidentiality of the data.
[0089] It is understandable that the initial water conservancy data and the tail padding information obtained in step S22 are encrypted through the symmetric encryption algorithm. After encrypting the data using the symmetric encryption algorithm, the encryption result is the ciphertext. The encryption process ensures the confidentiality of the data and prevents unauthorized persons from accessing or interpreting the data.
[0090] Step S24, add the head padding information to the head of the initial encrypted data to obtain the adjusted encrypted data;
[0091] It is understandable that the adjusted encrypted data is the result of adding the head padding information to the initial encrypted data. Adding the head padding information to the head of the encrypted data forms the adjusted encrypted data, further enhancing the security of the data. The addition of the head padding information ensures the complexity of the data after encryption, thereby preventing attackers from cracking the ciphertext by analyzing the structure of the encrypted data.
[0092] Step S25, calculate the integrity check value of the adjusted encrypted data and the integrity key according to the hash encryption algorithm;
[0093] It should be noted that the hash encryption algorithm is an encryption algorithm used to generate a fixed-length hash value of data. The hash value is used to verify the integrity of the data and ensure that the data has not been tampered with during transmission.
[0094] In addition, the integrity key is the key used to calculate the data integrity check value. It is used in combination with the data to ensure the integrity and authenticity of the data.
[0095] In addition, the integrity check value is the hash value calculated by the hash encryption algorithm and is used to verify whether the data has been tampered with during transmission. This check value is compared with the transmitted hash value to detect whether the data is complete.
[0096] It can be understood that by using the hash encryption algorithm to calculate the hash values of the adjusted encrypted data and the integrity key, the integrity check value can be obtained. The hash algorithm verifies the integrity of the data through the calculated hash value. This process ensures that the data has not been damaged or tampered with during encryption and transmission.
[0097] Step S26, obtain the target encrypted data according to the adjusted encrypted data and the integrity check value, and obtain the encrypted water conservancy data packet according to the target encrypted data.
[0098] It can be understood that by combining the adjusted encrypted data with the integrity check value, the target encrypted data is obtained, and finally the encrypted water conservancy data packet is formed. The encrypted water conservancy data packet contains all necessary encryption, padding, and check information to ensure that the data will not be tampered with or stolen during transmission. The generation of the target encrypted data and the formation of the encrypted water conservancy data packet are similar to the encapsulation security payload in the encryption process, ensuring the integrity and security of the data through comprehensive encryption and verification.
[0099] Refer to Figure 2 , Figure 2 This is the schematic diagram of the encryption process of the first embodiment of the water conservancy data transparent transmission method of the present application.
[0100] As Figure 2As shown, the water conservancy data and the tail information will enter the encryption process together with the session key. The water conservancy data and the tail information are initially encrypted to ensure the confidentiality of the data. During the initial encryption process, the tail information is encrypted together with the water conservancy data. After encryption, the water conservancy data packet and the tail information are protected against leakage. Subsequently, the header information also enters the encryption process. The header information is encrypted together with the initially encrypted data to ensure the security of the header information and prevent it from being stolen during transmission. Next, all the encrypted data is encrypted with the session key to further enhance the confidentiality of the data. The session key encryption uses a symmetric encryption algorithm to ensure that only the legitimate recipient can decrypt the data, thus protecting the data content. The encrypted data is also subjected to hash encryption to generate an integrity check value. The integrity check value is used to check whether any tampering has occurred to the data during transmission. By performing a hash operation on the encrypted data, the generated check value can be used to compare the integrity of the data and ensure that the data in transmission has not been modified. If the check value is consistent with the transmitted data, it indicates that the data is complete and secure. After these steps of processing, the target encrypted data packet is finally obtained. This target encrypted data packet will contain all the encrypted data, including the water conservancy data, the header information, and the tail information, and each part has passed the integrity check to ensure the accuracy and security of the data. The purpose of the entire process is to ensure the confidentiality, integrity, and security of the data during transmission, prevent data leakage or tampering, and at the same time ensure that the recipient can decrypt and obtain the complete data under legal circumstances.
[0101] Step S30: Classify the encrypted water conservancy data packet by priority and perform secondary encryption to obtain an encrypted classified data packet;
[0102] It should be noted that priority classification is a process of sorting and grouping data according to its importance or urgency. The classification of data priorities can ensure that important data is transmitted first, while less urgent data can be transmitted later. In this way, key data can be preferentially processed according to the network bandwidth and resource conditions, improving the efficiency and real-time performance of data transmission.
[0103] In addition, secondary encryption is a process of encrypting an already encrypted data packet again. After the initial encryption, the data already has a certain level of security. However, to further strengthen the protection of the data, secondary encryption is used to encrypt the data packet again.
[0104] In addition, an encrypted classified data packet refers to a data packet that has undergone priority classification and secondary encryption processing. Through priority classification, the data is grouped according to the level of urgency, and through secondary encryption, the security of the data is further improved. The encrypted classified data packet can ensure that key data is transmitted first and is strongly protected during transmission.
[0105] It is understandable that the encrypted water conservancy data packets are classified according to priority. By analyzing the urgency and importance of the data, it is determined which data needs to be transmitted first and which data can be transmitted later. The classified data packets are encrypted again to reduce the risk of data leakage during data transmission, so as to further enhance the security of the data.
[0106] In a feasible implementation manner, step S30 may include steps S31 to S35:
[0107] Step S31, decrypt the encrypted water conservancy data packet to obtain decrypted water conservancy data;
[0108] It should be noted that the decrypted water conservancy data is the original water conservancy data restored after decrypting the encrypted water conservancy data packet. The decryption process uses the symmetric key encryption algorithm for reverse operation to restore the water conservancy data that can be understood and analyzed. The decrypted water conservancy data contains the unencrypted environmental information.
[0109] It is understandable that the receiving party uses the same symmetric key to decrypt the encrypted water conservancy data packet to restore the original data. The decryption process follows the principle of symmetric encryption to ensure that only the authorized party can decrypt the data. The decrypted data can restore information such as water level, flow rate, and rainfall during transmission, enabling the receiving party to further analyze this data.
[0110] In a feasible implementation manner, step S31 may include: obtaining an integrity key; obtaining adjusted encrypted data and an integrity check value according to the encrypted water conservancy data packet; performing an integrity calculation according to the adjusted encrypted data and the integrity key to obtain an integrity calculation value; when the integrity calculation value is the same as the integrity check value, obtaining initial encrypted data according to the adjusted encrypted data; performing symmetric decryption on the initial encrypted data to obtain decrypted water conservancy data.
[0111] It is understandable that after obtaining the integrity key, adjusting the encrypted data, and the integrity verification value, an integrity calculation is performed based on the adjusted encrypted data and the integrity key to obtain an integrity calculation value. This process uses a hash encryption algorithm to calculate the adjusted encrypted data, which can generate a calculation value of a fixed length for comparison with the received integrity verification value. If the integrity calculation value is consistent with the integrity verification value, it indicates that the data has not been tampered with during transmission; if they are inconsistent, it means the data may have been tampered with or damaged. If the integrity calculation value and the integrity verification value are consistent, it shows that the data has not been tampered with, and the data can be further restored. After restoring the initial encrypted data, symmetric decryption can be performed. The initial encrypted data is symmetrically decrypted using the same key as during encryption to restore the decrypted water conservancy data. Through this decryption process, the receiving party can restore the original plaintext data, that is, the operating status or environmental data of the water conservancy equipment, which can be used for subsequent analysis, decision-making, or storage.
[0112] Step S32: Perform integrity verification and normalization processing on the decrypted water conservancy data to obtain preprocessed water conservancy data;
[0113] It should be noted that integrity verification is a process used to confirm whether the data has been tampered with or damaged during transmission. By comparing the integrity verification value and the calculated value of the received data, it can be ensured that the data remains consistent during transmission. If the verification fails, the receiving party can determine that the data has been tampered with or damaged and cannot be further used.
[0114] In addition, normalization processing refers to converting data with different dimensions and ranges into a unified standard format. Through normalization, the data is converted into a unified standard scale, which is convenient for subsequent analysis and calculation. For example, water level and flow rate may have different units, and normalization converts them into standard values that can be processed in the same model.
[0115] In addition, preprocessed water conservancy data refers to water conservancy data that has undergone integrity verification and normalization processing. The preprocessed data is more standardized, which is convenient for subsequent analysis and decision-making.
[0116] It is understandable that integrity verification ensures that the received data has not been tampered with or damaged, and the calculated value is compared with the verification value. Through verification, the receiving party confirms the integrity of the data. If the verification passes, normalization processing is performed to ensure that different types of data, such as water level and flow rate, can be uniformly and standardized processed.
[0117] Step S33: Calculate the target priority score of the preprocessed water conservancy data;
[0118] It should be noted that the target priority score is a score value assigned to each piece of data based on the urgency and importance of the data. This score is usually based on multiple factors, such as whether the water level exceeds the warning value, whether the flow rate is abnormal, etc. Higher-scoring data indicates a higher need for priority processing.
[0119] It can be understood that by analyzing the preprocessed water conservancy data and combining different parameters to evaluate its urgency or importance, the priority score of each piece of data is generated. The level of the score reflects the priority of the data, and data with a high priority will be processed first. For example, if the water level exceeds the warning value, the priority score may be very high, indicating that immediate response is required. Through the target priority score, different types of data can be effectively classified and processed.
[0120] In a feasible implementation manner, step S33 may include steps S331 to S334:
[0121] Step S331, calculate the water level priority score according to the water level value of the preprocessed water conservancy data, the preset warning water level value, the water level priority coefficient, and the water level change rate priority coefficient;
[0122] It should be noted that the water level value refers to the height of the water body at a certain moment, such as the water level of a river, lake, or reservoir. It is usually used to measure the fullness of the water body and the flood risk. The change of the water level is usually closely related to the occurrence of floods or droughts.
[0123] In addition, the preset warning water level value is a water level threshold set after analyzing historical data and climatic conditions to ensure the safety of water body management. When the water level exceeds this preset warning water level, it indicates that a flood or a serious water resource crisis may occur.
[0124] In addition, the water level priority coefficient is a factor that weights the importance of the water level change to the decision-making. A higher water level priority coefficient usually indicates that this data point has a greater impact on water conservancy management decisions and may trigger an emergency response. The water level priority coefficient controls the influence intensity of the water level on the priority. The closer the water level is to the warning value, the steeper the increase in priority.
[0125] In addition, the water level change rate priority coefficient represents the degree of influence of the speed and amplitude of the water level change on water conservancy decisions. If the water level changes rapidly, it may mean that a flood is about to occur, and usually a higher priority coefficient will be assigned. The water level change rate priority coefficient controls the influence of the water level change rate on the priority.
[0126] It can be understood that the water level priority score is calculated by combining the water level value, the preset warning water level value, the water level priority coefficient, and the water level change rate priority coefficient. The calculation formula for the water level priority score is as follows:
[0127]
[0128] In the water level priority score calculation formula, H is the water level value, ΔH is the water level change rate, H c is the preset warning water level value, a is the water level priority coefficient, and b is the water level change rate priority coefficient. When H is close to H c , f1 → 0.5, and the water level is much lower than H c , f1 is close to 0; when it exceeds H c , f1 → 1. When ΔH > 0, that is, when the water level is rising, the priority is further improved; when ΔH < 0, that is, when the water level is falling, the priority is appropriately reduced.
[0129] Step S332, calculate the flow priority score according to the instantaneous flow rate and the flow priority coefficient of the preprocessed water conservancy data;
[0130] It should be noted that the instantaneous flow rate refers to the water flow rate passing through a certain measurement point at a certain specific moment. The instantaneous flow rate reflects the intensity of water body flow and is an important parameter for monitoring processes such as floods, water resource flow within the basin, and drainage.
[0131] In addition, the flow priority coefficient is a coefficient used to measure the importance of flow data in water conservancy management. The change of flow data plays an important role in decisions such as flood control and irrigation scheduling. Therefore, the flow priority coefficient determines the urgency of this data.
[0132] It can be understood that according to the instantaneous flow rate value and the flow priority coefficient in the preprocessed water conservancy data, the priority score of the flow data is calculated. When the flow rate is large, it usually means that there may be emergencies such as floods. Therefore, the flow priority coefficient will be weighted according to the size of the flow rate and its importance to water conservancy decisions. If the instantaneous flow rate is large and the flow priority coefficient is high, the flow priority score will be high and it will be processed first. The flow priority score formula is as follows:
[0133] f2(Q) = log(1 + kQ)
[0134] In the flow priority score formula, Q is the instantaneous flow rate and k is the flow priority coefficient. The large flow rate can be moderately smoothed. The larger the flow rate, the slower the priority rises. For small and medium flow rates, the priority can be quickly increased, which is suitable for emergency judgment.
[0135] Step S333, calculate the rainfall priority score according to the rainfall amount, cumulative rainfall amount, and rainfall priority coefficient of the preprocessed water conservancy data;
[0136] It should be noted that the rainfall amount refers to the amount of precipitation within a certain period of time. The rainfall amount is an important indicator reflecting weather conditions and water resource management, especially crucial in aspects such as flood warning, agricultural irrigation, and reservoir water storage.
[0137] Additionally, cumulative rainfall refers to the total precipitation over a period of time, which is obtained by adding up the amounts of multiple rainfall events. Cumulative rainfall can provide information on the time accumulation of precipitation and help predict the impact of continuous rainfall. In this embodiment, the cumulative rainfall for the past 24 hours is calculated.
[0138] Additionally, the rainfall priority coefficient is a factor used to determine the degree of influence of rainfall data on decision-making. A larger rainfall may mean an increased risk of flood, so high-priority rainfall data needs to be processed first.
[0139] It can be understood that rainfall and cumulative rainfall are key indicators for evaluating precipitation conditions. Especially in the case of continuous rainfall, cumulative rainfall is particularly important for flood prediction. The rainfall priority coefficient is assigned according to the amount and change of precipitation and its impact on water conservancy decision-making. Data with a larger rainfall will be given a higher priority score, indicating that this data needs to be processed first. The rainfall priority score is as follows:
[0140]
[0141] In the rainfall priority score formula, P is the rainfall, P sum is the cumulative rainfall, and τ is the rainfall priority coefficient.
[0142] Step S334, calculate the target priority score according to the water level priority score, the flow priority score, and the rainfall priority score.
[0143] It can be understood that by weighted combining the priority scores of water level, flow, and rainfall, a comprehensive priority score can be obtained. This score reflects the comprehensive influence of multiple factors on water conservancy decision-making and helps determine which data needs to be processed with the highest priority. If the target priority score is higher, it indicates that the data is more urgent for decision-making and must be responded to first. The target priority score calculation formula is as follows:
[0144] S = w1f1(H,ΔH)+w2f2(Q)+w3f3(P,P sum )+∈
[0145] In the target priority score calculation formula, f1, f2, and f3 are the water level priority score formula, the flow priority score formula, and the rainfall priority score formula respectively; w1, w2, and w3 are the weights of the water level priority score, the flow priority score, and the rainfall priority score respectively, and ∈ is an adjustment factor.
[0146] In addition, it can be understood that the weights can be dynamically adjusted based on the volatility of historical data. Exemplarily, if the water level volatility is large in the past hour, then w1 is increased; if the cumulative rainfall is large in the past 24 hours, then w3 is increased. The adjustment factor is a noise adjustment factor for handling data anomalies.
[0147] Step S34 obtains a classification threshold, and classifies the data of the target priority score according to the classification threshold and the target priority score, to obtain first-priority data, second-priority data, and third-priority data;
[0148] It should be noted that the classification threshold refers to a standard value for distinguishing data priorities. The classification threshold can be determined by the current network state and is used to classify data into different priority categories. The threshold helps determine which data needs to be processed first.
[0149] Additionally, the first-priority data is the data with the highest target priority score. These data usually represent the most urgent and important information and need to be processed or responded to immediately. The second-priority data is the data with a medium score. These data need attention but are not as urgent as the first-priority data. The third-priority data is the data with a lower score. Usually, the importance of these data is relatively low and can be processed over a longer period. The high-priority data is immediately uploaded to the cloud platform, the medium-priority data enters the cache and waits to be uploaded when the network is idle, and the low-priority data is only stored locally for subsequent batch upload.
[0150] In a feasible implementation manner, step S34 may include: obtaining a classification threshold, and obtaining a first classification threshold, a second classification threshold, and a third classification threshold according to the classification threshold; when detecting that the current network state is network congestion, updating the first classification threshold and the second classification threshold; when the target priority score is greater than the updated first classification threshold, confirming the data of the target priority score as first-priority data; when the target priority score is less than the updated first classification threshold and greater than the updated second classification threshold, confirming the data of the target priority score as second-priority data; when the target priority score is less than the third classification threshold, confirming the data of the target priority score as third-priority data.
[0151] It is understandable that preset classification thresholds are obtained, which are used to classify data according to their priority scores. The classification thresholds are generally determined through historical data analysis, system requirements, and preset emergency response criteria, and are used to divide the priority levels of data. Specifically, the first classification threshold is used to distinguish the most urgent data, the second classification threshold is used to determine the second most urgent data, and the third classification threshold is used to identify data with lower priority. When the current network status is detected as network congestion, the system will dynamically update the first classification threshold and the second classification threshold according to the actual situation of the network bandwidth, aiming to ensure that even in the case of tight network resources, the most urgent data can still be transmitted first. This adjustment method is similar to dynamically changing the data processing strategy according to the current environment during the data encryption process to cope with different network conditions or system requirements. Once the classification thresholds are updated, the target priority scores will be compared with these updated thresholds to confirm the priority of each piece of data. Specifically, if the target priority score is greater than the updated first classification threshold, the data is identified as first-priority data and needs to be processed and uploaded immediately. If the target priority score is between the updated first and second classification thresholds, the data is second-priority data, and the data is stored in the cache and uploaded when the network is idle. Finally, if the target priority score is less than the third classification threshold, the data is considered third-priority data and is usually only stored locally for subsequent batch uploads.
[0152] Exemplarily, assume that after the priority scores of water level data, flow rate data, and rainfall data, the water level data has the highest priority score, the flow rate data is relatively important but slightly less urgent, and the rainfall data has the lowest priority score. When there is network congestion, the system will update the classification thresholds, and may increase the classification threshold of the data that was originally first-priority data, so that only when the priority score of the water level data is greater than the new first classification threshold will it be immediately uploaded. This mechanism ensures that in the case of tight network bandwidth, the most urgent data is transmitted first, and the flow rate data and rainfall data may be postponed for upload, reducing network pressure and maintaining the real-time transmission of high-priority data. In this way, the system can not only adjust the priority of data processing according to the real-time network status, but also improve the response efficiency and accuracy of the entire water conservancy monitoring system, ensure that key data is not delayed in processing, and thus maximize the timeliness and effectiveness of water conservancy management.
[0153] Step S35, perform secondary encryption on the first-priority data, the second-priority data, and the third-priority data to obtain encrypted classification data packets.
[0154] It is understandable that the first-priority data, second-priority data, and third-priority data are encrypted twice to obtain an encrypted classified data packet. The double encryption ensures the security of the data during transmission, preventing the data from being compromised even if the first encryption is cracked and analyzed. By encrypting data with different priorities, targeted protection can be provided according to the importance or urgency of the data.
[0155] Step S40: Transparently transmit the encrypted classified data packet to the target receiving platform so that the target receiving platform can perform water conservancy data analysis based on the encrypted classified data packet.
[0156] It should be noted that "transparent transmission" means that during data transmission, no modification or intervention is made to the data, and it is directly transmitted from the source end to the target end. Through transparent transmission, data can be transmitted to the receiving platform with the minimum delay and the fastest speed. Transparent transmission can ensure the real-time nature and integrity of the data, avoiding delays or data loss that may be caused during the intermediate processing.
[0157] In addition, the target receiving platform refers to a system or device that receives the transmitted data and performs further analysis and processing. The receiving platform processes and analyzes the received data to support functions such as water conservancy decision-making, early warning, and scheduling. The target receiving platform uses the encrypted classified data packet for water conservancy data analysis to provide necessary decision-making support for water conservancy management.
[0158] It is understandable that water conservancy data analysis refers to performing various processes, statistics, and modeling on the collected water conservancy data to obtain decision-making support information. For example, by analyzing data such as water level and flow rate, flood risks can be predicted and water resource scheduling can be optimized. Water conservancy data analysis is crucial for timely response to natural disasters and optimizing resource allocation. Through transparent transmission, it is ensured that the data can reach the receiving platform quickly and completely, avoiding delays that may be caused by intermediate links. The receiving platform will parse and analyze the data packet to support water conservancy-related decision-making and management work. This ensures the real-time nature of water conservancy data during transmission and guarantees that the receiving platform can respond quickly and make timely analysis and decisions.
[0159] This embodiment provides a method for transmitting water conservancy data. Through a comprehensive method of encrypting and classifying water conservancy data by priority, it solves the technical problems of insufficient security, inability to effectively classify and process data according to the importance and urgency of data, and low transmission efficiency faced by existing water conservancy data during transmission. Specifically, this embodiment first collects initial water conservancy data, including water conservancy environment data and water conservancy equipment data, to provide basic information for subsequent processing. The initial water conservancy data is encrypted using a random number filling strategy. By generating tail filling information and head filling information and combining symmetric encryption and hash encryption algorithms, the confidentiality, integrity, and unpredictability of the data during transmission are ensured. This embodiment classifies the encrypted water conservancy data according to the urgency and importance of the data through a priority classification mechanism, and performs secondary encryption, so as to preferentially ensure the transmission of key data under limited network resources, and further improve the security of the data. The encrypted classified data packets that have undergone priority classification and secondary encryption are transparently transmitted to the target receiving platform to ensure that the data can reach the receiving end quickly and completely and be used for water conservancy data analysis, providing timely and accurate decision-making support for water conservancy management.
[0160] Based on the first embodiment of this application, in the second embodiment of this application, the same or similar content as the above-mentioned embodiment one can be referred to the above introduction and will not be repeated hereinafter. On this basis, please refer to Figure 3 , step S40 of the water conservancy data transmission method further includes steps S41 to S43:
[0161] Step S41, obtaining first-priority data, second-priority data, and third-priority data according to the encrypted classified data packets;
[0162] It can be understood that according to the priority scores in the encrypted classified data packets, the first-priority data, the second-priority data, and the third-priority data are extracted. These data have been classified according to the urgency of factors such as water level, flow rate, and rainfall, and the security of the data during transmission is ensured through encryption. After the data is classified, the first-priority data is the most urgent and is usually related to risk warnings; the second-priority data is relatively more routine, and the third-priority data usually belongs to data that can be processed later.
[0163] Step S42, sorting the first-priority data, the second-priority data, and the third-priority data to obtain a transparent transmission queue;
[0164] It should be noted that the transparent transmission queue is a data queue sorted according to priority, which contains the encrypted classified data packets sorted according to priority. These data will be transmitted to the target receiving platform for processing in the order of priority. The purpose of the transparent transmission queue is to ensure that the most urgent data is transmitted and processed first.
[0165] Exemplarily, assume that the water level data highlights the warning water level, the flow rate data shows a significant increase in the water flow speed, and the rainfall data indicates heavy rainfall in the next 24 hours. The system will immediately calculate the priority scores of these data. The water level data will receive a high priority score due to its direct association with the flood risk and become the first priority data, which is immediately uploaded to the cloud platform for the decision support system to carry out an emergency response. The flow rate data is the second. Although it also reflects the change in the reservoir state, it is slightly slower compared to the water level data. Therefore, it is classified as the second priority data and temporarily stored in the cache, waiting to be uploaded when the network is idle so as not to interrupt the processing of more important data. Although the rainfall data is important, since the current precipitation does not exceed the warning level, it receives a lower priority score and becomes the third priority data, which is only stored locally and will be uploaded in batches when the network is idle. In this process, the first priority data is uploaded immediately to ensure that the most urgent data can be immediately responded to and processed. The second priority data enters the queue and waits for the appropriate time to be transmitted, while the third priority data remains stored locally temporarily to ensure that the network bandwidth is preferentially used for transmitting critical data. Through this non-linear priority classification algorithm, the water conservancy project can efficiently and intelligently manage data, ensuring that in case of an emergency, key data such as the water level can be preferentially transmitted and processed, while the relatively conventional data does not affect the emergency response.
[0166] Step S43, transparently transmit the transparent transmission queue to the target receiving platform, so that the target receiving platform performs water conservancy data analysis based on the encrypted classification data packets in the transparent transmission queue.
[0167] It can be understood that the sorted transparent transmission queue is transmitted to the target receiving platform. The transparent transmission queue contains the data that has been sorted by priority. The receiving platform will directly receive and analyze these data without intermediate modification. Through transparent transmission, the data can be quickly transmitted to the target receiving platform, reducing the delay that may be caused by intermediate links. The receiving platform performs water conservancy data analysis based on the encrypted classification data packets in the transparent transmission queue and makes real-time decisions.
[0168] This embodiment provides a method for transmitting water conservancy data transparently. By introducing a priority sorting and transparent transmission queue mechanism, the transmission and processing process of water conservancy data is further optimized. By extracting data with different priorities from the encrypted classified data packets and sorting them according to their urgency to form a transparent transmission queue, it solves the technical problems in the prior art such as the lack of targeted scheduling for water conservancy data transmission, the inability to effectively distinguish the importance of data, and the large data transmission delay in complex network environments. This mechanism ensures that under limited network resources, the data with the highest priority can be uploaded immediately and respond quickly, the data with the second highest priority can be transmitted in a timely manner when the network is idle, and the data with the third highest priority is cached locally and waits for batch upload, avoiding the interference of low-priority data on the transmission of critical data when the network is congested. Finally, the sorted transparent transmission queue is directly transmitted transparently to the target receiving platform, reducing the delay that may be introduced by intermediate processing links, ensuring that the receiving platform can perform water conservancy data analysis based on accurate and timely encrypted classified data packets, and providing more efficient and reliable decision-making support for water conservancy management. Through this optimized data transmission and processing method, the efficiency and real-time performance of water conservancy data transmission are significantly improved, the response ability of the water conservancy system in dealing with emergencies is enhanced, and at the same time, the security and integrity of the data are further guaranteed, providing more powerful technical support for water conservancy informatization management.
[0169] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the water conservancy data transparent transmission method of this application. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.
[0170] This application also provides a water conservancy data transparent transmission device. Please refer to Figure 4 , the water conservancy data transparent transmission device includes:
[0171] An acquisition module 10, configured to acquire initial water conservancy data according to water conservancy environment data and water conservancy equipment data;
[0172] An encryption module 20, configured to encrypt the initial water conservancy data according to a random number filling strategy to obtain an encrypted water conservancy data packet;
[0173] A classification module 30, configured to perform priority classification and secondary encryption on the encrypted water conservancy data packet to obtain an encrypted classified data packet;
[0174] A transparent transmission module 40, configured to transparently transmit the encrypted classified data packet to a target receiving platform, so that the target receiving platform performs water conservancy data analysis based on the encrypted classified data packet.
[0175] The water conservancy data transparent transmission device provided by this application adopts the water conservancy data transparent transmission method in the above-mentioned embodiment, and can solve the technical problems of insufficient data transmission security and real-time reliability in the water conservancy monitoring system. Compared with the prior art, the beneficial effects of the water conservancy data transparent transmission device provided by this application are the same as those of the water conservancy data transparent transmission method provided by the above-mentioned embodiment, and other technical features in the water conservancy data transparent transmission device are the same as the features disclosed in the method of the above-mentioned embodiment, which will not be elaborated here.
[0176] In one embodiment, the encryption module 20 is further configured to generate random padding information according to a random padding strategy to obtain tail padding information and head padding information; add the tail padding information to the tail of the initial water conservancy data; encrypt the initial water conservancy data and the tail padding information according to a symmetric encryption algorithm to obtain initial encrypted data; add the head padding information to the head of the initial encrypted data to obtain adjusted encrypted data; calculate an integrity check value of the adjusted encrypted data and an integrity key according to a hash encryption algorithm; obtain target encrypted data according to the adjusted encrypted data and the integrity check value, and obtain an encrypted water conservancy data packet according to the target encrypted data.
[0177] In one embodiment, the classification module 30 is further configured to decrypt the encrypted water conservancy data packet to obtain decrypted water conservancy data; perform integrity verification and normalization processing on the decrypted water conservancy data to obtain preprocessed water conservancy data; calculate a target priority score of the preprocessed water conservancy data; obtain a classification threshold, and classify the data of the target priority score according to the classification threshold and the target priority score to obtain first-priority data, second-priority data, and third-priority data; perform secondary encryption on the first-priority data, the second-priority data, and the third-priority data to obtain encrypted classification data packets.
[0178] In one embodiment, the classification module 30 is further configured to obtain an integrity key; obtain adjusted encrypted data and an integrity check value according to the encrypted water conservancy data packet; perform integrity calculation according to the adjusted encrypted data and the integrity key to obtain an integrity calculation value; when the integrity calculation value is the same as the integrity check value, obtain initial encrypted data according to the adjusted encrypted data; perform symmetric decryption on the initial encrypted data to obtain decrypted water conservancy data.
[0179] In one embodiment, the classification module 30 is further configured to calculate a water level priority score based on the water level value, the preset warning water level value, the water level priority coefficient, and the water level change rate priority coefficient of the preprocessed water conservancy data; calculate a flow priority score based on the instantaneous flow rate and the flow priority coefficient of the preprocessed water conservancy data; calculate a rainfall priority score based on the rainfall amount, the cumulative rainfall amount, and the rainfall priority coefficient of the preprocessed water conservancy data; and calculate a target priority score based on the water level priority score, the flow priority score, and the rainfall priority score.
[0180] In one embodiment, the classification module 30 is further configured to obtain classification thresholds, and obtain a first classification threshold, a second classification threshold, and a third classification threshold based on the classification thresholds; update the first classification threshold and the second classification threshold when it is detected that the current network state is network congestion; confirm that the data of the target priority score is first-priority data when the target priority score is greater than the updated first classification threshold; confirm that the data of the target priority score is second-priority data when the target priority score is less than the updated first classification threshold and greater than the updated second classification threshold; and confirm that the data of the target priority score is third-priority data when the target priority score is less than the third classification threshold.
[0181] In one embodiment, the transparent transmission module 40 is further configured to obtain first-priority data, second-priority data, and third-priority data based on the encrypted classification data packet; sort the first-priority data, the second-priority data, and the third-priority data to obtain a transparent transmission queue; and transparently transmit the transparent transmission queue to a target receiving platform, so that the target receiving platform performs water conservancy data analysis based on the encrypted classification data packet in the transparent transmission queue.
[0182] The present application provides a water conservancy data transparent transmission device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the water conservancy data transparent transmission method in the first embodiment above.
[0183] Next, refer to Figure 5, which shows a schematic structural diagram of a water conservancy data transparent transmission device suitable for implementing the embodiments of the present application. The water conservancy data transparent transmission device in the embodiments of the present application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistant), PADs (Portable Application Description), PMPs (Portable Media Player), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The shown water conservancy data transparent transmission device is merely an example and should not impose any limitations on the functions and usage scope of the embodiments of the present application.
[0184] As Figure 5 shown, the water conservancy data transparent transmission device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the ROM (Read Only Memory) 1002 or the program loaded from the storage device 1003 into the RAM (Random Access Memory) 1004. In the RAM 1004, various programs and data required for the operation of the water conservancy data transparent transmission device are also stored. The processing device 1001, the ROM 1002, and the RAM 1004 are connected to each other through a bus 1005. The input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the water conservancy data transparent transmission device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a water conservancy data transparent transmission device with various systems, it should be understood that it is not required to implement or have all the shown systems. Instead, more or fewer systems may be implemented or had.
[0185] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product that includes a computer program carried on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by a processing device 1001, the above functions defined in the methods of the embodiments disclosed in the present application are executed.
[0186] The water conservancy data transparent transmission device provided by the present application adopts the water conservancy data transparent transmission method in the above embodiments, and can solve the technical problems of insufficient data transmission security and real-time reliability in the water conservancy monitoring system. Compared with the prior art, the beneficial effects of the water conservancy data transparent transmission device provided by the present application are the same as those of the water conservancy data transparent transmission method provided by the above embodiments, and other technical features in the water conservancy data transparent transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be elaborated here.
[0187] It should be understood that each part disclosed in the present application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.
[0188] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should all be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
[0189] The present application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the water conservancy data transparent transmission method in the above embodiments.
[0190] The computer-readable storage medium provided by the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or components, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM (Random Access Memory), ROM (Read Only Memory), EPROM (Erasable Programmable Read Only Memory or flash memory), optical fibers, CD-ROM (Compact Disk-Read Only Memory), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0191] The above computer-readable storage medium may be included in the water conservancy data transparent transmission device; or it may exist independently and not be assembled into the water conservancy data transparent transmission device.
[0192] The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by the water conservancy data transparent transmission device, the water conservancy data transparent transmission device is caused to: obtain initial water conservancy data according to water conservancy environment data and water conservancy device data; encrypt the initial water conservancy data according to a random number filling strategy to obtain an encrypted water conservancy data packet; perform priority classification and secondary encryption on the encrypted water conservancy data packet to obtain an encrypted classified data packet; and transmit the encrypted classified data packet to a target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classified data packet.
[0193] Computer program code for performing the operations of this application can be written in one or more programming languages or combinations thereof. The above-mentioned programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a LAN (Local Area Network) or a WAN (Wide Area Network), or it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).
[0194] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of the code, and this module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than that marked in the accompanying drawings. For example, two consecutively represented blocks may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and / or flowchart, as well as the combination of blocks in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system for performing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.
[0195] The modules described in the embodiments of this application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation on the unit itself in some cases.
[0196] The readable storage medium provided by this application is a computer-readable storage medium. The computer-readable storage medium stores computer-readable program instructions (i.e., computer programs) for performing the above-mentioned water conservancy data transmission method, and can solve the technical problems of insufficient data transmission security and real-time reliability in the water conservancy monitoring system. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by this application are the same as those of the water conservancy data transmission method provided in the above embodiments, and will not be elaborated here.
[0197] The present application also provides a computer program product, including a computer program which, when executed by a processor, implements the steps of the water conservancy data transparent transmission method as described above.
[0198] The computer program product provided by the present application can solve the technical problems of insufficient data transmission security and real-time reliability in the water conservancy monitoring system. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as those of the water conservancy data transparent transmission method provided by the above embodiments, and will not be elaborated herein.
[0199] The above are only partial embodiments of the present application, and thus do not limit the patent scope of the present application. Any equivalent structural transformation made under the technical concept of the present application by using the content of the specification and drawings of the present application, or any direct / indirect application in other related technical fields, is included in the patent protection scope of the present application.
Claims
1. A water conservancy data transparent transmission method, characterized in that, The method includes: Obtaining initial water conservancy data according to water conservancy environment data and water conservancy equipment data; Encrypting the initial water conservancy data according to a random number filling strategy to obtain an encrypted water conservancy data packet; Performing priority classification and secondary encryption on the encrypted water conservancy data packet to obtain an encrypted classification data packet; Transparently transmitting the encrypted classification data packet to a target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classification data packet.
2. The method according to claim 1, characterized in that The step of encrypting the initial water conservancy data according to a random filling strategy to obtain an encrypted water conservancy data packet includes: Generating random filling information according to a random filling strategy to obtain tail filling information and head filling information; Adding the tail filling information to the tail of the initial water conservancy data; Encrypting the initial water conservancy data and the tail filling information according to a symmetric encryption algorithm to obtain initial encrypted data; Adding the head filling information to the head of the initial encrypted data to obtain adjusted encrypted data; Calculating an integrity check value of the adjusted encrypted data and an integrity key according to a hash encryption algorithm; Obtaining target encrypted data according to the adjusted encrypted data and the integrity check value, and obtaining an encrypted water conservancy data packet according to the target encrypted data.
3. The method according to claim 1, characterized in that The step of performing priority classification and secondary encryption on the encrypted water conservancy data packet to obtain an encrypted classification data packet includes: Decrypting the encrypted water conservancy data packet to obtain decrypted water conservancy data; Performing integrity verification and normalization processing on the decrypted water conservancy data to obtain preprocessed water conservancy data; Calculating a target priority score of the preprocessed water conservancy data; Obtaining a classification threshold, and classifying the data of the target priority score according to the classification threshold and the target priority score to obtain first-priority data, second-priority data, and third-priority data; Performing secondary encryption on the first-priority data, the second-priority data, and the third-priority data to obtain an encrypted classification data packet.
4. The method according to claim 3, characterized in that The step of decrypting the encrypted water conservancy data packet to obtain decrypted water conservancy data includes: Obtaining an integrity key; Obtaining adjusted encrypted data and an integrity check value according to the encrypted water conservancy data packet; Performing integrity calculation according to the adjusted encrypted data and the integrity key to obtain an integrity calculation value; When the integrity calculation value is the same as the integrity check value, obtaining initial encrypted data according to the adjusted encrypted data; Performing symmetric decryption on the initial encrypted data to obtain decrypted water conservancy data.
5. The method according to claim 3, wherein The step of calculating a target priority score of the preprocessed water conservancy data includes: Calculating a water level priority score according to the water level value, a preset warning water level value, a water level priority coefficient, and a water level change rate priority coefficient of the preprocessed water conservancy data; Calculating a flow priority score according to the instantaneous flow rate and a flow priority coefficient of the preprocessed water conservancy data; Calculating a rainfall priority score according to the rainfall amount, the cumulative rainfall amount, and a rainfall priority coefficient of the preprocessed water conservancy data; Calculating a target priority score according to the water level priority score, the flow priority score, and the rainfall priority score.
6. The method according to claim 3, wherein The steps of obtaining a classification threshold and classifying the data of the target priority score according to the classification threshold and the target priority score to obtain first-priority data, second-priority data, and third-priority data include: Obtain a classification threshold, and obtain a first classification threshold, a second classification threshold, and a third classification threshold according to the classification threshold; When it is detected that the current network state is network congestion, update the first classification threshold and the second classification threshold; When the target priority score is greater than the updated first classification threshold, confirm that the data of the target priority score is first-priority data; When the target priority score is less than the updated first classification threshold and greater than the updated second classification threshold, confirm that the data of the target priority score is second-priority data; When the target priority score is less than the third classification threshold, confirm that the data of the target priority score is third-priority data.
7. The method according to claim 1, characterized in that, The step of transparently transmitting the encrypted classified data packet to a target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classified data packet includes: Obtain first-priority data, second-priority data, and third-priority data according to the encrypted classified data packet; Sort the first-priority data, the second-priority data, and the third-priority data to obtain a transparent transmission queue; Transparently transmit the transparent transmission queue to a target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classified data packet in the transparent transmission queue.
8. A water conservancy data transparent transmission device, characterized in that, The device includes: An acquisition module, configured to acquire initial water conservancy data according to water conservancy environment data and water conservancy equipment data; An encryption module, configured to encrypt the initial water conservancy data according to a random number filling strategy to obtain an encrypted water conservancy data packet; A classification module, configured to perform priority classification and secondary encryption on the encrypted water conservancy data packet to obtain an encrypted classified data packet; A transparent transmission module, configured to transparently transmit the encrypted classified data packet to a target receiving platform so that the target receiving platform performs water conservancy data analysis based on the encrypted classified data packet.
9. A water conservancy data transparent transmission device, characterized in that The device includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, where the computer program is configured to implement the steps of the water conservancy data transparent transmission method according to any one of claims 1 to 7.
10. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the water conservancy data transparent transmission method according to any one of claims 1 to 7.