Next Article in Journal
Chlorine Tolerance and Inactivation of Escherichia coli recovered from Wastewater Treatment Plants in the Eastern Cape, South Africa
Previous Article in Journal
Experimental Evaluation of Thermal Performance and Durability of Thermally-Enhanced Concretes
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

ANCR—An Adaptive Network Coding Routing Scheme for WSNs with Different-Success-Rate Links †

1
School of Information Science and Technology, Northwest University, Xi’an 710127, China
2
Department of Computer Science, Montclair State University, Montclair, NJ 07043, USA
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in Proceedings of the International Conference on Human Centered Computing, Colombo, Sri Lanka, 7–9 January 2016.
Co-first authors: These authors contributed equally to this work.
Appl. Sci. 2017, 7(8), 809; https://doi.org/10.3390/app7080809
Submission received: 1 July 2017 / Revised: 3 August 2017 / Accepted: 4 August 2017 / Published: 8 August 2017

Abstract

:
As the underlying infrastructure of the Internet of Things (IoT), wireless sensor networks (WSNs) have been widely used in many applications. Network coding is a technique in WSNs to combine multiple channels of data in one transmission, wherever possible, to save node’s energy as well as increase the network throughput. So far most works on network coding are based on two assumptions to determine coding opportunities: (1) All the links in the network have the same transmission success rate; (2) Each link is bidirectional, and has the same transmission success rate on both ways. However, these assumptions may not be true in many actual WSNs—the wireless links among nodes are often subject to all kinds of disturbance, obstruction, etc., and may transmit with different success rates. This paper proposes a new routing strategy, named Adaptive Network Coding Routing (ANCR). ANCR firstly establishes a routing path with the traditional network coding routing (NCR), and then applies the neighborhood search algorithm to adaptively determine nodes’ coding opportunities based on the links’ transmission success rates, with the target of reducing the total number of transmission. The simulation results show that, in WSNs with different-success-rate links, ANCR can reduce the network delay by about 50%, and increase the network throughput by about 67%, compared with the traditional NCR.

1. Introduction

In order to obtain first-hand data of wildlife’s living conditions, researchers have to keep watch in the wild, suffer from boredom and the rugged environment and get a limited amount of data which has low accuracy. In the cultural relics protection, military investigation and so on, to obtain some relevant data, the similar situation often occurs. To deal with the problem, wireless sensor networks (WSNs) are applied. For example, in “the Great Wall conservation” project, more than 200 sensor nodes are deployed on the Great Wall. Theoretically, the WSN can get the complete realtime data related to the ruin. However, in reality, the nodes would consume much energy during forwarding processes and it is difficult to charge them, which results in obtaining the incomplete or delayed data. However, an effective WSN should be able to sense and forward data stablely and timely. For instance, the real-time and complete data in military investigations can provide effective support for fighting. Therefore, how to save the energy consumption of nodes, reduce the transmission delay and improve the throughput in a WSN becomes an unavoidable problem [1,2].
Researchers have proposed many methods to address the above-mentioned problem [3,4]. In these studies, the hardware solutions are not only expensive, but also limited by the hardware technology and equipments. Thus, the software solutions are becoming more and more favored. A lot of software approaches are to use network coding strategies to improve network throughput, reduce transmission delay, and save energy consumption [5,6,7]. Surely, if network coding can be carried out (all links have the same transmission success rate and the two ways of a link also have the same transmission success rate), the network performance will be improved, and the more coding opportunities, the more significant effect [8]. In another word, an effective coding opportunity in a network mainly depends on the preconditions that all paths have the same transmission success rate on all links and the same transmission success rate in the two directions of a link. However, in an actual network, there may not always be many effective coding opportunities because of different transmission success rates (an example is described in Section 3). This will limit the performance improvement in the network.
ANCR [9] proposed in this paper chooses effective coding opportunities to minimize transmission count overall by taking into account various transmission success rates on different links and in two directions of a link. In this way, the total number of transmission in a network will decrease, the network latency and energy consumption will also reduce and the network throughput will be improved.
Summary of Results: In this paper, in order to simulate ANCR, we firstly establish the network topological graph and the data stream model of the network with the real relevant parameters in the WSN employed for monitoring wild animals in Qinling region in China. Then we establish the routing decision model which can automatically determine network coding opportunities, and apply the neighborhood search algorithm to adjust routes to reduce the total number of broadcast transmission in the network. According to the simulation results, we can know that ANCR shows the same network delay and throughput as NCR while the networks have sparse data streams. The main reason is that if there is no any coding opportunity in the network, ANCR will degenerate to NCR. On the contrary, the denser the data streams, the more the intersections (of the data streams). The inherent coding opportunities and the coding opportunities produced by adjusting routes will also become more. In this situation, ANCR is better than NCR, which is mainly reflected in the decrease of the total number of transmission because ANCR can use high-quality links and create network coding opportunities. This leads to the shorter transmission time, the higher network throughput and the lower energy consumption of the network. The simulation results show that compared with NCR, in the network having many nodes, ANCR can reduce the network delay by about 50% and improve the network throughput by 66.67%. Although ANCR mainly deals with the problem in WSN applications, it can also be a good reference in other wireless networks. The main contribution of this paper is that it proposes an ANCR model which can work efficiently in real networks with different transmission success rates on links and different transmission success rates in both directions of a link.

2. Background

