# Dynamic Optimization of Government Data Transmission Based on Blockchain Technology

Authors: Sheng Peng; Linkai Zhu; Zhiming Cai; Wenjian Liu; Chunjiang He; Weikang Tang
Journal: Mobile Information Systems
 (2021)

---

## Abstract

With the development of terminal technology and the expansion of application fields, the Internet of Things’ application value and service requirements continue to increase. Efficient data transmission is a reliable guarantee for the development and application of the Internet of Things. Blockchain technology provides a solution for storing and delivering distributed data. On this basis, taking the Industrial Internet of Things as the research object, a blockchain-based data transmission optimization method was established. First, an undirected complete graph model is used to describe the network scene. A matrix grid model is used to replace the randomly distributed set of data nodes. Then, a double optimization method is proposed. We designed the mathematical description and modeling method of the lattice matching decision problem and designed the artificial neural network to find the optimal solution to the problem. Finally, an example is used to verify the government data transmission method’s technical performance and packet loss rate. It has achieved at least 20% and 30% improvements in optimizing the network life of static aggregation nodes and data transmission, respectively. While improving the robustness of the network, it also shows a stable advantage in terms of network energy efficiency indicators.


---

## Body

## 1. Introduction

The Internet of Things (IoT) and its terminal perception devices will significantly impact the development of human productivity. The National Intelligence Council has predicted IoT nodes will connect everything in our lives by 2025, such as food, parcels, furniture, and paper documents [1, 2]. It can be seen that IoT devices have strong penetration characteristics that can play an active role in daily life. It has a great possibility of becoming an economic growth point and provides real and productive technical power for the global economic recovery [3]. From a technical perspective, the role and impact of the IoT can be understood through radio frequency identification (RFID) and sensor technology. According to certain standards, the integrated positioning system and laser, infrared, and other sensing technologies are based on certain protocols through maturity or development [4]. The network architecture connects things closely related to human beings, shares the data and information therein, and finally realizes intelligent identification and management of everything in the world [5].The essence of IoT is to digitally collect useful information in the world’s entities and their environments, reliably transmit it through various heterogeneous networks, and finally use it in every aspect of life, scientific research, production, etc., to provide data support and decision-making systems [6]. The IoT technology has matured in recent years and has been applied in agricultural production, transportation, industrial control, smart grid, smart home, public safety, and many other fields. It can be seen that the Internet of Things represents an Internet information world that connects real things [7].In recent years, with the effective development of related technologies such as sensors, RFID tags, and the Internet of Things, the demand for wearable devices and other application fields has increased. The IoT has become one of today’s academic research fields and industrial manufacturing fields. It is a popular technology and will occupy an important position in the future new Internet world.The Internet of Things uses various sensing devices to connect human exploration and people and things at any time and any place in the range of activities through any network or service to provide massive cross-industry data services. Today, the Internet of Things has been widely used in transportation, health, and public utilities [8, 9]. In the huge and diverse network environment of the Internet of Things, the reliability of data aggregation has become the basis of the information services of the Internet of Things. The optimization of data transmission has an important role in promoting the data aggregation of the Internet of Things. This paper takes the Industrial Internet of Things as the research object. It establishes a data transmission optimization method based on the blockchain.The rest of the paper is organized as follows. In Section2, related work is studied followed by data transmission optimization in Section 3. The artificial neural network is given in Section 4, and verification of use cases is given in Section 5. Finally, Section 6 concludes the paper.


## 2. Related Work

In the following sections, detailed literature is studied in the context of the Internet of Things and blockchain technologies.


### 2.1. Internet of Things Technology

When the electronic tag passes through this area, it will be exciting. The energy formed by the induced current transmits the information stored in the electronic tag and transmits the information to read and write device to store information in a database or other applications for processing [10]. The schematic diagram of typical IoT structure technology is shown in Figure 1.Figure 1
Schematic diagram of typical IoT structure technology.The description language for specific entity information is PML, and the services described by PML constitute EPC IS. Hence, ONS needs to provide automated network data services [11, 12]. The basic architecture of low-power IoT data transmission is shown in Figure 2. The block structure designed in this paper uses hash pointers to ensure the integrity of the stored data and is difficult to tamper with. In addition to maintaining a pointer to the previous block unit, the hash pointer forms a chain structure. At the same time, the hash pointer data structure also maintains the hash value of the previous block data through the hash function. In this way, the chain structure of the blockchain ensures that the stored IoT public key data are difficult to tamper.Figure 2
Schematic diagram of the basic architecture of low-power IoT data transmission.


