Abstract
In wireless sensor network (WSN), the energy of sensor nodes is limited. Designing efficient routing method for reducing energy consumption and extending the WSN’s lifetime is important. This paper proposes a novel energy-efficient, static scenario-oriented routing method of WSN based on edge computing named the NEER, in which WSN is divided into several areas according to the coverage of gateway (or base station), and each of the areas is regarded as an edge area network (EAN). Each edge area network is abstracted into a weighted undirected graph model combined with the residual energy of the sensor nodes. The base station (or a gateway) calculates the optimal energy consumption path for all sensor nodes within its coverage, and the nodes then perform data transmission through their suggested optimal paths. The proposed method is verified by the simulations, and the results show that the proposed method may consume about 37% less energy compared with the conventional WSN routing protocol and can also effectively extend the lifetime of WSN.
1. Introduction
In recent years, the edge computing paradigm has gained considerable popularity in academic and industrial circles. It serves as a key enabler for many future technologies, such as 5G [1], augmented reality, and the Internet of Things (IoT) [2]. Wireless sensor networks (WSNs), as a key technology of the Internet of Things [3], have achieved great success in the fields of environmental monitoring [4], smart cities [5], medical care [6, 7], target tracking [8], and behavioral monitoring [9]. Thus, WSNs have aroused widespread attention in academia and industry.
A WSN is composed of a large number of static or movable microsensor nodes deployed in the monitoring area. The data monitored by these sensor nodes are transmitted to other sensor nodes, hop by hop, through wireless communication. During transmission, the monitored data can be processed by different nodes and reach the base station (or a gateway) through a multihop route. The monitored data collaboratively perceive, collect, process, and transmit information about objects within the network coverage area, and this information is then sent to the network manager through the Internet or by a satellite, as demonstrated in Figure 1. By seeking an optimal route between the source and destination nodes, routing technologies in a WSN efficiently forward data packets to the destination node through multiple hops, realizing a multihop path. Some general characteristics of WSNs are large scale, self-organization, limited resources, and complex environment.