1). Network coding
Network coding [10] is a way to improve the performance of wireless networks. This method can enhance network throughput and network bandwidth utilization, balance network load and so on. In wireless transmission, network coding reduces the total number of transmission of nodes by coding to increase the transmission capacity of network and obtain higher network throughput [11].
Network academia has done a lot of research on effective network coding. In these researches, COPE is a typical network coding algorithm for wireless network environments [12]. COPE is based on the network coding theory, whose idea is to raise the amount of information of a packet. In COPE, the routers select the packets that can be encoded together and “merge” them together. “Merge” refers to a coding way that can raise the amount of information of a packet. Merging the packets from different nodes can significantly improve the network throughput.
The principle of the network coding strategy can be illustrated by the following two typical models, “Alice-Bob structure” and “X structure” [8]. An “X structure” model is shown in Figure 1, in which the node X will forward the packet Px to the node Y through the router R, and the node M will forward the packet Pm to the node N through the router R. In general, the process is as following: X transmits Px to R, and then R stores Px and transmits it to Y; M transmits Pm to R, and then R stores Pm and transmits it to N. In the process, the total number of transmission is four. If a network coding scheme is applied to the transmission process, when X broadcasts Px to R, meanwhile N also receives Px; when M broadcasts Pm to R, meanwhile Y also receives Pm. After receiving Px and Pm, R will perform XOR on both them and broadcast the result to Y and N. Then Y performs XOR on the result and Pm received before, and gets Px that it should receive. Likewise, N can also get Pm which M sends to it. However, in this process, the total number of transmission is only three.
The other model, “Alice-Bob structure”, as shown in Figure 2. The node Alice will forward the packet Pa to the node Bob through the router R, and the node Bob will forward the packet Pb to the node Alice through the router R. Usually, the transmission process is as following: Alice transmits Pa to R, and then R stores Pa and transmits it to Bob; Bob transmits Pb to R, and then R stores Pb and transmits it to Alice. In the process, the total number of transmission is four. If a network coding scheme is used, the situation will be improved. Alice transmits Pa to R and Bob also transmits Pb to R. Then R performs XOR on Pa and Pb, and transmits the result respectively to Alice and Bob. Bob will get Pa by performing XOR on the result and its own Pb. Likewise, Alice will also get Pb. In the whole process, the total number of transmission is only three. Through decreasing the total number of transmission in a network which includes “Alice-Bob structure” or “X structure”, the low transmission delay and energy consumption and the high throughput can be obtained.
2). COPE made the following main contributions [13]:
(1)
It put forward a mechanism to monitor network coding opportunities. The mechanism uses the broadcast characteristics of wireless network to monitor the information of neighbor nodes and obtain the number of packets owned by the neighbor nodes. Then it determines whether to encode the received packets. It can maximize the amount of data in one transmission under ensuring that the neighbor nodes can completely decode and obtain the packets that they need.
(2)
It put forward an opportunistic coding mechanism. Whether a routing node encodes the received packets mainly depends the principle of coding. This principle must ensure that each next-hop node has enough data to decode the encoded packet after receiving it. The decoding conditions is as follows: Suppose that a node needs to transmit n packets p 1 , p 2 , , p n to the n next-hop nodes r 1 , r 2 , , r n . The unique condition by which the node can encode the n packets is that every next-hop node r i has the other n 1 packets p j ( i j ).
(3)
It proposed the concept of coding gain. COPE compared the number of transmission between the coding method and the non-coding method, and took the result as a reference standard for improving network performance, such as network throughput and so on. Based on this, it put forward the concept of coding gain. Coding gain is defined as the ratio of the number of transmission without network coding to the minimum number of transmission with the network coding in COPE. According to the definition, the ratio is greater than or equal to 1. For any network, the performance of unicast is still an unresolved problem in the traditional network coding [14]. In actual transmission, due to the availability of coding opportunities, the overhead of packet header and other reasons, the coding gain is often relatively lower.

3. The Problem

This paper proposes a perceptual routing decision model, named ANCR. Different from the previous models which require not only the same transmission success rate on all links, but also the same transmission success rate in two directions of each link, our model assumes that the transmission success rates on all links are different, and the transmission success rates in two directions of a link are also different. A network coding strategy is proposed under these new and more practical assumptions.
Here is an example, as shown in Figure 3a. It is assumed that the network meets the preconditions above-mentioned and the success transmission rates of all the links are all 100%. There are two data streams in two directions in the network. One is from the node A to the node E, whose path is A B D E , and the number of transmission is three. The other is from the node F to the node B, whose path is F E C B , and the number of transmission is three. Thus, finishing transmitting the two packets, the total number of transmission is six. Now, if we consider network coding opportunities and introduce the network coding strategy, the path from F to B will be changed to F E D B . It is obvious that D has a coding opportunity, which makes the number of transmission of the node D change from two to one. Thus, the total number of transmission changes to five and the network performance is promoted by about 17%.
However, in a real WSN, such as monitoring the environment where wildlife lives, military investigation and so on, link quality [15] is always affected by many unpredicted and uncertain external environmental factors, such as temperature, humidity and electromagnetic waves, etc [16]. In addition, the network’s own factors, such as the nodes’ transmitting power and working frequency, etc., also affect the link quality. These factors usually cause packet loss in data transmission processes [17,18]. Therefore, in an actual network, there are various transmission success rates on different links and in the two directions of a link, which makes the above-mentioned traditional network coding unusable. As shown in Figure 3a,b, they have the same network topology, but there is the different link quality in the latter (The numbers marked on each link represent the transmission success rate of the link. For example, the transmission success rate of the link BC is 1/3, which means that, on average, if the number of transmission is three, only once is successful.). Without considering the transmission success rates of the links and the coding opportunities, the optimal paths should be A B D E and F E C B . However, retransmitting caused by unsuccessful transmission leads to the total number of transmission of the two data streams is ten ( ( 1 + 1 + 3 ) + ( 1 + 1 + 3 ) = 10 ) . To introduce the coding opportunities, we need to appropriately adjust the paths. If the path A B D E is not changed, the other path will be changed to F E D B . Then the node D has a new code opportunity. Unlike the network where there is no difference in link quality, the transmission success rate of the link DE is 1/3. So after calculating, the total number of transmission of the two data streams is nine ( ( 1 + 1 ) + ( 1 + 3 ) + 3 = 9 ) although D can encode the two packets from the different data streams into a big one and broadcast it to B and E. The network performance is improved by only 10%. Therefore, in a network with different-success-rate links, though the network coding strategy could be used, the improvement of the whole network performance would be discounted, due to the influence and restriction of the low link quality.
In order to solve the above problem, this paper proposes a routing decision model, named ANCR, which can sense network coding opportunities and use high-quality links to create coding opportunities to enhance the overall performance of a network. This approach not only passively applies the existing network coding opportunities as the traditional approaches [19], but also uses the high-quality links to create more coding opportunities. Its main idea is as following: When the quality of a link between two nodes is not good enough (as the link between D and E in Figure 3b), that is to say, in the case of different-success-rate links, we will use another node (as the node C in Figure 3b) which is linked with the two nodes and respectively has the better link quality as the forwarding node. In this way, the new forwarding node can have a coding opportunity to realize cooperative data forwarding. If there is a decrease in the number of transmission to bring an increase in the network throughput, then the whole network performance would be improved. Since the quality of the link CD is as good as that of the link CE, we take C as the intermediate forwarding node. So the initial path A B D E will be changed to A B D C E , and the other initial path F E C B will be changed to F E C D B . Then there are the coding opportunities at D and C. The total number of transmission is only six (the statistical result for multiple transmission tasks [12]). Compared with the previous strategy that uses D as the forwarding node, the total number of transmission is reduced by three. The direct effect is that the transmission time and the energy consumption of the nodes are all saved. The indirect effect is that the network throughput is improved.

4. Overview

In this paper, according to the real relevant parameters in the WSN employed for monitoring wild animals in Qinling region in China, which was deployed by our lab, we establish the network topological graph and the data stream model. The specific parameters are as follows: 150 nodes deployed randomly in an area of about 1 square kilometers; the transmission distance of a single link is 80 m; the link bandwidth is 250 Kbps; the transmission success rate of a link is between 0 and 1; the number of data streams is from 0 to 30. Then, the simulations of NCR and ANCR are carried out. The simulation results show that, compared with the NCR strategy, ANCR can reduce the network delay by about 50% and increase the network throughput by about 66.67%. With the increase of network data streams, the advantage of saving energy of ANCR becomes more and more obvious.
In order to verify the performance of ANCR, the following steps of the simulation are carried out in the paper:
(1)
ANCR establish a network topological graph firstly. Then, the graph is symbolized and represented by an appropriate data structure. This step will be described in detail in Section 5.1.
(2)
ANCR establish a data stream model secondly. Then, the data stream model is symbolized and represented by an appropriate data structure. This step will be described in detail in Section 5.2.
(3)
The number of network nodes, the number of data streams and the number of packets are initialized respectively.
(4)
NCR is used to make routing decisions and the related parameters are calculated. The link selection criteria is defined as the smaller expected transmission count(ETX) [20]. The neighborhood search is performed on the route selected by NCR. The specific neighborhood search algorithm will be described in Section 7.
(5)
Calculate the related parameters about the current route and go to the next step.
(6)
If you want to experiment on other scenes, initialize again the number of network nodes, the number of data streams and the number of packets and back to the step (4). Otherwise, finish the experiment.
The following sections will describe the settings of a simulation scene, the algorithm design and so on.