### 2.2. Blockchain Technology

Blockchain technology uses a chain structure to record the entire transaction information and cannot be tampered with, which has a strong role in increasing trust [13]. This technology has a natural match for the transaction-based financial characteristics of the supply chain. Since the introduction of blockchain technology, the application of blockchain technology to the supply chain has accounted for the highest proportion of various financial transaction studies. Related research mainly believes that the blockchain will expand the coverage of the supply chain, reduce the financing burden of SMEs, and promote the securitization of financial assets in the supply chain.


## 2.1. Internet of Things Technology

When the electronic tag passes through this area, it will be exciting. The energy formed by the induced current transmits the information stored in the electronic tag and transmits the information to read and write device to store information in a database or other applications for processing [10]. The schematic diagram of typical IoT structure technology is shown in Figure 1.Figure 1
Schematic diagram of typical IoT structure technology.The description language for specific entity information is PML, and the services described by PML constitute EPC IS. Hence, ONS needs to provide automated network data services [11, 12]. The basic architecture of low-power IoT data transmission is shown in Figure 2. The block structure designed in this paper uses hash pointers to ensure the integrity of the stored data and is difficult to tamper with. In addition to maintaining a pointer to the previous block unit, the hash pointer forms a chain structure. At the same time, the hash pointer data structure also maintains the hash value of the previous block data through the hash function. In this way, the chain structure of the blockchain ensures that the stored IoT public key data are difficult to tamper.Figure 2
Schematic diagram of the basic architecture of low-power IoT data transmission.


## 2.2. Blockchain Technology

Blockchain technology uses a chain structure to record the entire transaction information and cannot be tampered with, which has a strong role in increasing trust [13]. This technology has a natural match for the transaction-based financial characteristics of the supply chain. Since the introduction of blockchain technology, the application of blockchain technology to the supply chain has accounted for the highest proportion of various financial transaction studies. Related research mainly believes that the blockchain will expand the coverage of the supply chain, reduce the financing burden of SMEs, and promote the securitization of financial assets in the supply chain.


## 3. Data Transmission Optimization

The latest research shows that mobile aggregation nodes can effectively improve the energy efficiency performance of IoT data aggregation. However, environmental or human factors may affect the sink node, and the movement trajectory is restricted. Such mobile convergence nodes are called trajectory-limited mobile convergence nodes [14, 15]. The influence of trajectory-limited mobile convergence nodes on energy efficiency has a high research value. The data transmission optimization problem of rail-type mobile aggregation is studied. The literature researches the optimization problem of highway-type mobile aggregation data transmission. In mountainous areas, rivers, tunnels, smart grid inspection scenarios, or in data aggregation application scenarios restricted by flight restriction and no-fly conditions, the aggregation node may be affected by the natural environment or human factors. They may also move along a fixed trajectory and aggregate data [16].In the scenario where the trajectory of the mobile convergence node is limited, the energy consumption of the node has a hierarchical characteristic and forms multiple hot spots. Among them, the data nodes around the trajectory have higher requirements for data transmission optimization because they need to relay the information of all data nodes. The randomness of deployment causes uneven energy consumption of all data nodes, forming scattered hot spots. Therefore, in scenarios where the trajectory of mobile convergence nodes is limited, the joint energy efficiency of the nodes needs to be optimized from the above two levels [17]. This section studies the impact of trajectory-constrained mobile aggregation nodes on the energy efficiency of the network. It establishes an energy consumption model through graph theory analysis and refines and models dual data transmission optimization problems. The proposed design is based on an artificial neural network to search for the optimal problem solution. The solution is achieved using a route discovery algorithm based on the grid model shortest path for data reporting.


### 3.1. Basic Network Model

