Professional Documents
Culture Documents
Wireless Sensor Network
Wireless Sensor Network
org
Published in IET Wireless Sensor Systems
Received on 21st April 2011
Revised on 4th September 2011
doi: 10.1049/iet-wss.2011.0069
ISSN 2043-6386
Abstract: Omni-directional two-way traffic flow using flooding leads to broadcast storm problem in a wireless sensor network
(WSN). The probabilistic routing protocols help in reducing the broadcast storm but lack reliability. Network coding is a new
paradigm that allows an intermediate node to encode incoming packets which improves the bandwidth efficiency and
reliability of the WSN. A network coding-based probabilistic routing (NCPR) scheme has been proposed, which is energy-
efficient, reliable and alleviates the broadcast storm problem in a clustered WSN. The focus of this work is to design the
network coding-based procedures for probabilistic routing protocols. In NCPR, a sensor node initialises a transmission
process in a WSN cluster by transmitting a packet from its sensed queue. Each neighbour node encodes its received packet
with its sensed packet using XOR network coding and transmits the coded packet with certain probability. Three network
coding-based procedures have been proposed for encoding and decoding of packets in intra-cluster and inter-cluster
communications by distributing roles among the sensor nodes. It has been shown that the NCPR scheme provides better
energy efficiency and reliability compared to the probabilistic routing and pure flooding schemes.
n
Y = qi Gi , qi [ GF(2s ) (1)
i=1 Fig. 1 XOR network coding
neighbour sensor nodes encode (XOR) its own native packet of packets of length x are encoded from the same source or
with the received packet and retransmit the coded packet with from different sources. v is 1 for XOR network coding. To
routing probability p. Each active sensor node transmits once restrict the overhead in the packet header, the r-coded packets
before a second round of transmission starts. Let there are g need to be restricted. Since in NCPR scheme a cluster is
edge sensor nodes that act as relay nodes in a cluster. So, restricted to a clique, the value of r reduces. It helps us to
(r 2 g) number of sensor nodes share their information with design a generalised XOR coding scheme for a cluster-based
each other. In the NCPR scheme, packet loss at the receiver WSN with even and odd number of intermediate sensor nodes
sensor nodes is independent and uncorrelated (i.e. follows a which is presented later in this section.
Bernoulli trial). A receiver sensor node requests for
a packet which is not received successfully by sending a
negative acknowledgment packet. However, the receiver 3.4 Responsibility of sensor nodes
node waits till the completion of one round of
retransmissions by its neighbours. The node receives coded Inter-cluster and intra-cluster communications are shown in
packets from all other nodes and it decodes the lost packet Figs. 3a and b, respectively. Fig. 3b also shows a scenario
without requesting for a fresh retransmission. This approach of communication between two neighbouring clusters such
improves the bandwidth efficiency in the network. as Cluster 1 and Cluster 2 using edge or relay sensor node.
However, if after one round of retransmission the receiver In NCPR scheme, sensor nodes are differentiated into three
node does not get enough packets to decode, it requests the categories depending on their functionalities at various
sender to retransmit the lost packets. If a native packet at locations in a cluster: Type 1, Type 2 and Type 3 [26].
the relay node in a cluster is lost, the node requests for a Operations of all the three types of sensor nodes are shown
fresh retransmission. in Fig. 4. Type 1 (node S in Fig. 3b) sensor node
broadcasts sensed packets to the sensor nodes within its
range. Type 2 (nodes A and B in Fig. 3b) sensor nodes
3.3 Model for network coding inside a cluster perform network coding and broadcast the
encoded packets. The sensor nodes which are in its range
In NCPR scheme, the XOR network coding is used. Length receive the encoded packets. Type 1 and Type 2
of an encoded packet (i.e. A(x)) in NCPR scheme is given by intermediate sensor nodes interchange their role from time
to time inside a cluster (refer flowchart in Fig. 5). Pi is the
A(x) = vx + h (3) ith received packet that is stored in the input queue of an
intermediate sensor node (Fig. 4a). Pi is ready for encoding
where x is the length (in bits) of a sensed native packet, h is the operation. Pj is the jth sensed packet which is also ready for
length of the header (in bits) for network coding and v is a encoding operation in an intermediate sensor node
positive integer constant. The header contains an encoding (Fig. 4a). Type 3 sensor nodes (e.g. node C in Fig. 3b) are
vector as well as some bits to identify the sensor nodes whose the edge or boundary nodes (in Fig. 3a) which act as the
packets are encoded. The overhead increases as more number relay nodes for inter-cluster communication.
3.4.1 Role of packet transmitting and packet flowcharts (refer Figs. 5 – 7). As shown in Fig. 5, whenever
receiving nodes: Packet transmitting nodes are the the role of a sensor node is Type 1, the node keeps the
nodes which transmit packets in a network during a previously transmitted native packet in buffer (i.e. Pj21).
particular duration of time. Packet receiving nodes are the The current sensed packet is stored in Pj . The native packet
nodes which receive packets in a network during a Pj is transmitted if Pj is significantly different than Pj21 ,
particular duration of time. Let S transmits a native packet otherwise, the transmission is stopped. However, when the
with p ¼ 1 in the scenario as shown in Fig. 3b. The nodes role of a node is Type 2, transmission of encoded packet
A, B and C are the neighbours of S and receive the has occurred as shown in Fig. 5. The edge or relay (Type
packet. The node A encodes its sensed packet with the 3) sensor nodes receives native and encoded packets in the
received one. Node A transmits the encoded packet which cluster. The Type 3 node picks a packet and checks
is further received by the nodes S, B, C and D as shown whether it is an encoded packet or not as shown in Fig. 6.
in Fig. 3b. So, the total number of transmitting nodes is Whenever the packet Pi is a native data packet, the content
two and the total number of receiving nodes is seven after of the packet is stored in a buffer. If Pi is an encoded
two transmissions. Moreover, when the number of packet then the decoding of encoded packets takes place by
retransmissions in the network increases, the total number the edge or relay sensor node as depicted in Fig. 6. The
of nodes involved in the process of transmission and decoded packets are stored in Pk which are used for the
reception also increases (i.e. there is an increase in the encoding process at the relay node. The encoding process
number of packet transmitting and packet receiving nodes occurs by the Type 3 nodes after taking decoded packets
in the network). from Pk as shown in Fig. 7. P0 contains the received native
packet. Pc stores the encoded packet after the encoding
3.5 Working principle of NCPR process. If the number of intermediate sensor nodes (i.e. K )
is odd, the native data packet P0 is encoded (XOR) with Pc ,
The proposed encoding and decoding procedures (processes) otherwise the encoded packet is constructed without P0
for different types of sensor nodes are shown using three (refer Fig. 7).
Rp a⊕s s s s a⊕s
b⊕s b⊕s a⊕s a⊕s b⊕s
a⊕b⊕s a⊕b⊕s a⊕b⊕s b⊕s a⊕b⊕s
Sp s a b – –
Selection of cluster head is done using round-robin technique. Etx = etx + ex d l (5)
In a clique, all the sensor nodes are within the range of each
other which form a cluster. Any sensor node can be randomly where etx is the energy consumption of the transmitter
electronics, ex is the energy consumption of the transmit
Table 4 Relay node encoded packets
amplifier, d is the transmission distance and l is the path
loss exponent which is considered as 2.
Sharing nodes Relay node trans. Nodes involved
2 a S, A, B (relay)
3.8.1 Energy consumption against packet loss:
3 a⊕b⊕s S, A, B, C (relay)
Without network coding, the minimum number of
4 a⊕b⊕c S, A, B, C, D (relay)
transmissions (lower bound) required to share the data packets
5 a⊕b⊕c⊕d⊕s S, A, B, C, D, E (relay)
between r sensor nodes inside a cluster is r. If g nodes in the
boundary are considered as relay nodes then total number of
Econ = (r − g + f )Etx + nrw et (6) where H2 is the fixed length header within a network coded
packet, M2T is the total bits transmitted which contains
information symbol bits and header bits using the proposed
where nrw is the number of packet receptions without network scheme, M1T is the total bits transmitted which contains
coding. The number of link failures (i.e. f ) vary from 1 to information symbol bits and header bits in the probabilistic
(r 2 g) as per our consideration. In NCPR scheme, there is no routing scheme. Furthermore, the reception coding gain can
need of retransmissions against f packet loss. If the number of be formulated as
link failures inside a cluster is greater than (r 2 g), then there
is a requirement of retransmissions. Therefore the energy W
i=1 L2 (i) − Wi=1 H2 (i)
consumption with network coding can be given by (10)
W (L1 − H1 )
Econ = (r − g)Etx + nrn et (7) where W is the total number of receptions in the WSN, L1 is
the number of bits received in probabilistic routing (without
network coding) with header H1 bits in one reception, L2(i)
where nrn is the number of packet receptions with network is the number of native bits received in the ith (encoded)
coding. packet reception in NCPR scheme with header H2(i) bits.
As a special case, with fixed length header, the reception
3.9 Network coding gain coding gain can be derived from (10) as
The retransmitted packets in the proposed NCPR scheme L2 W − H2 W L2 − H2
contain encoded packets. To reduce the packet header = (11)
L1 W − H1 W L1 − H1
length, only 2-coded and 3-coded packets are considered as
shown in Tables 2 and 3. When the number of sensor
nodes increases in the cluster, the r-coded packets can also where L2W is the total bits received which contains
be transmitted by the relay node as shown in Table 4. information symbol bits and header bits using the proposed
Network coding gain is defined by Nguyen et al. [15] for scheme, L1W is the total bits received which contains
single-hop communication. The definition of network information symbol bits and header bits in the probabilistic
coding gain however needs modification in view of multi- routing scheme.
hop communication with the use of coding header. Two Both the transmission coding gain and the reception coding
categories of network coding gain can be achieved: gain represent the improvement of the proposed scheme
transmission coding gain and reception coding gain. The against the probabilistic routing scheme and the pure
transmission coding gain is different than the reception flooding scheme in WSN. In probabilistic routing schemes
coding gain because for each copy of transmission of native [3, 4, 22], each message contains only one packet.
packet, multiple copies of native packets are received in However, in NCPR scheme, the intermediate nodes
WSN. In a generalised scenario of network coding, each retransmit the received packets with a probability p after
node can encode packets from its own sensed data or from encoding their own sensed data with it. Therefore a single
the received data from different neighbouring nodes or from transmission contains multiple packets which leads to high
the both. Therefore the length of the coding header network throughput.
associated in NCPR scheme is dissimilar for each
transmission. Moreover, the packet header associated with 4 Performance evaluation of NCPR scheme
each packet in network coding scheme have two parts: (a)
coding vector which is used to encode packets of a The NCPR scheme is implemented in a MATLAB-based
particular sensor node, (b) some bits that specify the source network simulator known as Prowler [28]. For the
of the encoded native packets. So, the header bits in NCPR experiments, a simple MAC layer protocol is used. In this
scheme may vary for different encoded packets. So as to protocol, a sensor node waits for a random duration of time
calculate the actual native information symbol bits before trying to transmit a packet and then waits for a
transmitted, the total header bits need to be eliminated. The random back off time if the channel is in busy state. The
transmission coding gain can be formulated as sensor node keeps trying until the transmission can be
performed. This protocol consumes less energy than the
T more sophisticated protocols like 802.11 MAC. The radio
i=1 M2 (i) − Ti=1 H2 (i) propagation model is the free space path loss model where
(8) the signal strength decreases with increase in (d )l and with
T (M1 − H1 )
fading effect. The path loss exponent, l, is considered as
2. Results are averaged after taking 20 simulation runs: both
where T is the total number of transmissions in WSN, M1 is for sensor nodes arranged in linear topology (linear array)
the number of bits transmitted in probabilistic routing and grid topology (grid sensor or sensor nodes in grid). A
(without network coding) with header H1 bits using one simulation parameter table is given in Table 5.
transmission, M2(i) is the number of native bits transmitted Network coding gain of NCPR scheme for the linear array
in the ith (encoded) packet transmission in NCPR scheme is shown in Fig. 8a. For simplicity, all the encoded packets
with header H2(i) bits. As a special case, with fixed length are taken as two-coded packets for the linear array of 20
Fig. 8 Network coding gain of NCPR scheme for the linear array
a Network coding gain against probability of retransmission ( p)
b Number of (packet transmitting and receiving) nodes against probability of retransmission ( p) in a linear array of 20 sensor nodes using NCPR scheme
Fig. 9 Network coding gains of NCPR scheme for a grid topology with 100 sensor nodes
a Network coding gain against probability of retransmission ( p)
b Number of (packet transmitting and receiving) nodes against probability of retransmission ( p) in a 10 × 10 grid WSN using NCPR scheme
5 Conclusions
In this paper, an NCPR scheme for cluster-based WSN has
been presented. The proposed NCPR improves the
performance of the network with high network coding gain
and low energy consumption. It has been shown that the
Fig. 10 Number of received packets of the proposed NCPR scheme proposed NCPR scheme could achieve a coding gain up to
and probabilistic routing (i.e. GOSSIP1) by Haas et al. [3] with 1.9 with respect to probabilistic routing scheme. Further,
same energy consumption in a linear array of 20 sensor nodes the NCPR scheme provides better reliability in terms of
protection of data packets against link failures. Every
intermediate sensor node in a cluster protects data packets
against one link failure. The retransmission packets contain
network coded packets rather than the non-coded native
packets which utilise link bandwidth efficiently. Also, the
routing probability of retransmitting nodes can be controlled
depending upon the network topology and number of
sensor nodes in the WSN. Using network coding, both the
intra-cluster and the inter-cluster communication are
discussed. Encoding data packets distributively throughout
the network reduces the number of retransmissions in the
network. It can be observed from the simulation results that
the volume of information transmitted in the NCPR scheme
are significantly more than the probabilistic routing and
pure flooding schemes with the same number of
transmissions and energy consumption. For many-to-many
Fig. 11 Number of received packets of the NCPR scheme and
communication paradigm, suitable values of routing
probabilistic routing (i.e. GOSSIP1) by Haas et al. with same
probabilities of the proposed scheme have been identified
energy consumption in a 10 × 10 grid WSN
to minimise the number of collisions of network coded
packets. The efficacy of the proposed approach has been
shown for two cases (i) sensor nodes arranged in a linear shown through simulation results and theoretical analysis.
topology and (ii) sensor nodes arranged in a grid topology, Future work includes the performance study of NCPR in a
respectively. The total energy consumption in the network dynamic scenario with some mobile sensor nodes in a
for different routing probabilities ( p) are shown along the monitoring area. This dynamic behaviour may lead to the
X-axis (refer Figs. 10 and 11). As the probability of formation of dense and sparse regions. Further, in future,
retransmission increases, the number of transmissions and study of the NCPR scheme for delay sensitive applications
receptions of packets increases in the network. Therefore will be carried out.