5. Network and Data Stream

In order to carry out the simulation, we establish the network topological graph and the network data stream model in the paper firstly. Then we need to represent the network and data stream into the computer to simulate nodes, links, and states in real network.

5.1. Representation of Network Topology

The network topology can be defined by the nodes and the corresponding links between the nodes in a given network. Whether a link between two nodes exists depends on whether each node of them is within the direct transmission range of the other. In this way, a network topological graph G = ( N , E ) can be built, where N denotes the set of the network nodes and E denotes the set of the links directly connecting two nodes in the network. Each node in the network may be the source or destination node of a data stream. The set of the input links of the node i is denoted by E ( i ) and the set of the output links of the node i is denoted by E + ( i ) . The link that directly connects the node i to the node j is denoted by e = ( i , j ) . e ¯ = ( j , i ) denotes the reverse path of the link e ( e = ( i , j ) ).
For a path P and a link e, we use e P to denote that the link e is in the path P. e 1 e 2 P represents that the link e 1 and the link e 2 are all in the path P and e 2 is the subsequence of e 1 . For a path P and a node i, i P denotes the node i is in the path P.
d i j is the distance between the nodes i and j. l i represents the communication radius of the node i. On a single channel, whether the transmission from the node i to the node j is successful is discussed in two cases: (1) If d i j l i , then the transmission will be successful; (2) If d i j > l i , then the transmission will be unsuccessful.
Each link e E corresponds to a transmission success rate t ( e ) representing the success probability of data transmission on the link e. If a link is e = ( i , j ) , then the transmission success rate of the link is defined as t ( e ) = t ( i , j ) . If there is an intermediate node r, the source node i can send a packet to the destination node j through the node r, then this path can be expressed as P = ( i , r , j ) , which represents that the direction of the data stream is i r j , the transmission success rate of the path is t ( P ) = t ( i , r , j ) = t ( i , r ) * t ( r , j ) .
If t ( i , r , j ) > t ( i , j ) , it is indicated that the transmission quality of the path i r j is good and better than that of the direct link between the node i and the node j. Then the network topological graph G = ( N , E ) will be modified as following: The direct link between the node i and the node j is deleted. The path P = ( i , r , j ) is remained in the graph G. The changes of the link quality will lead to updating the network topological graph. In addition, to add or remove some nodes in the network will also lead to updating the network topological graph. In an actual deployment, whether outdoors or indoors, the nodes and the quality of the links in the network may need to be updated due to the battery exhaustion of nodes, nodes sleep, outside interference, the redeployment of nodes or the new nodes waked up or added, etc. So we need an update mechanism of network topological graph.
The graph G = ( N , E ) indicates a network state at a certain moment. G 0 = ( N 0 , E 0 ) denotes the initial network state. G t = ( N t , E t ) denotes the network state at time t. Δ N t and Δ E t respectively represent the set of nodes and the set of links added or deleted from the original network from time 0 to time t due to the changes of the network state. So Δ G t = ( Δ N t , Δ E t ) indicates the changes of the network state during the period of Δ t . The cases of adding and removing nodes are discussed as follows:
Adding nodes: This case refers to that a node restarts to work in the network or a new node is added to the network. After a node is added, the links between the added nodes and its neighbor nodes should be first established, and then the network topological graph should be updated. At the same time, the states of the related nodes and the transmission success rates of the related links should be updated correspondingly.
Removing nodes: This case refers to that a node starts to sleep in the network or a node is removed from the network. After a node is removed, the links between the removed node and its neighbor nodes should be first deleted, and then the network topological graph should be updated. At the same time, the states of the related nodes and the transmission success rates of the related links should be updated correspondingly.

5.2. Representation of Path and Data Stream

The definition of the data stream model of network is used to obtain a feasible path under a known network topological graph. Firstly, a network topology is represented by a correlation matrix A R V × L of nodes and links, where V denotes the total number of nodes and L denotes the total number of links. In the matrix, the element a i j represents the relationship between the node i and the link j:
a i j = 1 , i f e j E + ( i ) 1 , i f e j E ( i ) 0 , o t h e r s
where E ( i ) and E + ( i ) respectively represent the input and output links of the node i.
If a path successively includes the following links e 1 , e 2 , , e n , then the path would be defined as P = e 1 e 2 e n . X ( P ) is a vector whose length is L ( X ( P ) R L ). For the ith element in X ( P ) :
x i ( P ) = 1 , i f e i P 0 , o t h e r s , 1 i L
For a data stream k, it can be expressed as a vector U k R V . For the ith element in U k :
u i = 1 , i = s ( k ) 1 , i = d ( k ) 0 , o t h e r s , 1 i V
where s ( k ) and d ( k ) respectively represent the source and destination nodes of the data stream k. Because the path P k of the data stream k must satisfy the limitation: A X ( P k ) = U k , a set of potential paths of the data stream k can be obtained. All the possible solutions of X ( P k ) are just the potential paths.

6. Optimization of Routing Decision in WSNs with Different-Success-Rate Links

6.1. Metric of Link Quality

Since ETX can easily characterize network throughput and energy consumption of nodes, and also affect end-to-end delay, this paper selects it as the path selection criteria in the case of considering coding opportunities to find a high-throughput path in a network with different link quality.
The minimum ETX of forwarding a packet from a source node to a destination node (including the number of retransmission) is used as the path selection criteria. The ETX of a link is calculated based on the transmission success rate of the link, for example, the ETX of a link whose transmission success rate is 50% is two. The ETX of a path is the sum of the ETXs of all the links included in the path, for instance, the ETX of a path containing three lossless links is three.
The transmission success rate of a link is calculated by the forward and reverse transmission success rates of the link. The forward transmission success rate q f is the successful probability of delivering a packet to the receiver. The reverse transmission success rate q r is the successful probability of receiving an acknowledgment packet ACK from the sender. Therefore, the transmission success rate of the link is q r × q f . If the sender does not receive the acknowledgment ACK from the receiver, the packet will be retransmitted. Since each attempt to transmit a packet can be viewed as a Bernoulli experiment, the ETX of the link is 1 / ( q r × q f ) .
In addition, for the measurement of transmission success rate, the forward and reverse transmission success rates q f and q r are measured by using a dedicated link probe packet. Each node broadcasts a dedicated link probe packet with a fixed size every τ seconds. In order to avoid synchronization, there is a jitter ( ± 0.1 τ seconds) in each probing. Each node needs to store the probe packets received in the last w i n seconds. Nodes can be allowed to calculate their successful transmission probabilities at any time t i :
q ( t i ) = c o u n t ( t i w i n , t i ) / ( w i n / τ )
where c o u n t ( t i w i n , t i ) represents the number of probe packets received during the last w i n seconds, and ( w i n / τ ) indicates the number of probe packets that should be received when the transmission links are lossless. In general, when the link direction is A B , the node A can measure the transmission success rate q r , and the node B can measure the transmission success rate q f . Since the node B defaults to receiving a probe packet from the node A every τ time intervals, it can accurately calculate the current transmission success rate q f according to the number of the packets actually received and that should be received. In this way, the node A can also get the current transmission success rate q r . To calculate the ETX of a link needs q f and q r simultaneously. Each probe packet sent by the node A contains the number of probe packets received by the node A from its each neighbor node in the last w i n seconds. So this can allow the node B to be also able to calculate q r whenever a probe packet from the node A is received by the node B. Likewise, the node A can also get q f . In a word, all nodes can obtain the corresponding q f and q r of the related links and calculate the transmission success rates and ETXs of the links.