This section mainly models and analyzes the data aggregation network and further describes and analyzes the network model through the basic idea of graph theory. On this basis, the network node energy consumption is modeled and analyzed [17].This figure is used to represent the data aggregation scenario of the IoT. In this figure,n static data nodes are randomly deployed. The motion trajectory of the mobile convergence node is pm [18]. Na nodes that can perform single-hop communication with Sm nodes on both sides of pm are also called static sink nodes. The schematic diagram of the IoT network model in the scenario of a mobile aggregation node is shown in Figure 3.Figure 3
Schematic diagram of the IoT network model in the scenario of a mobile data aggregation.In addition, the initial energy of the Na and S nodes is E. The S node has sufficient energy and computing power, and it moves back and forth at a constant speed at a rate of V along with pm [18]. When the s node reaches an endpoint of pm, the s node immediately turns around and travels to the other endpoint of pm at the same rate. The maximum communication distance of all nodes, including s nodes, is given in [18, 19]. Each node has sufficient storage space to store routing information and cache information data. In addition, all nodes can obtain and save their location information when the deployment is complete. Since all nodes are stationary, the location information is obtained only once the deployment is completed. The energy consumed by the positioning is negligible.


### 3.2. Description and Analysis of Grid Network Model

Research shows that graph theory can facilitate network model analysis. From the perspective of graph theory, the topology of the Internet of Things or WSN has a high similarity with the relationship between the vertices in the basic concept of graph theory. The network nodes can be regarded as the vertex set in the graph object through the reasonable graphical description. The connectivity between the nodes is abstracted as the graph edge set [20]. The data aggregation behavior and network communication behavior through vertices and edges of the graph simplify the network model. It also reduces the computational complexity and further digs into the network model through the relationships between vertices-vertices and vertices-edges. A hierarchical relationship to the connection between nodes is added [21]. The schematic diagram of the IoT network model based on graph theory analysis is shown in Figure 4 [22].Figure 4
Schematic diagram of IoT network model based on graph theory analysis.After the graph is divided, Nd nodes with similar position attributes are divided into the same square. The data packets reported by the nodes in the node grid can all reach a specific S node grid through the same path [23]. Therefore, nodes in these same square are considered one entity, converting the described strategy of matching nodes with S nodes into square matching problems. Then, use g to denote the kth Na node square matching gas [24]. According to the basic concept of graph theory, the vertices V and E constitute G. In this system model, the vertex v is the node in the grid, and the edge E represents the connectivity between the nodes in the grid. Each pair of different vertices in G has an edge connected and is bidirectional. Hence, G is a complete undirected graph. Through the graph division operation, the computational complexity of the node’s matching problem in the network decreases [18].


## 3.1. Basic Network Model

This section mainly models and analyzes the data aggregation network and further describes and analyzes the network model through the basic idea of graph theory. On this basis, the network node energy consumption is modeled and analyzed [17].This figure is used to represent the data aggregation scenario of the IoT. In this figure,n static data nodes are randomly deployed. The motion trajectory of the mobile convergence node is pm [18]. Na nodes that can perform single-hop communication with Sm nodes on both sides of pm are also called static sink nodes. The schematic diagram of the IoT network model in the scenario of a mobile aggregation node is shown in Figure 3.Figure 3
Schematic diagram of the IoT network model in the scenario of a mobile data aggregation.In addition, the initial energy of the Na and S nodes is E. The S node has sufficient energy and computing power, and it moves back and forth at a constant speed at a rate of V along with pm [18]. When the s node reaches an endpoint of pm, the s node immediately turns around and travels to the other endpoint of pm at the same rate. The maximum communication distance of all nodes, including s nodes, is given in [18, 19]. Each node has sufficient storage space to store routing information and cache information data. In addition, all nodes can obtain and save their location information when the deployment is complete. Since all nodes are stationary, the location information is obtained only once the deployment is completed. The energy consumed by the positioning is negligible.


## 3.2. Description and Analysis of Grid Network Model