Since the processing, storage, and communication capabilities of an individual sensor node are relatively weak and since their battery supply is limited, determining how to save energy and prolong the life-cycle of the entire network in the routing process is a crucial issue in WSNs. The existing routing protocols currently have the following problems: (1)Routing is distributed, and all nodes in a WSN need to implement a routing algorithm, which increases the costs of calculation, storage, and communication(2)The energy consumption and residual energy of the WSN nodes are not considered in the routing calculation(3)Nodes need to store a large amount of routing information(4)Routing is completely centralized, which causes high latency
In order to solve the above problems, this paper proposes a novel energy-efficient, static scenario-oriented routing method of WSNs based on edge computing named the NEER. The proposed method is applicable to the scenario where sensor nodes are fixed in a sensor network. Based on the idea of edge computing, a WSN is divided into several edge area networks according to the coverage of the base station (or gateway). The calculation of the residual energy is carried out at the end node, and data routing is performed on the edge area network. The entire routing process of the edge area network is as follows.
First, a base station (or gateway) node acquires the topological information of an edge area network. Second, with the guarantee of network connectivity, the base station (or gateway) calculates an optimal routing path of all sensor nodes of the edge area network to the base station (or gateway) with the purpose of minimizing the energy consumption in a centralized way. Next, the base station (or gateway) node notifies each sensor node about its optimal paths. Finally, the perceived data are routed to the base station (or gateway) by a multihop route, which represents the optimal route. Data transmission between the edge area networks is performed through base stations (or gateways). Because the data transmission of each of the edge area networks in a WSN ensures the minimization of energy consumption, the proposed method achieves the purpose of saving energy, lowering node disturbances, and prolonging the life cycle of the whole WSN.
In this paper, the Contiki/Cooja simulation platform is used to verify the proposed NEER method from the aspects of network lifetime and network energy consumption for different scenarios. The experimental results show that compared with the traditional RPL (IPv6 routing protocol for low-power and lossy networks) protocol [10, 11], the proposed method can significantly extend the WSN lifetime by at least 30% and reduced the energy consumption by approximately 37%.
The main contributions of this work can be summarized as follows: (1)The proposed method breaks the idea of completely distributed or centralized routing. A WSN is divided into several edge networks based on the edge computing idea. Each edge network adopts centralized routing internally, so the nodes do not need to implement a routing algorithm or save routing information, which not only saves computing cost and storage resources but also reduces the delay(2)The proposed routing method can select an optimal path to effectively reduce the network energy consumption and extend the network life by fully considering the residual energy of nodes(3)The proposed method collects the data of all nodes on the path by one-time routing, so the packet exchange rate is low, and the communication overhead is reduced
The rest of the paper is organized as follows. The related work is described in Section 2. The topological model and energy consumption model related to the NEER are discussed in Section 3. In Section 4, the proposed method and its detailed analysis are presented. In Section 5, the simulation and experimental results are discussed, and the proposed method is compared with the RPL routing protocol. Finally, the conclusions are given in Section 5.
2. Related Work
In past years, research on WSN energy-efficient routing methods has achieved significant progress. Currently, the main routing methods are network structure-based routing, communication model-based routing, topology-based routing, and reliability routing.
The energy-efficient, flooding with minimum latency, plane routing algorithm (EFML) proposed by Song et al. [12] belongs to the class of network structure-based routing algorithms. This algorithm first constructs the shortest-path tree with the smallest delay from the sink node to other nodes and then establishes the minimum spanning tree with a given time delay. However, this algorithm has problems related to the information explosion and overlap.
Razaque et al. proposed the hybrid-LEACH (H-LEACH) protocol [13]. To face the energy hole problem of LEACH, the H-LEACH considers the maximum energy of a node, its remaining energy, the energy required for data transmission, and the probability of energy usage and implements a threshold value. The nodes below the threshold are considered dead. Finally, the network lifetime is extended.
To improve the WSN geographic routing protocol and solve the problems of energy wasting and routing hole in data transmission, a new geographic routing protocol GEAR+ was proposed by Yanqin [14]. By making nodes acquire information on two or more adjacent nodes’ locations, the probability of routing hole was reduced. Necessary aggregation of data collection on the nodes was carried out, and meanwhile, the states of the nodes were changed appropriately to avoid unnecessary energy consumption.
The quality-of-service-based routing protocols represent reliable routing methods, which are aimed at achieving an equilibrium between the energy consumption and data transmission quality to meet the time delay and bandwidth requirements [15].
The above-mentioned protocols differ from the proposed method in many aspects. The method proposed in this paper is designed for static WSN scenarios, which is quite suitable for environment-sensing applications with unattended and infrequent topology changes, such as intelligent agriculture, forest fire risk monitoring, and environmental data acquisition. In order to clearly explain the advantages of the proposed method over the existing methods, the comparison of their main characteristics is given in Table 1.
In addition to the above-mentioned classical energy-efficient routing protocols, the routing protocols with congestion avoidance [16–18], congestion control [19–21], data aggregating, or multipath function have been designed in recent years. These protocols can effectively reduce the energy consumption of multiple data retransmissions. It should be noted that WSNs are vulnerable to various types of attacks. Therefore, confidentiality, authentication, integrity, availability, and freshness are the main security considerations in WSNs. In order to address these challenges, many secure routing protocols were proposed [22–25]. However, the energy consumption and security are contradictory, so a performance balance between them is necessary. With the aim to achieve this balance, the routing protocols based on multiobjective optimization were proposed in [26–28]. Moreover, with the help of machine learning-based algorithms and the use of the operational experience data of WSN, a self-learning routing protocol was proposed in [29–31] to enhance the network’s adaptive characteristics.
The emergence of WSNs has had a profound influence on many fields. Environment monitoring, where various environmental parameters such as temperature, humidity, light, and pressure can be monitored, denotes a typical application of WSN. Recently, environmental monitoring has become one of the important applications for real-time monitoring and protection of the physical world in the field of industry and agriculture.
The application of WSNs in environmental monitoring was studied in [32]. In order to realize agricultural modernization and agricultural environmental protection, Zhu et al. designed a WSN-based agricultural environment monitoring system [33]. In [34], the authors designed an industrial monitoring system based on WSN that could achieve high reliability and low power consumption. As for the medical field, in recent years, with the increase in the population, the medical application market has witnessed explosive growth. In order to improve medical quality, various emerging technologies have been applied to the medical field. Sghaier et al. used the application of WSN technology to monitor the physiological data of patients and track their movement trajectories [35]. In addition to collecting the bioinformation of patients, this system also collects other relevant information, such as environmental temperature and patient image. Lastly, a fall monitoring and accurate positioning system based on the WSN and RFID technology intended for the elderly population was designed in [36].
The mentioned systems consist of a base station, sensing nodes, a routing scheme for the wireless sensor nodes, and a real-time monitoring application that operates from a remote computer and a mobile phone. A routing scheme is a very important part of the data transmission and collection processes in a WSN. Besides, different routing methods have different energy consumptions. Therefore, reducing the energy consumption of sensor nodes to extend the network lifetime is a major concern for an energy-constrained WSN.
3. Topological Model and Energy Consumption Model
This section introduces the concepts and models of the proposed NEER method, including the edge area network topological model and its construction algorithm and energy consumption model of sensor nodes.
3.1. Topological Model of Edge Area Network
A WSN that is considered in this study consists of several sensor and base station nodes, which are mutually connected by wireless links. The sensor nodes denote small, static, and resource-limited devices for environmental monitoring and reporting the acquired data to the base stations. The base stations are static devices with sufficient resources and a longer transmission range compared to the sensor nodes. According to the base station’s coverage size, a WSN can be divided into several edge area networks. For the sake of easier understanding of the following explanations of the edge area network model and its parameters, the symbols and their descriptions are given in Table 2.
This paper abstracts an edge area network into a weighted undirected graph model defined as , where denotes a set of nodes, is a set of edges in the graph, and is a weight set of the edges. For all , is a tuple, where denotes the node number and is the residual energy of node . For all , represents the edge formed between nodes and , which is also a tuple. In addition, for all , is a tuple, where represents the distance of the edge formed between nodes and , and is energy consumption when the perceived data are transmitted or received along edge . In all cases, , and denotes the total number of nodes.
In order to acquire the topological information of an edge area network, this paper uses the broadcast discovery mechanism. The process of topological model construction, taking a node named as an example, is illustrated in Figure 2.