6.2. Establishment of ANCR Model

The problem of minimizing transmission count by using network coding is formulated. Suppose that in a wireless network, there has already existed K data streams, now, H new data streams are added into the network. For a new data stream h ( 1 h H ), its source and destination nodes are respectively s ( h ) and d ( h ) . If a path P R h is selected, where R h is the potential path set of the data stream h, then f h ( P ) = 1 , otherwise f h ( P ) = 0 . P h denotes the path of the data stream h. M h denotes the set of nodes on the path P h . M denotes the set of nodes on the paths of all the H data streams. 1 / t ( e j ) denotes the ETX of the link e j , where t ( e j ) denotes the transmission success rate of the link e j . We use T i { e } , e E + ( i ) , i N (N represents the node set of the network) to denote the sum of the transmission counts caused by transmitting packets through all the output links of the node i. For a link e = ( i , j ) , e ¯ = ( j , i ) denotes its reverse link.
The following optimization solution aims to minimize the ETX of the paths for all the incoming data streams under the given conditions, such as the data stream conservation, network coding and competition constraint, etc. Specifically, the model is as follows.
Minimum
i M T i { e } , e E + ( i ) , M = h = 1 H M h , M h = { m | m P h }
Subject to
P R h f h ( P ) = 1 , 1 h H , f h ( P ) = 1 , i f P i s s e l e c t e d a s t h e p a t h o f t h e d a t a s t r e a m h 0 , o t h e r s
T i { e 1 , e 2 } k = 1 K e 1 ¯ e 2 P j = 1 3 1 t ( e j ) + j = 1 3 s g n [ t ( e j ) ] × h = 1 H e 2 ¯ e 1 P f h ( P ) [ j = 1 3 1 t ( e j ) ] , e 1 , e 2 E + ( i ) , i N
T i { e 1 , e 2 } k = 1 K e 2 ¯ e 1 P j = 1 3 1 t ( e j ) + j = 1 3 s g n [ t ( e j ) ] × h = 1 H e 1 ¯ e 2 P f h ( P ) [ j = 1 3 1 t ( e j ) ] , e 1 , e 2 E + ( i ) , i N
T i { e } j = 1 3 s g n [ t ( e j ) ] × h = 1 H e P , s ( h ) = i f h ( P ) [ j = 1 3 1 t ( e j ) ] + k = 1 K [ e P k , s ( h ) = i j = 1 3 1 t ( e j ) + e 1 E ( i ) k = 1 K e 1 e P j = 1 3 1 t ( e j ) + h = 1 H e 1 e P f h ( P ) [ j = 1 3 1 t ( e j ) ] T i { e , e 1 ¯ } ] , e E + ( i ) , i N
A X ( P h ) = U h , 1 h H
  • Constraint (6) denotes the path selection constraint, which means that from the source node to the destination node, a data stream h has one and only one path to select in the set R h of potential paths determined by the constraint (10).
  • Constraints (7) and (8) denote the constraints for the maximum ETX of broadcast transmission of the node i carrying out network coding. Constraint (7) denotes the constraint for the maximum ETX of the path e 2 ¯ e 1 . Constraint (8) denotes the constraint for the maximum ETX of the path e 1 ¯ e 2 . When the variable of the sign function s g n is 0 (the transmission success rate of a link is 0), which indicates that the link can not be used, the value of the sign function is 0. At this moment, the last parts of the right of the two inequalities are all 0, which means that there is only one-way transmission limitation. In this case, if T i { e 1 , e 2 } needs to simultaneously satisfy the constraints (7) and (8), T i { e 1 , e 2 } must be 0. Since the bidirectional unreachable link is not within the optimization range of the optimization equation, the sign function constrains the coding opportunity of unidirectional unreachable links.
  • Constraints (9) shows the ETX of unicast transmission of raw packets transmitted by the node i.
  • Constraints (10) limits the potential paths of the data stream h. All the possible solutions of X ( P h ) are just the potential paths.

7. Approximation Algorithm

It is a NP-hard problem [21] to compute the minimum transmission count in the case of various link quality. Given a graph G ( V , E ) , an independent set of G is a set of vertices where there is no edge between any two vertices. The maximum independent set problem is a known NP-hard problem. To solve the minimum transmission count can be converted to a maximum independent set problem. So to solve the minimum transmission count is also NP-hard.
The main proof process is as follows: In a graph G ( V , E ) , we specify two nodes as the source and destination nodes. Each edge is a corresponding link between two related nodes. The link capacity between any two nodes is assumed to be one unit. It is assumed that there are conflicts between the links. Therefore, the minimum transmission count can be obtained only after the sequence of the maximum independent set of the graph G is arranged. That is to say, to solve the minimum transmission count of a network is equivalent to solve the maximum independent set of the graph established on the network. The latter is a known NP-hard problem. So the former is also a NP-hard problem.
Therefore, we use a local search heuristic to adjust routing paths in partial section to minimize the transmission count. As discussed in Section 3, in order to get a network coding opportunity, we need to modify the local path(s) near a cross node where two data streams’ paths intersect. In addition, the "Alice-Bob structure" or "X structure" coding opportunity can be found at least in a two-hop communication range. Thus we choose a cross node as a center and take its one-hop communication range as the neighborhood range to carry out the local search heuristic.
The neighbor search algorithm includes two primary steps as follows: (1) to determine the initial path of each data stream: The algorithm takes the transmission success rate of each link as the weight, and generates a new path for each data stream by finding the path on which the sum of weights of the links is maximum (the ETX is minimum); (2) to optimize the initial paths: The algorithm adjusts (or creates) a cross node for the initial paths so that the sum of the ETXs of all the paths passing through the cross node decreases and the total number of transmission in the network is as small as possible. The specific implementation process is shown in Table 1, where a cross node refers to the node through which there are at least two paths of data streams; a pseudo cross node is such a node that belongs to only one path and whose neighbor nodes belong to another path, or that can be added to another path as a transit node.
To illustrate the algorithm clearly, some symbols are defined as follow:
  • v: a current node.
  • I n t : an initial local path strategy.
  • S t : a local path strategy of node v with network coding.
  • E ( S t ) : the sum of the ETXs of a local path strategy S t .
  • L ( v ) : a collection of local path strategies of node v.
  • a: a neighbor node of the current node v.
  • l ( v ) : a local path strategy S t that makes E ( S t ) minimum in L ( v ) .
  • p i : the predecessor node of the current node v in the path of a data stream i.
  • n i : the successor node of the current node v in the path of a data stream i.
  • α i , j : the ETX of a link between the nodes i and j.