Research shows that graph theory can facilitate network model analysis. From the perspective of graph theory, the topology of the Internet of Things or WSN has a high similarity with the relationship between the vertices in the basic concept of graph theory. The network nodes can be regarded as the vertex set in the graph object through the reasonable graphical description. The connectivity between the nodes is abstracted as the graph edge set [20]. The data aggregation behavior and network communication behavior through vertices and edges of the graph simplify the network model. It also reduces the computational complexity and further digs into the network model through the relationships between vertices-vertices and vertices-edges. A hierarchical relationship to the connection between nodes is added [21]. The schematic diagram of the IoT network model based on graph theory analysis is shown in Figure 4 [22].Figure 4
Schematic diagram of IoT network model based on graph theory analysis.After the graph is divided, Nd nodes with similar position attributes are divided into the same square. The data packets reported by the nodes in the node grid can all reach a specific S node grid through the same path [23]. Therefore, nodes in these same square are considered one entity, converting the described strategy of matching nodes with S nodes into square matching problems. Then, use g to denote the kth Na node square matching gas [24]. According to the basic concept of graph theory, the vertices V and E constitute G. In this system model, the vertex v is the node in the grid, and the edge E represents the connectivity between the nodes in the grid. Each pair of different vertices in G has an edge connected and is bidirectional. Hence, G is a complete undirected graph. Through the graph division operation, the computational complexity of the node’s matching problem in the network decreases [18].


## 4. Artificial Neural Network

The error backpropagation algorithm is a multilevel feed-forward network. It has become the most widely used artificial neural network learning algorithm. It has proposed many improvements to the neural network algorithm [25]. The relationship between nodes and the connectivity between nodes increase the hierarchical relationship. [26]. By adjusting the weight coefficients and thresholds of the input layer and the hidden layer, the hidden layer and the output layer, the training process can reduce the training error along the gradient direction. It forms the threshold set when the error is the smallest and completes the training [27].


### 4.1. Feed-Forward Calculation

The neural network must train the network before use. Part of the sample data is used for learning and training, and the other part is used for prediction. Assuming that there are N samples used as learning sample data, the input information and output information of a certain sample are selected for training the network first, and the output information is obtained after training [28]. This process can be expressed with a formula, and the information of the hidden layer can be obtained first:(1)netpj=netj=∑i=1Mωijoi.The output of the first node is(2)oj=fnetj.Use sigmoid function as activation function.(3)fnetj=11+exp−netj−θj.The differential function of equation (3) is(4)f′netj=fnetj1−fnetj.By adjusting the value of the weighting coefficient of the hidden layer, the information of the first node obtained by the hidden layer is transmitted to the corresponding node of the next layer. The input value of the output layer can be expressed as [29](5)netk=∑j−1qωjkoj,where q is the number of nodes in the hidden layer. Therefore, the actual output data of the first neuron in the output layer are(6)ok=fnetk.If there is a difference between the output result of the network training and the target value, the error obtained by the training is passed back from the output layer back. Through a series of corrections, the output information on each node in the weight coefficient is corrected, so that the final output result is infinitely close to the target value [30]. Following the same steps, train N learning samples to complete the learning process [31].


### 4.2. Weight Adjustment

The error function of the sample can be expressed as(7)Ep=12∑k=1Ldpk−οpk2.The system’s average error function is(8)Ep=12p∑p=1N∑k=1Ldpk−οpk2.The purpose of neural network learning is to continuously adjust the weighting coefficients by finding the shortest path to reduce the error to reach the optimal value of the weighting coefficients [32].Equation (8) can be simply expressed as(9)E=12∑k=1Ldk−οk2.


### 4.3. Adjustment of Output Layer Weight Coefficient

In order to make the network output value close to the target value and minimize the errorE, the weighting coefficient is adjusted according to the gradient algorithm:(10)Δωjk=−η∂Ε∂ωjk,where η is the learning rate.Therefore, the correction formula for the weighting coefficient of any neuron in the output layer is(11)Δωjk=ηdk−okf′netkoj=ηδkoj.


## 4.1. Feed-Forward Calculation