(a)

(b)

(c)

(d)
In Figure 2(a), HELLO represents the neighbor discovery message sent by a node , and it includes the ID of node and “hello” text. In Figure 2(b), RESP represents the response message of the neighboring node, including the ID of the neighboring node and its position coordinates (). In Figure 2(c), represents the adjacency table of the node , and it includes the ID of each neighboring node of the node , distance between the node and each its neighboring node, and the residual energy of the node . In Figure 2(d), TM represents the fused topological model information of the adjacency table of all nodes at the base station. The pseudocode of the topological model construction algorithm is provided in Algorithm 1.
|
The specific steps of Algorithm 1 are as follows:
Step 1. In a predefined period of time (it is assumed that the time is long enough), each sensor node in the edge area network periodically broadcasts a HELLO message.
Step 2. The sensor node receives the HELLO message and sends back an RESP message, which includes its ID and location ().
Step 3. After the broadcasting period of the HELLO message ends, each sensor node generates its one-hop adjacency table. The one-hop adjacency TABLE includes the IDs of all neighboring nodes and distances from the neighboring nodes. The distance can be calculated by the Euclidean distance formula using the location coordinates of the sensor nodes and .
Step 4. All sensor nodes transmit their one-hop adjacency tables and residual energy information to the base station (or gateway).
Step 5. The base station fuses all of the received one-hop adjacency tables to obtain the topological information of the edge area network.
It can be seen from the pseudocode of Algorithm 1 that sending HELLO message is the core of the algorithm. The lines 4-7 need to be executed times, and the lines 10-11 need to be executed times. In the worst case, the complexity of the topological model construction algorithm is , where denotes the number of sensor nodes.
The topological information generated after the base station fuses the adjacency tables of all the nodes is given in Table 3.
In Table 3, denotes the total number of sensor nodes, , represent node’s ID, denotes the residual energy of a node , is the distance between nodes and , and is the energy consumed by node when transmitting data to node .
3.2. Energy Consumption Model
As a key element of a WSN, a sensor node is composed of four parts [37]: a sensor module, a processing module, a wireless communication module, and a power provision module (battery supply), as illustrated in Figure 3. In addition to the local information collection and data processing, a sensor node also receives and forwards the data sent from the other nodes in a network.

In this paper, the first-order radio model [16] is used for energy consumption calculation during data transmission, as shown in Figure 4. The symbols used in the energy consumption model and their descriptions are given in Table 4.