Three main cases dealt with by the algorithm are shown in Figure 4. Suppose that the current node is v. Figure 4a indicates the case that the quality of the current node v’s input link (e.g., p 2 ,v) is poor. In the figure, there are two paths s 1 , , p 1 , v , n 1 , , d 1 and s 2 , , p 2 , v , n 2 , , d 2 , which respectively belong to two data streams passing through the cross node v, and the transmission success rates of the related links are marked. By calculating, for the first data stream, the node v is replaced with its neighbor node a; for the second data stream, the direct transmitting from the node p 2 to the node v is instead of the forwarding through the node v’s neighbor node a. Then the sum of the ETXs of the new paths s 1 , , p 1 , a , n 1 , , d 1 and s 2 , , p 2 , a , v , n 2 , , d 2 is much smaller. Therefore, this local path strategy should be used as an alternative local path strategy to adjust the routing paths associated with the current node. Figure 4b illustrates the case that the quality of the current node v’s output link (e.g., v, n 2 ) is poor, and gives an alternative local path strategy. Figure 4c shows the case that the current node v has no any coding opportunity, and gives an alternative local path strategy with a coding opportunity.

8. Simulation and Evaluation

In this section, we evaluate the performance of our routing approaches using Java. According to the specific parameters: 150 nodes are randomly deployed in the area of about 1 square kilometers in area; a single link transmission distance is 80 m; the link bandwidth is 250 Kbps; a link transmission success rate is between 0 and 1; the data stream from 0 to 30. We build a simulation environment and simulate it.

8.1. Delay Analysis

In the simulation, all the source and destination nodes of each data stream are chosen randomly and all the packets are generated randomly. Figure 5a,a’ show the comparison of delay distributions of 220 packets between NCR and ANCR in the case of two data streams. Because there are only two data streams, the network coding opportunities are fewer. ANCR degenerates to NCR, which makes NCR and ANCR have a similar delay distribution of 220 packets. Figure 5b,b’ show the comparison of delay distributions of 660 packets between NCR and ANCR in the case of five data streams. From the figures, we could find the packets with a longer delay in ANCR are slightly fewer than those in NCR. In spite of this, the fewer data streams still result in the fewer coding opportunities, so NCR and ANCR also have a similar delay distribution of 660 packets. Figure 5c,c’ show the comparison of delay distributions of 880 packets between NCR and ANCR in the case of twenty data streams. Intuitively, with the number of data streams increasing, both the number of intersections of data streams and the network coding opportunities are also raising. In addition, compared with NCR, ANCR would select a route with a high transmission success rate and coding opportunities, which can reduce the number of retransmission. Moreover, the coding technology can decrease the queuing delay of packets. All these reasons make ANCR bring about lower delay. The two figures also prove this conclusion. The center position of the distribution in NCR is about 2 μ s, however, that in ANCR is about 1 μ s. Therefore, compared with NCR, ANCR can reduce the network delay by about 50%.

8.2. Throughput Analysis

ANCR proposed in this paper is to maximize the network throughput by minimizing the total number of transmission of the network. In this part, we compare the performance of NFC and ANCR in increasing network throughput and analyse ANCR in improving the performance.
Figure 6 shows the comparison of network throughput between NCR and ANCR under the number of data streams and packets increasing respectively. In Figure 6a, there are only two data streams having no intersections, which is the worst case that ANCR is faced with, so the two approaches have the same performance. When the number of data streams is five, we can find the difference from Figure 6b. It shows when the number of packets is in the range of 100 to 250, the throughput of ANCR is lower than that of NCR. The main reason is that in the initial stage, ANCR needs to arrange the transmission time, which means that some packets need to wait for the other packets to participate in coding together (the waiting time is set to 3 μ s). There is a time delay compared with NCR. However, with the number of packets increasing, the time to wait for coding is gradually reducing and tending to be stable. When the number of packets of each data stream increases to greater than 250, the throughput of ANCR performs better than that of NCR. In Figure 6c, it is clearly indicated that ANCR has the better throughput than NCR in the case of the twenty data streams. The throughput of ANCR is about 2 times that of NCR. The main reason is analysed as following: Compared with NCR, when ANCR is used in a network having a large number of data streams, more network coding opportunities would be generated. In addition, with the increasing of packets at the node having a coding opportunity, the number of transmission of ANCR decreases more significantly than that of NCR. This directly leads to a greater improvement of the network throughput.

8.3. Energy Analysis

In this part, we focus on and analyse the energy consumption of nodes by using NCR and ANCR respectively to finish the transmission of 1000 packets in the case of thirty data streams. Figure 7 shows the energy consumption of nodes under using NCR and ANCR respectively. The X-axis and Y-axis represent the geographical location of nodes and the vertical axis represents the energy consumption of nodes. We define the initial energy of each node as 0.2 .
From Figure 7, we can come to the conclusion that the energy consumption of ANCR is less than that of NCR. The main reason is that ANCR chooses the nodes with coding opportunities and high transmission success rates to encode packets and transmit them, but NCR only considers the coding opportunities of nodes and ignores the transmission success rates of the nodes. Consequently, under the same network situation, the total number of transmission of ANCR is less than that of NCR, which means that the energy consumption of ANCR is lower than that of NCR. Moreover, the nodes whose energy consumption decreases all have coding opportunities.
In a word, with the number of data streams and packets increasing, the advantage of ANCR is becoming more and more obvious.

9. Related Works

In the early routing mechanisms which take network coding as the core, the implementation of network coding and the route selection were separated from each other. The path-given network coding algorithms were always adopted. In this kind of algorithm, coding opportunities are found by identifying the nodes that different data streams pass through in given routes and coding is implemented at these nodes. With the deep study of network coding, more coding opportunities can be created by dynamically adjusting routes.
Subsequently, many coding algorithms based on dynamically adjusting routes appear. They are mainly based on COPE scheme [12]. COPE constructs a network coding architecture under a given routing mechanism, whose main idea is to raise the amount of information of a forwarded packet. A router selects those packets that can be encoded together and “merges” the packets from different source nodes into a big one and sends it out.
In the COPE scheme, seeking network coding opportunities is mainly focused on. It requires that a node can perform a coding operation just when the node has an “X” or “Alice-Bob” structure coding opportunity, otherwise, COPE is as the same as a traditional routing mechanism.
Based on COPE, many researchers gave more detailed discussions on the coding method of path dynamic adjustment under different environments and backgrounds [8,22,23,24,25].
Widmer, J. et al. [23] proposed a routing selection method based on COPE, which designed a routing mechanism to promote network coding opportunities by discussing the constraints of different transmission rates and bandwidths in a network.
Zhang, J. et al. [8] built a throughput theory model by considering various transmission rates in a wireless network. By calculating the maximum throughput of unicast transmission, this approach controls routing selection and balances network coding opportunities with the use of high-rate links.
NCR [14], a routing strategy for wireless network environments, was put forward by Sengupta in MIT. For random and nonrandom monitoring modes, from a theoretical point of view, [14] analysed how to optimize the traffic in a wireless network using COPE. Different transmission rates are taken into account in particular in this strategy. However, this approach, as the same as the mentions in [8,23], also requires that in a wireless network, all the links have the same transmission success rate and there is the same transmission success rate in two directions of a link.
For an actual wireless network where there are various transmission success rates on all the links and different transmission success rates in two directions of a link, this paper proposes a new approach, ANCR, based on NCR, which can get more coding opportunities by dynamically adjusting routes in a real network. Different from NCR and the other previous approaches, by considering the various transmission success rates of different links and the different transmission success rate in two directions of a link, ANCR makes routing decisions to increase coding opportunities and decrease the total number of transmission. Further, because the total number of transmission becomes less, the network delay and energy consumption reduce and the network throughput is improved.