The neural network must train the network before use. Part of the sample data is used for learning and training, and the other part is used for prediction. Assuming that there are N samples used as learning sample data, the input information and output information of a certain sample are selected for training the network first, and the output information is obtained after training [28]. This process can be expressed with a formula, and the information of the hidden layer can be obtained first:(1)netpj=netj=∑i=1Mωijoi.The output of the first node is(2)oj=fnetj.Use sigmoid function as activation function.(3)fnetj=11+exp−netj−θj.The differential function of equation (3) is(4)f′netj=fnetj1−fnetj.By adjusting the value of the weighting coefficient of the hidden layer, the information of the first node obtained by the hidden layer is transmitted to the corresponding node of the next layer. The input value of the output layer can be expressed as [29](5)netk=∑j−1qωjkoj,where q is the number of nodes in the hidden layer. Therefore, the actual output data of the first neuron in the output layer are(6)ok=fnetk.If there is a difference between the output result of the network training and the target value, the error obtained by the training is passed back from the output layer back. Through a series of corrections, the output information on each node in the weight coefficient is corrected, so that the final output result is infinitely close to the target value [30]. Following the same steps, train N learning samples to complete the learning process [31].


## 4.2. Weight Adjustment

The error function of the sample can be expressed as(7)Ep=12∑k=1Ldpk−οpk2.The system’s average error function is(8)Ep=12p∑p=1N∑k=1Ldpk−οpk2.The purpose of neural network learning is to continuously adjust the weighting coefficients by finding the shortest path to reduce the error to reach the optimal value of the weighting coefficients [32].Equation (8) can be simply expressed as(9)E=12∑k=1Ldk−οk2.


## 4.3. Adjustment of Output Layer Weight Coefficient

In order to make the network output value close to the target value and minimize the errorE, the weighting coefficient is adjusted according to the gradient algorithm:(10)Δωjk=−η∂Ε∂ωjk,where η is the learning rate.Therefore, the correction formula for the weighting coefficient of any neuron in the output layer is(11)Δωjk=ηdk−okf′netkoj=ηδkoj.


## 5. Verification of Actual Use Cases for Government Data Transmission

### 5.1. Simulation Parameter Setting

In this section, the data transmission optimization method proposed above will be simulated and verified. The host uses an Intel Core i7 64 m dual-core processor and 8 GB running memory. In the simulation program, the wireless transmission standard is WiFi, the physical layer standard is 80211b, and the MAC type is Ashco. The wireless propagation delay model is the constant speed propagation delay model. The propagation loss model is the range propagation loss model. In the subsequent simulation verification, the same system environment and wireless transmission model are used. In the simulation, this paper’s data transmission optimization model will be compared with other methods.


### 5.2. Data Test

A large amount of lost data is accumulated, and the real-time resuming cannot be continued. Figure5 shows the test results of the packet loss rate error of Industrial Internet of Things data transmission. Figure 6 shows the result of the data transmission response error of the Industrial IoT.Figure 5
Industrial IoT data transmission packet loss rate error test results.Figure 6
Industrial IoT data transmission response error results.Through the performance test of the above indicators, the relevant results are shown in Figures6 and 7. According to the analysis of the test results, the test standards for related indicators have already met the requirements and experimental settings for dynamic optimization of Industrial Internet of Things data transmission. Next, we will conduct further in-depth tests for other indicators. The above has tested the encryption and decryption of communication data and the blockchainization of stored data of the entire security architecture. The public key data of the IoT communication partner were tested for asymmetric encryption and decryption to achieve the expected results. The generation of the symmetric session key between IoT devices was also tested and finally generated by both IoT communication parties. The session symmetric key is the same for the blockchainization of stored data. It mainly tests the consensus process of the Raft cluster and the query process of blockchain data.Figure 7
Industria Internet of Things data transmission performance comparison: Standard 1.


### 5.3. Comparison of Government Affairs Data Transmission Technology

In order to verify the reliability of the parameters, the data transmission optimization technology is used. The test tool used in the test scenario of the result page is a user cycle tool, and related data are generated from this. The following experimental results are obtained, which are shown in Figures7 and 8. Figure 7 compares the data transmission performance of the Industrial IoT at Standard 1.Figure 8
Industrial IoT data transmission performance comparison: Standard 2.Figure8 shows the comparison result of the data transmission performance of the Industrial IoT at Standard 2.It can be seen from Figures7 and 8 that the data transmission performance of the Industrial Internet of Things meets the relevant requirements. This paper has achieved a better performance advantage under the condition of Standard 2. This model is conducive to the relative performance and the efficiency of the actual application process. Figure 8 shows a comparison of the data transmission performance of the Industrial Internet of Things in the case of Standard 2. This comparison also verifies the applicability of the model in this article under different standards. For in-depth exploration in the future, the model established in this article provides a better reference. In general, the above experimental tests meet the security architecture requirements in terms of data communication encryption and data storage reliability. However, the random cycle value setting for Raft cluster heartbeat detection needs to be further improved in future practice. When the performance of the physical device allows, the random cycle value should be reduced as much as possible, which is more in line with the real-time nature of IoT communication.


