A distributed storage method for intelligent network terminal data
Through the distributed storage method of intelligent network terminals, the power, processing power and data priority are used to select the transmission method, realizing the safe transmission and deduplication storage of data, solving the problem of data loss in complex environments and ensuring the integrity of the data. and task continuity, building an efficient and reliable data management system.
Patent Information
- Application Number
- CN202410782097.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-18
AI Technical Summary
In complex wild environments, smart terminal data is easily lost or damaged during transmission and storage, which affects situation control and real-time situation judgment. How to achieve safe and reliable transmission and storage of data is an urgent problem that needs to be solved.
Adopting a distributed storage method, the intelligent network terminal selects a data transmission method based on power, processing capacity and data priority, transmits the data to the command center through encryption and digital fingerprints, elects the squad leader node for verification and coding feedback, and selects the best among the nodes. Youbanzhang realizes data security, deduplication storage and integrity verification.
It achieves safe, reliable transmission and deduplication storage of intelligent network terminal data, ensures the integrity of data during transmission, improves transmission quality and task continuity, and builds an efficient and reliable distributed data management system.
Smart Images

Figure CN118353911B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of communications, and in particular relates to a distributed storage method for intelligent network terminal data. Background Art
[0002] Smart terminals can help individuals and teams in complex field environments to better distribute tasks, obtain information, and collect first-hand data from the front line. When a terminal is destroyed or cannot be recovered due to a fault, a lot of important information will be lost, and this data will often affect the grasp of the situation and the team's judgment of the real-time situation. Therefore, how to safely and reliably obtain data within the team is an urgent problem to be solved. Summary of the invention
[0003] In view of this, the present invention provides a distributed storage method for intelligent network terminal data, the method comprising:
[0004] The intelligent network terminal collects different types of data in a complex environment, determines the priority weights of the different types of data, and obtains the current power and processing capacity parameters of the intelligent network terminal;
[0005] The intelligent network terminal selects different data transmission modes according to the current power, processing capability parameters and priority weights of the different types of data, and sends the different types of data to other intelligent network terminals in the network according to the selected data transmission modes;
[0006] An intelligent network terminal is elected as a monitor node in the network, and the monitor node sends the different types of data to the command center server; the command center server decrypts and verifies the different types of data; when the monitor node is offline for a long time, a new monitor is selected according to a preset monitor election algorithm;
[0007] The command center server feeds back the decrypted and verified different types of data and the stored data packet codes of the different types of data to the intelligent network terminal; the intelligent network terminal deletes the corresponding local data packet according to the stored data packet code.
[0008] In particular, the different types of data include: first data and / or second data, the first data includes positioning data, mapping data and logs generated by the operation of the intelligent network terminal itself; the second data includes audio and video data of the intelligent network terminal.
[0009] In particular, the different data transmission modes include a first data transmission mode, which specifically includes:
[0010] Splitting and packaging the first data and / or the second data into a first data packet X according to a fixed size;
[0011] Add a fixed tag TAG at a specified position of the first data packet X to form a second data packet Y, and calculate a digital fingerprint value Y-sha256 of the second data packet Y;
[0012] After mutual trust authentication of the preset encryption code S, the symmetrically encrypted second data packet Y and its fingerprint Y-sha256 are transmitted in the network in TCP mode.
[0013] In particular, the different data transmission modes include a second data transmission mode, which specifically includes:
[0014] Extract feature vectors from the first data and / or the second data; set a feature vector integration model, perform weighted fusion on the feature vectors according to the vector integration model, and generate an integrated feature vector IF; encrypt and transmit the integrated feature vector IF; the receiver decrypts and restores the received feature vector IF to obtain the original feature vector.
[0015] In particular, the squad leader election algorithm includes: collecting the position coordinate vector of the intelligent network terminal i in a complex environment , velocity vector , terminal state vector and environmental condition vector As input vector; Intelligent network terminal i sets the desired position coordinate vector , velocity vector , terminal state vector and environmental condition vector as the expected vector; calculate the difference between the input vector and the expected vector to obtain a comprehensive score vector C, the formula is as follows:
[0016]
[0017] Among them, u and v are adjustment parameters; the intelligent network terminal with the largest comprehensive score vector C value is selected as the optimal squad leader node.
[0018] In particular, different data transmission methods are selected by the following formula:
[0019]
[0020] in, E Indicates the current power status of the intelligent network terminal. P Indicates the current processing capability of the intelligent network terminal. Ethres Indicates the power threshold. Pthres represents the processing capacity threshold, T 1 represents the priority weight of the first data, T2 represents the priority weight of the second data, E 1 indicates the power consumption estimation of the first data transmission mode, E 2 indicates the power consumption estimation of the second data transmission mode. P 1 indicates the first data transmission mode processing overhead estimation, P 2 represents the processing overhead estimation of the second data transmission mode, α represents the power state weight coefficient, which is used to adjust the influence of the current power state in the comprehensive score. The larger the α value, the greater the influence of the power state; β represents the processing capacity weight coefficient, which is used to adjust the influence of the current processing capacity in the comprehensive score. The larger the β value, the greater the influence of the processing capacity; γ represents the data priority weight coefficient, which is used to adjust the influence of the data priority in the comprehensive score. The larger the γ value, the greater the influence of the priority; δ represents the overhead estimation weight coefficient, which is used to adjust the influence of the transmission overhead estimation in the comprehensive score. The larger the δ value, the greater the influence of the overhead estimation; M represents the fusion calculation of multiple influencing factors to obtain a comprehensive score;
[0021] If M>1, a first data transmission mode is used for the first data and / or the second data; otherwise, a second data transmission mode is used for the first data and / or the second data.
[0022] Particularly, the first data and / or the second data are segmented and packaged into a first data packet X according to a fixed size, and the first data packet X is segmented and packaged every n seconds or every m bytes, where n and m are preset values greater than 0.
[0023] Beneficial Effects
[0024] The technical solution of the present invention realizes the safe and distributed transmission of intelligent network terminal data in complex environments, and adopts measures such as data packet form, digital fingerprint and encrypted transmission to ensure the safe and reliable transmission of data in the network.
[0025] The technical solution of the present invention realizes deduplication storage of intelligent network terminal data. Each node deletes local data after transmission is completed, avoiding data duplication and saving storage resources.
[0026] The technical solution of the present invention realizes the integrity verification of intelligent network terminal data during transmission, verifies whether the data has been tampered with or lost through fingerprint comparison, and improves the transmission quality.
[0027] The technical solution of the present invention realizes secure multi-point transmission based on node authentication. A preset encryption mechanism is used for mutual trust identification, and only authorized nodes can participate in data interaction.
[0028] The technical solution of the present invention realizes intelligent selection of the optimal squad leader node. Through a comprehensive scoring function, the parameters of each node are automatically calculated, and the best successor is effectively selected to ensure the continuation of the task.
[0029] Through the technical solution of the present invention, a complete process from data collection to storage is designed. Different modules are closely coordinated to build an efficient and reliable distributed data management system. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 This is a flow chart of the distributed storage method for intelligent network terminal data of the present invention;
[0031] Figure 2 It is a schematic diagram of distributed storage and data transmission of intelligent network terminal data in the present invention. DETAILED DESCRIPTION
[0032] The present invention is described in detail below with reference to the accompanying drawings and embodiments.
[0033] The present invention provides a distributed storage method for intelligent network terminal data, wherein the data transmission direction flow chart is as follows: Figure 1 As shown, the intelligent network terminal collects different types of data in a complex environment, determines the priority weights of different types of data, and obtains the current power and processing capacity parameters of the intelligent network terminal;
[0034] The intelligent network terminal collects different types of data in a complex environment, determines the priority weights of different types of data, and obtains the current power and processing capacity parameters of the intelligent network terminal;
[0035] The intelligent network terminal selects different data transmission modes according to the current power, processing capacity parameters and the priority weights of different types of data, and sends different types of data to other intelligent network terminals in the network according to the selected data transmission modes;
[0036] An intelligent network terminal is elected as the monitor node in the network, and the monitor node sends different types of data to the command center server; the command center server decrypts and verifies different types of data; when the monitor node is offline for a long time, a new monitor is selected according to the preset monitor election algorithm;
[0037] The command center server feeds back the decrypted and verified different types of data and the stored data packet codes of different types of data to the intelligent network terminal; the intelligent network terminal deletes the corresponding local data packet according to the stored data packet code.
[0038] The process of discovering online nodes (intelligent network terminals) within the team network is that the nodes that need to synchronize data will send UDP messages within the network. After receiving the UDP messages, other terminals will establish a TCP connection with the IP of the intelligent network terminal that sends the message. Other intelligent network terminals will establish a TCP server with the intelligent network terminal that sends the UDP message. Other intelligent network terminals will connect to the server as the client. After the connection is established, they will perform mutual trust authentication.
[0039] The different types of data include: first data and / or second data, the first data includes positioning data, mapping data and logs generated by the operation of the intelligent network terminal itself; the second data includes audio and video data of the intelligent network terminal.
[0040] Specifically, the different types of data collected in complex environments (such as audio and video data, positioning data, mapping data, etc., as well as the logs generated by the terminal's own operation) are divided and packaged every n (n can be set according to requirements, n is a preset value greater than 0) seconds or m bytes (m can be set according to requirements, m is a preset value greater than 0) to form a data packet X. A fixed identifier TAG (where k is the TAG length) is added to the middle position (d, d+k) of the data packet X to form a data packet Y, and the fingerprint Y-sha256 of the data packet Y is calculated. In addition, the data code is formed according to the terminal id and the data packet sequence number. The data packet Y and the data code are transmitted together in the team network. After receiving the data packet, other team members store it in the KV type database in sequence. In the KV type database, the key is the data segment code and the value is the data packet Y. In order to ensure the order of the data packets, the data code is sequential. When combining the data, it is assembled according to this data code and the data is written to a file in the form of an IO stream. The data code is composed of the unique ID of the terminal, the sequence number of the data file transmitted this time (1-99999999), and the sequence number of the data packet of the part of the file transmitted this time (1-9999999). The sequence number is used up and recycled. When assembling the received file, all the packets corresponding to the data with the same ID and the same file sequence number are written to the same file according to the packet sequence number.
[0041] The different data transmission modes include a first data transmission mode, in which the first data and / or the second data are divided and packaged according to a fixed size to form a first data packet X;
[0042] Add a fixed tag TAG at a specified position of the first data packet X to form a second data packet Y, and calculate a digital fingerprint value Y-sha256 of the second data packet Y;
[0043] After mutual trust authentication of the preset encryption code S, the symmetrically encrypted second data packet Y and its fingerprint Y-sha256 are transmitted in the network in TCP mode.
[0044] The specific process of mutual trust authentication is that each team's terminal will proactively set up an encryption code S in advance. After TCP is established, the encryption code is encrypted by the mutual trust public key PublicKeyAuth, and sent to the server by the TCP client role. The server uses PrivateKeyAuth to decrypt and match the encryption code S to see if it is correct. If it is correct, a data packet is transmitted. This transmission is distributed in the terminal nodes within the team network in the form of jumps, such as Figure 2 As shown in the figure, for example, the information data of terminal A is first sent to terminal B, and terminal B is sent to terminal C, and so on. This can reduce the concurrent network bandwidth. In addition, important data can be temporarily saved in the distributed manner of the entire team to prevent data from being lost due to the loss of terminal connection when the data is stored in a single node.
[0045] exist Figure 2 In the process, the data packet Y and fingerprint Y-sha256 to be transmitted are symmetrically encrypted with the secret key KEY agreed with the command center before TCP transmission, and sent to all mutually trusted TCP clients via the TCP server of the above team network. (Data Y is encrypted with the command center's KEY and then transmitted. This data will be summarized in the command center. The command center will decrypt and combine it into a file with this KEY. Mutual trust is first, and after success, data is transmitted).
[0046] The different data transmission modes include a second data transmission mode including: extracting feature vectors from the first data and / or the second data, including mean, standard deviation, maximum value and minimum value as statistical features; setting a feature vector integration model, weightedly fusing feature vectors of different types of data according to the vector integration model, and generating an integrated feature vector IF; encrypting and transmitting the integrated feature vector IF; the receiving party decrypts and restores the received feature vector IF to obtain the original feature vector. Extracting feature vectors from the first data set and the second data set includes:
[0047] FX1=[avg(X1), std(X1), max(X1), min(X1)]
[0048] FX2=[avg(X2), std(X2), max(X2), min(X2)]
[0049] Where, FX1 is the eigenvector of the first data set X1, avg(X1) is the mean of the first data set X1, std(X1) is the standard deviation of the first data set X1, max(X1) is the maximum value in the first data set X1, and min(X1) is the minimum value in the first data set X1. FX2 is the eigenvector of the second data set X2, avg(X2) is the mean of the second data set X2, std(X2) is the standard deviation of the second data set X2, max(X2) is the maximum value in the second data set X2, and min(X2) is the minimum value in the second data set X2.
[0050] The feature vector integration model is: Among them, IF is the integrated feature vector, w is the correlation weight, is the eigenvector of the first data set X1 after standardization, is the feature vector of the second data set X2 after standardization.
[0051] The vector reduction model is:
[0052] ; Wherein, D is the restored eigenvector, max(FX1) is the maximum eigenvector value of the first data set X1, and min(FX1) is the minimum eigenvector value of the first data set X1.
[0053] The squad leader election algorithm includes: collecting the position coordinate vector of the intelligent network terminal i in a complex environment: , velocity vector , terminal state vector and environmental condition vector As input vector; intelligent network terminal i sets the desired position coordinate vector , velocity vector , state vector and environmental condition vector as the expected vector; calculate the difference between the input vector and the expected vector to obtain a comprehensive score vector C, the formula is as follows:
[0054]
[0055] Among them, u and v are adjustment parameters; the intelligent network terminal with the largest C value is selected as the optimal squad leader node to ensure the safe and distributed storage of the intelligent network terminal data.
[0056] Different data transmission methods are selected by the following formula:
[0057]
[0058] in, EIndicates the current power status of the intelligent network terminal. P Indicates the current processing capability of the intelligent network terminal. Ethres Indicates the power threshold. Pthres represents the processing capacity threshold, T 1 represents the priority weight of the first data, T 2 represents the priority weight of the second data, E 1 indicates the power consumption estimation of the first data transmission mode, E 2 indicates the power consumption estimation of the second data transmission mode. P 1 indicates the first data transmission mode processing overhead estimation, P 2 represents the processing overhead estimation of the second data transmission mode, α represents the power state weight coefficient, which is used to adjust the influence of the current power state in the comprehensive score. The larger the α value, the greater the influence of the power state; β represents the processing capacity weight coefficient, which is used to adjust the influence of the current processing capacity in the comprehensive score. The larger the β value, the greater the influence of the processing capacity; γ represents the data priority weight coefficient, which is used to adjust the influence of the data priority in the comprehensive score. The larger the γ value, the greater the influence of the priority; δ represents the overhead estimation weight coefficient, which is used to adjust the influence of the transmission overhead estimation in the comprehensive score. The larger the δ value, the greater the influence of the overhead estimation; E 1 represents the power consumption estimation of the first data transmission mode. When the first data transmission mode is adopted, the power consumption value of the intelligent network terminal is expected to be consumed, which can be modeled and estimated based on the data volume, encryption algorithm complexity, and network condition factors; E 2 represents the power consumption estimation of the second data transmission mode, which is the power consumption value that the intelligent network terminal is expected to consume when the second data transmission mode is adopted; it can be estimated by modeling based on factors such as data feature extraction, vector compression, and network conditions; P 1 represents the processing overhead estimation of the first data transmission mode. When the first data transmission mode is adopted, the processing capacity occupied by the intelligent network terminal is expected to be consumed, which can be estimated based on the encryption and decryption algorithm and the integrity verification calculation amount; P 2 represents the processing overhead estimation of the second data transmission mode. When the second data transmission mode is adopted, the processing capacity occupied by the intelligent network terminal is expected to be consumed. The amount of calculation can be estimated based on feature extraction, vector fusion, compression and decompression; M represents the fusion calculation of multiple influencing factors to obtain a comprehensive score;
[0059] If M>1, the first data transmission mode is used for the first and second data; otherwise, the second data transmission mode is used for the first and second data.
[0060] in, E1 represents the power consumption estimate of the first data transmission mode, which is the power consumption value that the node is expected to consume when the first data transmission mode (encryption + integrity check) is adopted. It can be modeled and estimated based on factors such as data volume, encryption algorithm complexity, and network conditions. E 2 represents the power consumption estimation of the second data transmission mode. When the second data transmission mode (compressed feature transmission) is used, the power consumption of the node is expected to be consumed. The estimation is modeled based on factors such as data feature extraction, vector compression, and network conditions. P 1 represents the estimated processing overhead of the first data transmission mode, which is the processing capacity that the node is expected to consume when the first data transmission mode is adopted. It can be estimated based on the calculation amount of encryption and decryption algorithms, integrity verification, etc. P 2 represents the processing overhead estimation of the second data transmission mode, which is the processing capacity that the node is expected to consume when the second data transmission mode is adopted. It can be estimated based on the computational amount of feature extraction, vector fusion, compression and decompression, etc.
[0061] These cost estimates usually require calculation or table lookup based on actual hardware conditions, algorithm complexity, data volume and other factors, and the establishment of corresponding models.
[0062] By reasonably setting these key parameters and adjustment coefficients, we can flexibly control the weights of various factors that affect transmission encryption decisions, so that the algorithm can adaptively select the optimal encryption transmission strategy according to actual conditions.
[0063] In summary, the above are only preferred embodiments of the present invention and are not intended to limit the protection scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0064] It is obvious to those skilled in the art that the embodiments of the present invention are not limited to the details of the above exemplary embodiments, and that the embodiments of the present invention can be implemented in other specific forms without departing from the spirit or basic features of the embodiments of the present invention. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the embodiments of the present invention is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the embodiments of the present invention. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units, modules or devices stated in the system, device or terminal claims can also be implemented by the same unit, module or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0065] Finally, it should be noted that the above implementation modes are only used to illustrate the technical solutions of the embodiments of the present invention and are not intended to limit them. Although the embodiments of the present invention have been described in detail with reference to the above preferred implementation modes, those skilled in the art should understand that the technical solutions of the embodiments of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A distributed storage method for intelligent network terminal data, characterized in that: The method includes: The intelligent network terminal collects different types of data in a complex environment, determines the priority weights of the different types of data, and obtains the current power and processing capacity parameters of the intelligent network terminal; The intelligent network terminal selects different data transmission modes according to the current power, processing capability parameters and priority weights of the different types of data, and sends the different types of data to other intelligent network terminals in the network according to the selected data transmission modes; An intelligent network terminal is elected as a monitor node in the network, and the monitor node sends the different types of data to the command center server; the command center server decrypts and verifies the different types of data; when the monitor node is offline for a long time, a new monitor is selected according to a preset monitor election algorithm; The command center server feeds back the decrypted and verified different types of data and the stored data packet encoding of the different types of data to the intelligent network terminal; The intelligent network terminal deletes the corresponding local data packet according to the stored data packet code; The different types of data include: first data and / or second data, the first data includes positioning data, mapping data and logs generated by the operation of the intelligent network terminal; the second data includes audio and video data of the intelligent network terminal; The different data transmission modes include a first data transmission mode, which specifically includes: Splitting and packaging the first data and / or the second data into a first data packet X according to a fixed size; Add a fixed tag TAG at a specified position of the first data packet X to form a second data packet Y, and calculate a digital fingerprint value Y-sha256 of the second data packet Y; After mutual trust authentication of the preset encryption code S, the symmetrically encrypted second data packet Y and its fingerprint Y-sha256 are transmitted in the network in TCP mode; The different data transmission modes include a second data transmission mode, which specifically includes: Extract feature vectors from the first data and / or the second data; set a feature vector integration model, perform weighted fusion on the feature vectors according to the vector integration model, and generate an integrated feature vector IF; encrypt and transmit the integrated feature vector IF; the receiving party decrypts and restores the received feature vector IF to obtain the original feature vector; The squad leader election algorithm includes: collecting the position coordinate vector of the intelligent network terminal i in a complex environment , velocity vector , terminal state vector and environmental condition vector As input vector; Intelligent network terminal i sets the desired position coordinate vector , velocity vector , terminal state vector and environmental condition vector as the expected vector; calculate the difference between the input vector and the expected vector to obtain a comprehensive score vector C, the formula is as follows: , Among them, u and v are adjustment parameters; the intelligent network terminal with the largest comprehensive score vector C value is selected as the optimal squad leader node.
2. The distributed storage method for intelligent network terminal data according to claim 1, characterized in that: Different data transmission methods are selected by the following formula: , in, E Indicates the current power status of the intelligent network terminal. P Indicates the current processing capability of the intelligent network terminal. Ethres Indicates the power threshold. Pthres represents the processing capacity threshold, T 1 represents the priority weight of the first data, T 2 represents the priority weight of the second data, E 1 indicates the power consumption estimation of the first data transmission mode, E 2 indicates the power consumption estimation of the second data transmission mode. P 1 indicates the first data transmission mode processing overhead estimation, P 2 represents the processing overhead estimation of the second data transmission mode, α represents the power state weight coefficient, which is used to adjust the influence of the current power state in the comprehensive score. The larger the α value, the greater the influence of the power state; β represents the processing capacity weight coefficient, which is used to adjust the influence of the current processing capacity in the comprehensive score. The larger the β value, the greater the influence of the processing capacity; γ represents the data priority weight coefficient, which is used to adjust the influence of the data priority in the comprehensive score. The larger the γ value, the greater the influence of the priority; δ represents the overhead estimation weight coefficient, which is used to adjust the influence of the transmission overhead estimation in the comprehensive score. The larger the δ value, the greater the influence of the overhead estimation; M represents the fusion calculation of multiple influencing factors to obtain a comprehensive score; If M>1, a first data transmission mode is used for the first data and / or the second data; otherwise, a second data transmission mode is used for the first data and / or the second data.
3. The distributed storage method for intelligent network terminal data according to claim 1, characterized in that: The first data and / or the second data are divided and packaged according to a fixed size to form a first data packet X, and the data is divided and packaged every n seconds or every m bytes to form the first data packet X, where n and m are preset values greater than 0.
Citation Information
Patent Citations
Equipment data transmission method of source network load storage system
CN116455595A
Method for realizing edge data storage and transmission at new energy power generation side and related device
CN117749800A
Distributed data encryption transmission system
CN117955749A
Multi-dimensional data secure transmission method and system based on Internet of Things
CN118138352A
Data transmission method, internet of things system, electronic device, and storage medium
WO2023142925A1