10. Conclusions

As an important part of IoT, WSNs have been widely used in fields such as wildlife protection, intelligent transportation, cultural relic protection and military investigation, etc. However, sensor nodes [26,27,28,29,30,31,32,33,34,35,36,37,38,39,40] more easily fail to work than traditional network nodes due to being battery-powered. Therefore, it is a challenge to maintain high quality and low energy consumption in WSN applications. To improve the hardware is a way to deal with the problem, but the cost is higher and the existing technology is a further limitation. Another way is to improve the software, in a wireless network environment, network coding is often used to reduce the number of radio-frequency emission of nodes, save the energy consumption of nodes and increase network throughput, etc. At present, however, most of the researches on network coding are based on the following two hypotheses: One is that all the links in the network have the same transmission success rate. The other is that each link has the same transmission success rate in its two directions. However, in an actual network, due to the unstable communication channels, the transmission power of nodes limited by battery voltages and so on, the two hypotheses could not be fully met. Thus, the current network coding technology hardly gets coding opportunities in a practical application, which makes them incapable of enhancing the network performance and saving the energy of nodes.
This paper proposes an adaptive network coding routing scheme—a routing decision model which can automatically sense network coding opportunities. This model applies the network coding to an actual network where there are various transmission success rates on the links and different transmission success rates in two directions of a link. By optimizing routing decisions, the model can get more coding opportunities to decrease the number of broadcast transmission in the network, reduce the network delay and energy consumption, and improve the network throughput. In this paper, we firstly established the network topological graph and the data stream model on the network. Then we established a routing path with the traditional NCR and applied the neighborhood search algorithm to adjust the path(s) to reduce the total number of broadcast transmission in the network. The simulation results showed that, compared with NCR, ANCR could reduce the network delay by about 50% and increase the network throughput by 66.67%. The energy consumption of nodes could decrease with the increase of data streams in the network.
Although ANCR mainly deals with the problem in WSN applications, it can also be a good reference in other wireless networks.

Acknowledgments

This work was supported in part by the National Natural Science Foundation of China (no. 61572402, no. 61672428, no. 61602382, no. 61501372, no. 61272286) and the Science Foundation of Northwest University (no. 15NW32 and no. 15NW31)and Natural Science Basic Research Plan in Shaanxi Province of China (no. 2012JQ8049).

Author Contributions

Xiang Ji, Dingyi Fang and Chun Ma conceived and designed the experiments; Xiang Ji, Anwen Wang and Chun Ma performed the experiments and analyzed the data; Xiang Ji, Anwen Wang and Chunyu Li wrote the paper; Dingyi Fang, Qinyi Hua, Dajin Wang, Feng Chen and Yao Peng participated in paper revision and made many suggestions. All authors read and approved the final manuscript.

Conflicts of Interest

The authors declare that there is no conflict of interests regarding the publication of this paper.