## 5.1. Simulation Parameter Setting

In this section, the data transmission optimization method proposed above will be simulated and verified. The host uses an Intel Core i7 64 m dual-core processor and 8 GB running memory. In the simulation program, the wireless transmission standard is WiFi, the physical layer standard is 80211b, and the MAC type is Ashco. The wireless propagation delay model is the constant speed propagation delay model. The propagation loss model is the range propagation loss model. In the subsequent simulation verification, the same system environment and wireless transmission model are used. In the simulation, this paper’s data transmission optimization model will be compared with other methods.


## 5.2. Data Test

A large amount of lost data is accumulated, and the real-time resuming cannot be continued. Figure5 shows the test results of the packet loss rate error of Industrial Internet of Things data transmission. Figure 6 shows the result of the data transmission response error of the Industrial IoT.Figure 5
Industrial IoT data transmission packet loss rate error test results.Figure 6
Industrial IoT data transmission response error results.Through the performance test of the above indicators, the relevant results are shown in Figures6 and 7. According to the analysis of the test results, the test standards for related indicators have already met the requirements and experimental settings for dynamic optimization of Industrial Internet of Things data transmission. Next, we will conduct further in-depth tests for other indicators. The above has tested the encryption and decryption of communication data and the blockchainization of stored data of the entire security architecture. The public key data of the IoT communication partner were tested for asymmetric encryption and decryption to achieve the expected results. The generation of the symmetric session key between IoT devices was also tested and finally generated by both IoT communication parties. The session symmetric key is the same for the blockchainization of stored data. It mainly tests the consensus process of the Raft cluster and the query process of blockchain data.Figure 7
Industria Internet of Things data transmission performance comparison: Standard 1.


## 5.3. Comparison of Government Affairs Data Transmission Technology

In order to verify the reliability of the parameters, the data transmission optimization technology is used. The test tool used in the test scenario of the result page is a user cycle tool, and related data are generated from this. The following experimental results are obtained, which are shown in Figures7 and 8. Figure 7 compares the data transmission performance of the Industrial IoT at Standard 1.Figure 8
Industrial IoT data transmission performance comparison: Standard 2.Figure8 shows the comparison result of the data transmission performance of the Industrial IoT at Standard 2.It can be seen from Figures7 and 8 that the data transmission performance of the Industrial Internet of Things meets the relevant requirements. This paper has achieved a better performance advantage under the condition of Standard 2. This model is conducive to the relative performance and the efficiency of the actual application process. Figure 8 shows a comparison of the data transmission performance of the Industrial Internet of Things in the case of Standard 2. This comparison also verifies the applicability of the model in this article under different standards. For in-depth exploration in the future, the model established in this article provides a better reference. In general, the above experimental tests meet the security architecture requirements in terms of data communication encryption and data storage reliability. However, the random cycle value setting for Raft cluster heartbeat detection needs to be further improved in future practice. When the performance of the physical device allows, the random cycle value should be reduced as much as possible, which is more in line with the real-time nature of IoT communication.


## 6. Conclusion

In the Industrial IoT scenario, the data are aggregated through nodes with limited trajectories. This paper divides the network scene into a grid matrix model with location information characteristics through the idea of graph theory and designs an artificial neural network to seek effective matching. The proposed strategies balance the energy consumption between node grids and reduce the overall energy consumption of network nodes. We have obtained better results using optimization methods of government data transmission with the continuous expansion of the application field of the IoT. With the expansion of new technologies, there are still many problems worthy of research in data transmission optimization. We will further explore optimization methods suitable for government data transmission to provide scientific references for the development of related industries.



---

*Source: 8948323-2021-07-06.xml*