As shown in Figure 4, the energy is mainly consumed by the transmitting module (transmitting block), amplifying module (Tx amplifier), and receiving module (receiving block). The energy consumption of the transmitting and receiving modules is the same (i.e., nJ/bit) and the energy consumption of Tx amplifier is pJ/bit/m2.
The energy consumptions of data transmission and receiving are, respectively, expressed as where denotes the number of bits per packet and is the transmission distance.
4. NEER Description and Analysis
As a WSN is an application-oriented network, sensor nodes with fixed locations have a wide range of application scenarios in the field. One of the most typical applications of fixed sensors is for environmental monitoring. The routing method proposed in this paper is based on the following three assumptions: (1)All sensor node positions are fixed(2)Each sensor node can calculate its current residual energy(3)The real-time requirements are not high
The NEER method and its execution process, calculation of energy consumption, and selection of optimal path are introduced in detail in the following. The validity of the NEER method is analyzed and proved theoretically.
4.1. NEER Method
4.1.1. NEER Process
The NEER method includes five main steps: network initialization, edge area network topological model construction, optimal path calculation, perceived data transmission, and the topological model update. The specific steps of the data acquisition process are as follows:
Step 1. Network initialization, which involves dividing the edge area network, specifying a unique ID for each sensor node, assigning the associated edge area network for each sensor node, setting the initial energy of the sensor node as , and the maximum number of bits of data transmission as h.
Step 2. Construct the topological structure information of each edge area network using Algorithm 1.
For each edge area network, perform Steps 3-8.
Step 3. Based on the constructed topological information, calculate the optimal path from the base station (or gateway) to all sensor nodes to form an optimal path set.
Step 4. According to the set screening rule, one of the optimal path sets is selected as a working path, and the information on the working path is sent to all sensor nodes on the working path, where it is stored.
Step 5. The first sensor node on the working path forwards its perceived data and residual energy to the next sensor node on the working path in a hop. The next sensor node fuses the received data with its perceived data and residual energy and forwards it to the following sensor node in a hop, and so on, until the base station (or gateway) receives the data of all sensor nodes on the working path.
Step 6. The base station (or gateway) receives the perceived data, as well as the residual energy of all sensor nodes on the working path. Using the received data, the base station (or gateway) updates the residual energy of the corresponding sensor nodes in the topological information table.
Step 7. Based on the updated topological information, the optimal paths from the sensor nodes whose data are uncollected to the base station (or gateway) are recalculated, and the optimal path set is updated.
Step 8. Repeat Steps 4 to 7 until the perceived data and residual energy information of all sensor nodes are collected.
In the data collection process, when a sensor node dies, the algorithm returns to Step 2 and reconstructs the network topology. The process flow of data collection is shown in Figure 5. The symbols used in the NEER method and their descriptions are given in Table 5.

4.1.2. Energy Consumption Calculation
From the data collection process, it can be seen that the base station (or gateway) transmits an optimal path to each sensor node on the path, and then, a node starts transmitting data to the base station (or gateway). Let be a path from sensor node to the base station (or gateway) base; energy consumptions of data transmission are set as weights of edges connecting the path. Except for node , which receives and sends data only once, the other nodes, , receive and send data twice.
According to the previously described data collection process, the base station (or gateway) transmits the optimal path to each sensor node on the working path, and then, the node starts transmitting data to the base station (or gateway). Let be a path from a sensor node to the base station (or gateway), and the energy consumptions of the nodes for data transmission are set as the weights of the edges connecting the path. Except for node , which needs to receive and send data only once, the other nodes, , need to receive and send data twice.
Given this setup, the edge weights of the network topological graph can be calculated by where denotes the energy consumption of the initial sensor node, represents the energy consumption of the sensor nodes other than the initial sensor node; is the energy consumption associated with data receiving, and is the energy consumption associated with data transmission, and they can be calculated by Equations (1) and (2), respectively.
4.1.3. Optimal Path Calculation of Edge Area Network
In order to minimize the energy consumption of each data transmission, the path with the least energy consumption is selected as an optimal path for data transmission. The pseudocode of the calculation algorithm of the optimal path from the base station (or gateway) to all sensor nodes is given in Algorithm 2.
|
It can be seen from the pseudocode of Algorithm 2 that the lines 3-7 need to be executed times, and the lines 10-11 need to be executed times. The while loop needs to be executed times. In the worst case, the complexity of the topological model construction algorithm is , where denotes the number of sensor nodes and denotes the number of edges.
The specific steps of Algorithm 2 are as follows:
Step 1. Initialize the calculation process: set the base station (or gateway) number as and sensor node number as . Initially, let and . The initial energy of each sensor node is set to . The value of the side weight formed by the sensor node in satisfies the following conditions: if is adjacent to , is the energy consumption value of data transmitted from the base station (or gateway) to the sensor node , and if the energy consumption value is greater than the residual energy of the node, then is infinite; otherwise, set .
If and are not adjacent to each other, then is infinite, where and .
Step 2. The sensor node with the smallest weight is selected from and added to ; then, the residual energies of all the forwarded sensor nodes are updated.
Step 3. The weight values of the remaining sensor nodes in are updated: if the value of the side weight from to decreases after adding as an intermediate node, then modify the value of the side weight.
Step 4. Repeat Steps 2 to 3 until all sensor nodes are included in (i.e., ), and then, stop the calculation process.
4.2. NEER Analysis
The NEER is a semicentralized routing method. The execution of the NEER algorithm is performed in the base station (or gateway) of each edge area network with good calculation performance and sufficient energy supply. As mentioned before, sensor nodes can perform only simple operations, such as data storage and data transmission and reception. Thus, the proposed design reduces the energy consumption of sensor nodes. In addition, the residual energy of sensor nodes is considered in the processes of data transmission and routing. Data are transmitted along a route with minimum energy consumption, which ensures that the minimum energy is consumed in each transmission and, thereby, the life-cycle of the network is prolonged. The performance of the proposed method is proven by the following proposition.
Assume that denotes a set of all sensor nodes and the base station (or gateway) in the edge area network, and is the collection of nodes that have found their optimal paths, i.e., paths with minimum energy consumption. In the initial state, in , there is only the base station (or gateway) , and is the set of nodes for which the minimum energy paths have not been found yet; thus, .
Proposition 1. Assume that correspond to sensor nodes from for which optimal paths have been successively found using Algorithm 2, and denote the minimum energy consumptions of data transmissions from the base station (or gateway), , to different nodes. Then, find another node from , whereas determined by Algorithm 2 corresponds to the minimum energy consumption from the base station (or gateway) to node .
Proof. Assume that is not the minimum energy consumption from the base station (or gateway) to a node , and let be the set of nodes through which the minimum energy consumption path passes from the base station (or gateway) to the node . Let the energy consumption along this path be such that .
As , , and , the node that is closest to and does not belong to but is on the path with minimum energy consumption from the base station (or gateway) to the node is set as ; the immediate successor of is .
Further, as the weights in a WSN indicate the consumption of the energy and they are all positive, then it holds that . The equality sign is established when is . Since , this conflicts with the formal inequality. Thus, the hypothesis is not established, and the proposition is proved by contradiction.
5. Simulation Experiments
In order to verify the effectiveness of the proposed method, the Contiki/Cooja [38, 39] platform was selected for simulation experiments, and the proposed method was compared with the existing RPL protocol. The RPL protocol is used in intelligent object networks. It was designed by Internet Engineering Task Force (IETF) for the interconnection of restricted devices through lossy links. Contiki is an open-source and event-driven operating platform that enables the interoperability of low-power, energy-constrained, and memory-constrained microdevices.
The proposed NEER method was compared with the existing RPL regarding two indexes, the entire network life-cycle and energy consumption. The network life cycle was measured by the number of rounds of data acquisition when the first sensor node died and when all sensor nodes died. It was considered that a sensor node died when the residual energy of the sensor node was less than or equal to zero.
5.1. Experimental Setup
Two groups of simulation experiments were conducted. The first group of experiments included the experiments with a single-edge area network, which included only one base station node. The effectiveness of the NEER method was verified and compared to that of the RPL from three aspects: the number of nodes, network area size, and initial energy distribution. The second group of experiments included the experiments with multiple-edge area networks, which included multiple base station nodes. The influence of the number and location of different base station nodes on the NEER performance was studied and compared with that of the RPL.
In these two groups of experiments, the basic simulation parameters were set as follows: (1)The energy consumption sent and received by a sensor node was nJ/bit(2)The energy consumption of the sensor node amplification was pJ/bit/m2(3)The number of bits per transmission packet was 1000 bits
The experiments were carried out in two stages. In the first stage, the topological model was constructed using Algorithm 1, and in the second stage, the perceived data were routed using the proposed NEER method. Additionally, the second stage was divided into several rounds, whereas the round was considered to be a period within which the data collection of all nodes was conducted.
5.2. Results and Discussion
5.2.1. Single-Edge Area Network Experiment
(1) Effect of Sensor Node Number. This experiment was performed to analyze the effect of the number of sensor nodes on the NEER method’s performance and compared it with that of the RPL. In the area with a size of , one base station node and different numbers of sensor nodes were randomly deployed; the number of sensor nodes was set to 20, 40, 60, and 80. These numbers were chosen based on the previous analysis of node number regarding node number and deployment influence on the network life and energy consumption. In the experiment, the only parameter which was changed was the number of sensor nodes. The upper limit of the transmission range of the sensor nodes was set to 20 m, and the initial energy of the sensor nodes was 100 mJ.
The network topologies consisting of 20, 30, 40, and 80 sensor nodes generated by the RPL protocol are presented in Figures 6(a)–6(d), and those generated by the proposed NEER method are shown in Figures 7(a)–7(d). In Figures 6 and 7, red dots represent the base stations (or gateways).

(a)

(b)

(c)

(d)

(a)

(b)

(c)

(d)
The network life cycle for different numbers of sensor nodes of the two methods is presented in Figures 8(a)–8(d). As shown in Figure 8, at the number of sensor nodes of 20, 40, 60, and 80, the first sensor node of the RPL protocol died when the number of rounds of data collection in the network reached the value of 64, 43, 28, and 19, respectively, while the first sensor node of the NEER died after 95, 56, 37, and 25 rounds of data collection, respectively. In addition, at the number of sensor nodes of 20, 40, 60, and 80, all sensor nodes of the RPL protocol died when the number of rounds of data collection in the network reached the values of 105, 81, 69, and 51, respectively, while all sensor nodes of the NEER method died after 143, 116, 88, and 68 rounds of data collection, respectively. Therefore, the NEER method prolonged the life cycle of the network. This was mainly because there were multiple paths between sensor nodes in the network topology constructed by the NEER method compared with the RPL, and the optimal path was selected dynamically during the data transmission process according to the residual energy of nodes.

(a)

(b)

(c)

(d)
The energy consumption in each round of data acquisition of a single-edge area network composed of 20, 30, 40, and 80 sensor nodes of the two methods is presented in Figures 9(a)–9(d), respectively. As shown in Figure 9, the NEER method consumed less energy during data collection than the RPL protocol. This was because, in the NEER method, sensor nodes did not need to implement a routing algorithm and did not save routing information, which was all completed at the base station. The sensor nodes performed only data transmission according to the routing path defined by the base station; meanwhile, the data sensed by all sensor nodes on the path were collected. This not only saved computing and storage resources but also reduced energy consumption. In addition, the RPL protocol line was shorter than that of the NEER method, as shown in Figure 9. This was because all sensor nodes in the RPL died earlier than those in the NEER, so there was no energy consumption data after that. This further validated that the NEER method could prolong the life cycle of the network.

(a)

(b)

(c)

(d)
(2) Effect of Network Area Size. This experiment was conducted to analyze the effect of the network area size on the NEER method performance, as well as on that of the RPL protocol. One base station node and 40 sensor nodes were randomly deployed in an area of a different size. The network area size was set to , , , and . The network sizes were chosen based on the same criterion as the node numbers. In the experiment, only the network area size was changed, while all other parameters were fixed. The initial energy of the sensor nodes was 100 mJ. The topological structure of the network was the same as that presented in Figures 6(b) and 7(b).
The network lifecycle and energy consumption of the two methods for a single-edge area network with a different network area size are presented in Figures 10(a)–10(d) and Figures 11(a)–11(d), respectively. As shown in Figures 10 and 11, for both methods, the network life cycle decreased, and the energy consumption increased with the increase in the network area size.

(a)

(b)

(c)

(d)

(a)

(b)

(c)

(d)
The reason was that in the case of the same network topological structure, increasing the network area size was equivalent to increasing the communication distance between sensor nodes, so the required transmitting and receiving powers of the nodes would increase; thus, the energy consumption of data transmission would also increase, thereby reducing the life of the network. However, it should be noted that the proposed NEER method had a longer network life and lower energy consumption of data transmission compared with the RPL under the same network area size.
(3) Effect of Initial Energy Heterogeneity. This experiment was conducted to examine the effect of the initial energy heterogeneity on the NEER method and compare it with that on the RPL. One base station node and 40 sensor nodes were randomly deployed in an area of . In this experiment, only the initial energy distribution of sensor nodes was changed, while the other parameters were fixed. The upper limit of the transmission range of the sensor nodes was set to 20 m, and the initial energy of the sensor nodes was different; namely, the initial energy distribution was set to the Poisson distribution, binomial distribution, normal distribution, and uniform distribution, successively. The network topology was the same as that in Figures 6(b) and 7(b). For each distribution of the initial energy, ten experiments were conducted, and the results of each of them are shown in Figure 12. In Figure 12, the round numbers corresponding to the death of the first node and the death of all the nodes are presented. As shown in Figure 12, regardless of the initial energy distribution, the lifetime of the network using the NEER was longer than using the RPL protocol.

(a)

(b)

(c)

(d)
5.2.2. Multiple-Edge Area Network Experiment
(1) Effect of Base Station Number. This experiment was conducted to examine the effect of the number of base stations on the NEER method performance. Also, in all other experiments, the performance of the proposed method was compared with that of the RPL protocol. Three, four, five, and six base station nodes and 60 sensor nodes were randomly deployed in an area of . In this experiment, only the number of base station nodes was changed, while the other parameters were kept fixed. The upper limit of the transmission range of the sensor nodes was set to 20 m, and the initial energy of the sensor nodes was 100 mJ. The topologies of multiple-edge area networks generated by the RPL protocol and the proposed method are presented in Figures 13(a)–13(d) and Figures 14(a)–14(d), respectively. In Figures 13 and 14, red dots represent the base stations (or gateways).

(a)

(b)

(c)

(d)

(a)

(b)

(c)

(d)
The comparison results of network lifetime and energy consumption of the RPL and NEER routing methods for multiple-edge area networks having three, four, five, and six base stations are presented in Figures 15(a)–15(d) and Figures 16(a)–16(d), respectively. As shown in Figures 15 and 16, as the number of base stations increased, the life of the network prolonged, and energy consumption reduced. Since the WSN was divided into multiple-edge area networks having only one base station and the number of sensor nodes in the WSN was constant, the more base stations were used, the more edge area networks were included in the WSN, and the smaller the number of sensor nodes per a single-edge area network was, thereby extending the life of the entire network and reducing the energy consumption. The results showed that the proposed NEER method had a longer network life and lower energy consumption of data transmission than the RPL protocol under the same number of base stations.

(a)

(b)

(c)

(d)

(a)

(b)

(c)

(d)
(2) Effect of Base Station Position. This experiment was performed to analyze the effect of the base station position on the NEER method’s performance, and the proposed method’s performance was compared with the RPL protocol’s performance. The network topologies consisting of three base station nodes and 60 sensor nodes and four base station nodes and 60 sensor nodes randomly deployed in an area of were used in the experiment. Only the positions of base station nodes were changed in the experiment. In the experiments of three base stations and four base stations, each experiment has two kinds of base station position distribution, position 1 and position 2, where the distribution of the number of sensor nodes is relatively more balanced in each edge area network at position 2 than at position 1. The upper limit of the transmission range of the sensor nodes was set to 20 m, and the initial energy of the sensor nodes was 100 mJ. The network topologies of multiple-edge area networks with different positions of base stations generated by the RPL protocol and the proposed method are presented in Figures 17(a)–17(d) and Figures 18(a)–18(d), respectively. In Figures 17 and 18, red dots represent base stations (or gateways).

(a)

(b)

(c)

(d)

(a)

(b)

(c)

(d)
The comparison of network life and energy consumption between the RPL and NEER routing methods for network topologies consisting of three and four base stations at different positions is presented in Figures 19(a)–19(d) and Figures 20(a)–20(d), respectively. As presented, under other conditions unchanged, the network life of Figure 19(b) is longer than that of Figure 19(a), and the network energy consumption of Figure 20(b) is lower than that of Figure 20(a). Similarly, the network life of Figure 19(d) is longer than that of Figure 19(c), and the network energy consumption of Figure 20(d) is lower than that of Figure 20(c). In addition, under the same number of base stations, the difference in the number of sensor nodes between the edge area networks having the base stations at position 2 is small, while at position 1, the difference is significant, making the distribution of nodes unbalanced and resulting in unbalanced energy consumption of the network, thereby reducing the overall life of the network. Finally, the NEER method had lower energy consumption and a longer lifetime than the RPL protocol.