References

  1. Sahana, S.; Amutha, R. Data aggregation in wireless sensor networks. In Proceedings of the IEEE International Conference on Information Communication & Embedded Systems, Chennai, India, 27–28 February 2014; Volume 39, pp. 1–6. [Google Scholar]
  2. Qiu, T.; Zhao, A.; Xia, F.; Si, W.; Wu, D.O. ROSE: Robustness Strategy for Scale-Free Wireless Sensor Networks. IEEE/ACM Trans. Netw. 2017. [Google Scholar] [CrossRef]
  3. Zhang, Y.; Wang, S.; Liu, Z.; Zhou, W.; Yang, X. Analysis on energy consumption and transmission delay for wireless sensor network. In Proceedings of the IEEE International Conference on Cyber Technology in Automation, Bangkok, Thailand, 27–31 May 2012; Volume 141, pp. 110–113. [Google Scholar]
  4. Brokalakis, A.; Papaefstathiou, I. Using hardware-based forward error correction to reduce the overall energy consumption of WSNs. In Proceedings of the 2012 IEEE Wireless Communications & Networking Conference, Shanghai, China, 1–4 April 2012; pp. 2191–2196. [Google Scholar]
  5. Kartsakli, E.; Antonopoulos, A.; Alonso, L.; Verikoukis, C. A Cloud-assisted Random Linear Network Coding Medium Access Control Protocol for Healthcare Applications. Sensors 2014, 14, 4806–4830. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  6. Antonopoulos, A.; Renzo, M.; Verikoukis, C. Effect of Realistic Channel Conditions on the Energy Efficiency of Network Coding-aided Cooperative MAC Protocols. IEEE Wirel. Commun. Mag. 2013, 20, 76–84. [Google Scholar] [CrossRef]
  7. Antonopoulos, A.; Verikoukis, C. Network Coding-based Cooperative ARQ Medium Access Control Protocol for Wireless Sensor Networks. Int. J. Distrib. Sens. Netw. 2011, 8, 601321. [Google Scholar] [CrossRef]
  8. Zhang, J.; Zhang, Q. Cooperative Network Coding-Aware Routing for Multi-Rate Wireless Networks. In Proceedings of the IEEE INFOCOM 2009, Rio de Janeiro, Brazil, 19–25 April 2009; pp. 181–189. [Google Scholar]
  9. Wang, L.; Ma, C.; Wang, A.; Guo, J.; Yin, X.; Wang, W.; Xie, B.; Chen, X.; Fang, D. NCFR: Network Coding Fair Routing for Multi-success-rate Wireless Sensor Networks. In Proceedings of the International Conference on Human Centered Computing, Colombo, Sri Lanka, 7–9 January 2016; Springer: New York, NY, USA, 2016; pp. 443–453. [Google Scholar]
  10. Srinivas, K.; Reddy, A.V.; Nagaraju, A. Wireless network coding: An innovative technology. In Proceedings of the International Conference on Green Computing, Chennai, India, 12–14 December 2013; pp. 45–48. [Google Scholar]
  11. Luo, J.; Qin, T.; Liu, J.; Luo, L.; Tang, Z. An Energy Saving Scheme Based on Network Coding in WSN. In Proceedings of the International Conference on Communications and Mobile Computing (CMC), Shenzhen, China, 12–14 April 2010; pp. 229–233. [Google Scholar]
  12. Katti, S.; Rahul, H.; Hu, W.; Katabi, D.; Medard, M.; Crowcroft, J. XORs in the Air: Practical Wireless Network Coding. In Proceedings of the 2006 Conference on Applications, Technologies, Architectures, and Protocols for Computer Communications, Pisa, Italy, 11–15 September 2006; Volume 36, pp. 243–254. [Google Scholar]
  13. Chi, K.; Jiang, X.; Horiguchi, S. Network Coding Opportunity Analysis of COPE in Multihop Wireless Networks. In Proceedings of the WCNC 2008, IEEE Wireless Communications and Networking Conference, Las Vegas, NV, USA, 31 March–3 April 2008; pp. 2858–2863. [Google Scholar]
  14. Ho, T.; Koetter, R. Online incremental network coding for multiple unicasts. In Proceedings of the DIMACS Working Group on Network Coding, Piscataway, NJ, USA, 26–28 January 2005; Volume 34, pp. 69–74. [Google Scholar]
  15. Zhu, J.; Liu, J.; Hai, Z.; Bi, Y.G. Research on routing protocol facing to signal conflicting in link quality guaranteed WSN. Wirel. Netw. 2016, 22, 1739–1750. [Google Scholar] [CrossRef]
  16. Jayasri, T.; Hemalatha, M. Link Quality Estimation for Adaptive Data Streaming in WSN. Wirel. Pers. Commun. 2017, 92, 1543–1562. [Google Scholar]
  17. Mangold, S.; Choi, S.; May, P.; Klein, O.; Hiertz, G.; Stibor, L. IEEE 802.11e Wireless LAN for Quality of Service. In Proceedings of the European Wireless, Florence, Italy, 26–28 February 2002; pp. 32–39. [Google Scholar]
  18. Xiao, Y. Performance analysis of priority schemes for IEEE 802.11 and IEEE 802.11 e wireless LANs. Wirel. Commun. IEEE 2005, 4, 1506–1515. [Google Scholar] [CrossRef]
  19. Choid, J.; Bang, H.; Lee, C. Network coding-aware multicast optimization in multi-hop wireless networks. In Proceedings of the IEEE International Conference on Consumer Electronics, Las Vegas, NV, USA, 10–13 January 2014; pp. 466–467. [Google Scholar]
  20. De, J.; Aguayo, D.; Bicket, J.; Morris, R. A high-throughput path metric for multi-hop wireless routing. Wirel. Netw. 2005, 11, 419–434. [Google Scholar]
  21. Heinzelman, W.R.; Chandrakasan, A.; Balakrishnan, H. Energy-Efficient Communication Protocol for Wireless Microsensor Networks. In Proceedings of the HICSS ’00, 33rd Hawaii International Conference on System Sciences, Hawaii, HI, USA, 4–7 January 2000; Volume 18, p. 8020. [Google Scholar]
  22. Sudipta, S.; Shravan, R.; Suman, B. Network Coding-Aware Routing in Wireless Networks. IEEE ACM Trans. Netw. 2010, 18, 1158–1170. [Google Scholar]
  23. Widmer, J.; Le, J. Network coding for efficient communication in extreme networks. In Proceedings of the WDTN ’05, 2005 ACM SIGCOMM Workshop on Delay-Tolerant Networking, Philadelphia, PA, USA, 26 August 2005; pp. 284–291. [Google Scholar]
  24. Zhang, S.; Liew, S.C.; Lam, P.P. Hot topic: Physical-layer network coding. In Proceedings of the 12th Annual International Conference on Mobile Computing and Networking, Los Angeles, CA, USA, 23–29 September 2006; ACM: New York, NY, USA, 2006; pp. 358–365. [Google Scholar]
  25. Jain, K.; Padhye, J.; Padmanabhan, V.N.; Qiu, L. Impact of interference on multi-hop wireless network performance. Wirel. Netw. 2005, 11, 471–487. [Google Scholar] [CrossRef]
  26. Chang, L.; Chen, X.; Wang, Y.; Fang, D.; Wang, J.; Xing, T.; Tang, Z. FitLoc: Fine-Grained and Low-Cost Device-Free Localization for Multiple Targets Over Various Areas. In Proceedings of the INFOCOM, 2016 35th Annual IEEE International Conference on Computer Communications, San Francisco, CA, USA, 10–14 April 2016; pp. 1–14. [Google Scholar]
  27. Wang, J.; Fang, D.; Yang, Z.; Jiang, H.; Chen, X.; Xing, Z.; Cai, L. E-HIPA: An Energy-Efficient Framework for High-Precision Multi-Target-Adaptive Device-Free Localization. IEEE Trans. Mob. Comput. 2017, 16, 716–729. [Google Scholar] [CrossRef]
  28. Wang, J.; Chen, X.; Fang, D.; Wu, C.Q.; Yang, Z. Tianzhang Xing Transferring Compressive-Sensing-Based Device-Free Localization Across Target Diversity. IEEE Trans. Ind. Electron. 2015, 62, 2397–2409. [Google Scholar] [CrossRef]
  29. Liu, C.; Fang, D.; Yang, Z.; Jiang, H.; Chen, X.; Wang, W.; Xing, T.; Cai, L. RSS Distribution-Based Passive Localization and Its Application in Sensor Networks. IEEE Trans. Wirel. Commun. 2016, 15, 2883–2895. [Google Scholar] [CrossRef]
  30. Luo, H.; Wu, K.; Ruby, R.; Hong, F.; Guo, Z.; Ni, L.M. Simulation and Experimentation Platforms for Underwater Acoustic Sensor Networks: Advancements and Challenges. ACM Comput. Surv. 2017, 50. [Google Scholar] [CrossRef]
  31. Wang, Y.; Wu, K.; Ni, L.M. WiFall: Device-free Fall Detection by Wireless Networks. IEEE Trans. Mob. Comput. 2017, 16, 581–594. [Google Scholar]
  32. Zou, Y.; Xiao, J.; Wu, K.; Han, J.; Li, Y.; Ni, L. GRfid: A Device-Free RFID-Based Gesture Recognition System. IEEE Trans. Mob. Comput. 2017, 16, 381–393. [Google Scholar] [CrossRef]
  33. Zou, Y.; Wang, G.; Wu, K.; Ni, L. SmartScanner: Know More in Walls with Your Smartphone! IEEE Trans. Mob. Comput. 2016, 15, 2865–2877. [Google Scholar] [CrossRef]
  34. Guo, B.; Chen, H.; Han, Q.; Yu, Z.; Zhang, D.; Wang, Y. Worker-Contributed Data Utility Measurement for Visual Crowdsensing Systems. IEEE Trans. Mob. Comput. 2017, 16, 2379–2391. [Google Scholar] [CrossRef]
  35. Chen, H.; Guo, B.; Yu, Z.; Chen, L.; Ma, X. A Generic Framework for Constraint-Driven Data Selection in Mobile Crowd Photographing. IEEE Internet Things J. 2017, 4, 284–296. [Google Scholar] [CrossRef]
  36. Guo, B.; Chen, H.; Nan, W.; Yu, Z.; Xie, X.; Zhang, D.; Zhou, X. TaskMe: Toward a Dynamic and Quality-Enhanced Incentive Mechanism for Mobile Crowd Sensing. Int. J. Hum. Comput. Stud. 2017, 102, 14–26. [Google Scholar] [CrossRef]
  37. Xiao, F.; Xie, X.; Jiang, Z.; Sun, L.; Wang, R. Utility-aware Data Transmission Scheme for Delay Tolerant Networks. Peer-to-Peer Netw. Appl. 2016, 9, 936–944. [Google Scholar] [CrossRef]
  38. Xiao, F.; Yang, X.; Yang, M.; Sun, L.; Wang, R.; Yang, P. Surface Coverage Algorithm in Directional Sensor Networks for 3D Complex Terrains. Tsinghua Sci. Technol. 2016, 21, 397–406. [Google Scholar] [CrossRef]
  39. Zhang, Y.; He, S.; Chen, J. Data Gathering Optimization by Dynamic Sensing and Routing in Rechargeable Sensor Networks. IEEE/ACM Trans. Netw. 2016, 24, 1632–1646. [Google Scholar] [CrossRef]
  40. Liu, L.; Zhang, X.; Ma, H. Optimal node selection for target localization in wireless camera sensor networks. IEEE Trans. Veh. Technol. 2010, 59, 3562–3576. [Google Scholar] [CrossRef]