(a)

(b)

(c)

(d)

(a)

(b)

(c)

(d)
In order to present the effects of the two methods more intuitively, the experimental results of the NEER and RPL are listed in Table 6. On average, compared with the RPL, the NEER method extended the network lifetime by at least 30% and reduced the energy consumption by approximately 37%.
5.2.3. Communication Cost Analysis
The communication cost was analyzed under different numbers of sensor nodes and base stations. The comparison of the number of exchanged packets per round between the RPL and NEER routing methods is presented in Figures 21(a) and 21(b). In Figure 21(a), the case of a single-edge area network is presented; meanwhile, in Figure 21(b), the case of a multiedge area network is displayed. Under other conditions unchanged, as shown in Figure 21(a), the larger the number of sensor nodes was, the larger the number of exchanged packets was. Additionally, as shown in Figure 21(b), the larger the number of base stations was, the smaller the number of exchanged packets was. In both considered cases, the number of exchanged packets of the NEER method was smaller than that of the RPL method. This was mainly because the NEER method collected data of all nodes on the path by one-time routing, so the packet exchange rate was low, and the communication overhead was reduced.

(a)

(b)
6. Conclusions
This paper proposes a novel energy-efficient, static scenario-oriented routing method of WSNs based on the edge computing method, named the NEER, which is applicable to the scenario with fixed positions of sensor nodes. Based on the idea of edge computing, a WSN is divided into several edge area networks according to the base station coverage. The proposed method is a semicentralized, energy-efficient WSN routing method. The proposed method includes three parts: topology discovery, route calculation, and data transmission. For a single-edge area network, based on a weighted undirected graph model and combined with the residual energy of the sensor node, a base station calculates an optimal energy consumption path for each of the sensor nodes, while the sensor nodes perform only data transmission along the optimal paths determined by the base station. Since data of a single-edge area network is routed with the minimum energy consumption, the data transmission of the entire WSN achieves the lowest energy consumption.
The proposed NEER method is verified using the Contiki/Cooja platform from the aspects of two indicators, the network life cycle and energy consumption, and it was compared with the RPL protocol from the perspectives of the number of sensor nodes, network scale, initial energy distribution, the number of base stations, and base station locations. The experimental results show that the NEER method can extend the WSN lifetime by at least 30% and reduce the energy consumption by about 37% compared with the RPL. Under the same conditions, the number of exchanged packets of the NEER method is lower than that of the RPL method.
In addition, the experimental results also show that the more nodes in the sensor network are, the larger the network scale, the greater the energy consumption of the network, and the shorter the network lifetime will be. Although increasing the number of base stations can reduce network energy consumption and extend network life, blindly increasing the base station number will cause a problem in sensor node coverage effectiveness and cost growth. At the same time, based on the results, the base station location affects the lifetime and energy consumption of a network. Therefore, when deploying base stations, the number of nodes covered by each base station should be balanced.
Although the proposed method can achieve good routing performance, future research is necessary. Namely, it should be studied how to determine a base station’s location to maximize the usage of sensor node resources. Additionally, it should be examined how to redivide the edge area network and reconstruct the network topology when the network topology updates. Lastly, adaptive routing protocol should be verified in general scenarios.
Data Availability
No data were used to support this study.
Conflicts of Interest
The authors declare that they have no conflicts of interest.
Acknowledgments
This research was supported in part by the NSFC (National Natural Science Foundation of China) program, under Grant Nos. 61672372, 61472211, and 61472268; Natural Science Fund for Colleges and Universities in Jiangsu Province under Grant No. 19KJB520056; Science and Technology Entrepreneurship Angel Program of Suzhou under Grant CYTS2019255; Science and Technology Project of Suzhou under Grant SS202151; Jiangsu Universities Overseas Research Program in 2019, the Outstanding Science-Technology Innovation Team Program of Colleges and Universities in Jiangsu; the Industrial Technology Innovation Project of Suzhou City under Grant No. SYG201710; and the Program to Cultivate Middle-aged and Young Cadre Teacher of Suzhou Vocational University.