Figure 1. Illustration of “X structure” network coding. (a) Transmission without network coding; (b) Transmission with network coding.
Figure 1. Illustration of “X structure” network coding. (a) Transmission without network coding; (b) Transmission with network coding.
Applsci 07 00809 g001
Figure 2. Illustration of “Alice-Bob structure” network coding. (a) Transmission without network coding; (b) Transmission with network coding.
Figure 2. Illustration of “Alice-Bob structure” network coding. (a) Transmission without network coding; (b) Transmission with network coding.
Applsci 07 00809 g002
Figure 3. Illustration of routing with network coding. (a) Network with the same transmission success rate links; (b) Network with different transmission success rate links.
Figure 3. Illustration of routing with network coding. (a) Network with the same transmission success rate links; (b) Network with different transmission success rate links.
Applsci 07 00809 g003
Figure 4. Three main cases dealt with by the algorithm. (a) Alternative local path strategy under poor quality of input link. (b) Alternative local path strategy under poor quality of output link. (c) Alternative local path strategy under current node without coding opportunities.
Figure 4. Three main cases dealt with by the algorithm. (a) Alternative local path strategy under poor quality of input link. (b) Alternative local path strategy under poor quality of output link. (c) Alternative local path strategy under current node without coding opportunities.
Applsci 07 00809 g004
Figure 5. Comparison of delay distributions of packets between NCR and ANCR. (a) NCR: 220 packets, 2 data streams; (a’) ANCR: 220 packets, 2 data streams; (b) NCR: 660 packets, 5 data streams; (b’) ANCR: 660 packets, 5 data streams; (c) NCR: 880 packets, 20 data streams; (c’) ANCR: 880 packets, 20 data streams.
Figure 5. Comparison of delay distributions of packets between NCR and ANCR. (a) NCR: 220 packets, 2 data streams; (a’) ANCR: 220 packets, 2 data streams; (b) NCR: 660 packets, 5 data streams; (b’) ANCR: 660 packets, 5 data streams; (c) NCR: 880 packets, 20 data streams; (c’) ANCR: 880 packets, 20 data streams.
Applsci 07 00809 g005
Figure 6. Comparison of throughput between NCR and ANCR. (a) 2 data streams; (b) 5 data streams; (c) 20 data streams.
Figure 6. Comparison of throughput between NCR and ANCR. (a) 2 data streams; (b) 5 data streams; (c) 20 data streams.
Applsci 07 00809 g006
Figure 7. Energy consumption of nodes under using NCR and ANCR. (a) Energy consumption of nodes under using NCR. (b) Energy consumption of nodes under using ANCR.
Figure 7. Energy consumption of nodes under using NCR and ANCR. (a) Energy consumption of nodes under using NCR. (b) Energy consumption of nodes under using ANCR.
Applsci 07 00809 g007
Table 1. Main part of optimal local path Algorithm.
Table 1. Main part of optimal local path Algorithm.
No.Sentence of Algorithm
1: if node v is a cross node;
2: L(v) = ϕ ;
3: compute E ( I n t ) of two local paths: p 1 v n 1 , p 2 v n 2 ;
4: for each v’s neighbour node a;
5:   if α a , v < α p 2 , v then
6:   there is a local path strategy S t : p 1 a n 1 , p 2 a v n 2 ;
7:    E ( S t ) = m a x ( α p 1 , a , α p 1 , v ) + m a x ( α p 2 , a , α p 2 , n 1 ) + m a x ( α a , n 1 , α a , v ) + α v , n 2 ;
8:    if E ( I n t ) > E ( S t ) then
9:     L ( v ) = L ( v ) + S t ;
10:    end if
11:   end if
12:   if α v , a < α v , n 2 then
13:   there is a local path strategy S t : p 1 a n 1 , p 2 v a n 2 ;
14:    E ( S t ) = m a x ( α p 1 , a , α p 1 , n 2 ) + m a x ( α v , a , α v , n 1 ) + m a x ( α a , n 2 , α a , n 1 ) + α p 2 , v ;
15:    if E ( I n t ) > E ( S t ) then
16:     L ( v ) = L ( v ) + S t ;
17:    end if
18:   end if
19: end for
20: get l ( v ) and use l ( v ) as new local paths;
21: else if node v is a pseudo cross node then
22: L ( v ) = ϕ ;
23: compute E ( I n t ) of two local paths: p 1 n 1 , p 2 v n 2 ;
24: there is a local path strategy S t : p 1 v n 1 , p 2 v n 2 ;
25: E ( S t ) = m a x ( α p 2 , v , α p 2 , n 1 ) + m a x ( α p 1 , v , α p 1 , n 2 ) + m a x ( α v , n 2 , α v , n 1 ) ;
26: if E ( I n t ) > E ( S t ) then
27:   L ( v ) = L ( v ) + S t ;
28: end if
29: for each v’s neighbour node a do
30:  there is a local path strategy S t : p 1 a n 1 , p 2 a n 2 ;
31:   E ( S t ) = m a x ( α p 2 , a , α p 2 , n 1 ) + m a x ( α p 1 , a , α p 1 , n 2 ) + m a x ( α a , n 2 , α a , n 1 ) ;
32:   if E ( I n t ) > E ( S t ) then
33:    L ( v ) = L ( v ) + S t ;
34:   end if
35: end for
36: get l ( v ) and use l ( v ) as new local paths;
37: end if

Share and Cite

MDPI and ACS Style

Ji, X.; Wang, A.; Li, C.; Ma, C.; Peng, Y.; Wang, D.; Hua, Q.; Chen, F.; Fang, D. ANCR—An Adaptive Network Coding Routing Scheme for WSNs with Different-Success-Rate Links. Appl. Sci. 2017, 7, 809. https://doi.org/10.3390/app7080809

AMA Style

Ji X, Wang A, Li C, Ma C, Peng Y, Wang D, Hua Q, Chen F, Fang D. ANCR—An Adaptive Network Coding Routing Scheme for WSNs with Different-Success-Rate Links. Applied Sciences. 2017; 7(8):809. https://doi.org/10.3390/app7080809

Chicago/Turabian Style

Ji, Xiang, Anwen Wang, Chunyu Li, Chun Ma, Yao Peng, Dajin Wang, Qingyi Hua, Feng Chen, and Dingyi Fang. 2017. "ANCR—An Adaptive Network Coding Routing Scheme for WSNs with Different-Success-Rate Links" Applied Sciences 7, no. 8: 809. https://doi.org/10.3390/app7080809

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop