[ieee 2009 seventh annual communication networks and services research conference (cnsr) - moncton,...

3
RACE: A Real-Time Scheduling Policy and Communication Architecture for Large-Scale Wireless Sensor Networks Kambiz Mizanian, Reza Hajisheykhi, Mohammad Baharloo, Amir Hossein Jahangir Department of Computer Engineering, Sharif University of Technology, Tehran, Iran [email protected], [email protected], [email protected], [email protected] Abstract—In wireless sensor networks (WSN), individual sensor nodes are inherently unreliable and have very limited capabilities to ensure real-time properties. In fact, one of the most predominant limitations in wireless sensor networks is energy consumption, which hinders the capacity of the network to provide real-time guarantees (e.g. low duty-cycles, low transmission range). Many approaches have been proposed to deal with energy/latency trade-offs, but they are likely to be insufficient for the applications where reduced delay guarantee is the main concern. We present and evaluate a packet scheduling policy and routing algorithm called RACE that inherently accounts for time constraints. We show that this algorithm is particularly suitable for communication in sensor networks in which a large number of wireless devices are seamlessly integrated into a physical space to perform real- time monitoring and control. Detailed simulations of representative sensor network environments demonstrate that RACE significantly reduces the end-to-end deadline and miss ratio in the sensor network. Also RACE will balance load and energy consumption of network and life time of network will be increased. Keywords-Real-time; Wireless Sensor Networks; Bellman- Ford; EDF; QoS; I. INTRODUCTION Typically, a Wireless Sensor Network (WSN) is composed of a large number of nodes having processing, sensing and radio communication capabilities, scattered throughout a certain geographical region, where the sensory data is routed in a multi-hop ad-hoc fashion from the originator sensor node to a remote control station. In this paper, we refer to large scale sensor network, as a network with large number of sensor nodes. WSNs differ from other types of wireless networks due to their tight interaction with the physical environment and to the hardware limitations of the low-cost sensor nodes. The latter feature has an important implication on the networking performance of individual sensor nodes due to their limited capacities in terms of energy, CPU speed, memory and bandwidth. These features make sensor nodes naturally unreliable, raising additional challenges for sensor networks to support real- time and reliable communications. While low energy consumption has been considered as the most predominant requirement in the design of wireless sensor networks, supporting real-time communications is nonetheless increasingly important. In fact, a sensor network typically interacts with a physical environment, thus it has to meet timing constraints. Time requirements are generally in the form of end-to-end deadlines of sensory data packets from sensor nodes toward a control station. The primary real-time requirement is to guarantee bounded end-to-end delays or at least statistical delay bounds. Many approaches have dealt with providing delay bounds in a multi-hop sensor network. This has been basically achieved by means of Medium Access Control (MAC) protocols such as LEACH [1], D-MAC [2], and DB- MAC [3], which guarantee that every node gains medium access rights within a bounded time interval. Other solutions have targeted the Network Layer protocols to support real- time communications, such as SPEED [4]. The rest of this paper is organized as follows: in Section II we explain our design goal. In Section III our algorithm is clarified. Section IV presents the simulation results and Section V provides some conclusions. II. DESIGN GOALS Our design is inspired by the observation that unlike wired networks, where the delay is independent from the physical distance between the source and destination, in multi-hop wireless sensor networks, the end-to-end delay depends on not only single hop delay, but also on the distance a packet travels. In view of this, the key design of the RACE algorithm is to support a soft real-time communication service through the path with minimum delay across the sensor network, so that end-to-end delay is proportional to congestion of nodes between source and destination. We use the Loop-free Bellman–Ford algorithm to find the path with minimum traffic load between source and destination. In each node we use Earliest Deadline First (EDF) scheduling algorithm to send the packet with earliest deadline before other packets in the node’s queue. Also we use a prioritized MAC, like RAP [5]. RACE satisfies the following design objectives: 1. Stateless Architecture 2. Soft Real-Time 3. QoS Routing and Congestion Management 4. Traffic Load Balancing 5. Localized Behavior 6. Void Avoidance 2009 Seventh Annual Communications Networks and Services Research Conference 978-0-7695-3649-1/09 $25.00 © 2009 IEEE DOI 10.1109/CNSR.2009.84 458 2009 Seventh Annual Communication Networks and Services Research Conference 978-0-7695-3649-1/09 $25.00 © 2009 IEEE DOI 10.1109/CNSR.2009.84 458

Upload: amir-hossein

Post on 15-Dec-2016

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: [IEEE 2009 Seventh Annual Communication Networks and Services Research Conference (CNSR) - Moncton, BC, Canada (2009.05.11-2009.05.13)] 2009 Seventh Annual Communication Networks and

RACE: A Real-Time Scheduling Policy and Communication Architecture for Large-Scale Wireless Sensor Networks

Kambiz Mizanian, Reza Hajisheykhi, Mohammad Baharloo, Amir Hossein Jahangir Department of Computer Engineering, Sharif University of Technology, Tehran, Iran

[email protected], [email protected], [email protected], [email protected]

Abstract—In wireless sensor networks (WSN), individual sensor nodes are inherently unreliable and have very limited capabilities to ensure real-time properties. In fact, one of the most predominant limitations in wireless sensor networks is energy consumption, which hinders the capacity of the network to provide real-time guarantees (e.g. low duty-cycles, low transmission range). Many approaches have been proposed to deal with energy/latency trade-offs, but they are likely to be insufficient for the applications where reduced delay guarantee is the main concern. We present and evaluate a packet scheduling policy and routing algorithm called RACE that inherently accounts for time constraints. We show that this algorithm is particularly suitable for communication in sensor networks in which a large number of wireless devices are seamlessly integrated into a physical space to perform real-time monitoring and control. Detailed simulations of representative sensor network environments demonstrate that RACE significantly reduces the end-to-end deadline and miss ratio in the sensor network. Also RACE will balance load and energy consumption of network and life time of network will be increased.

Keywords-Real-time; Wireless Sensor Networks; Bellman-Ford; EDF; QoS;

I. INTRODUCTION Typically, a Wireless Sensor Network (WSN) is

composed of a large number of nodes having processing, sensing and radio communication capabilities, scattered throughout a certain geographical region, where the sensory data is routed in a multi-hop ad-hoc fashion from the originator sensor node to a remote control station. In this paper, we refer to large scale sensor network, as a network with large number of sensor nodes. WSNs differ from other types of wireless networks due to their tight interaction with the physical environment and to the hardware limitations of the low-cost sensor nodes. The latter feature has an important implication on the networking performance of individual sensor nodes due to their limited capacities in terms of energy, CPU speed, memory and bandwidth. These features make sensor nodes naturally unreliable, raising additional challenges for sensor networks to support real-time and reliable communications.

While low energy consumption has been considered as the most predominant requirement in the design of wireless sensor networks, supporting real-time communications is nonetheless increasingly important. In fact, a sensor network

typically interacts with a physical environment, thus it has to meet timing constraints. Time requirements are generally in the form of end-to-end deadlines of sensory data packets from sensor nodes toward a control station.

The primary real-time requirement is to guarantee bounded end-to-end delays or at least statistical delay bounds. Many approaches have dealt with providing delay bounds in a multi-hop sensor network. This has been basically achieved by means of Medium Access Control (MAC) protocols such as LEACH [1], D-MAC [2], and DB-MAC [3], which guarantee that every node gains medium access rights within a bounded time interval. Other solutions have targeted the Network Layer protocols to support real-time communications, such as SPEED [4].

The rest of this paper is organized as follows: in Section II we explain our design goal. In Section III our algorithm is clarified. Section IV presents the simulation results and Section V provides some conclusions.

II. DESIGN GOALS Our design is inspired by the observation that unlike

wired networks, where the delay is independent from the physical distance between the source and destination, in multi-hop wireless sensor networks, the end-to-end delay depends on not only single hop delay, but also on the distance a packet travels.

In view of this, the key design of the RACE algorithm is to support a soft real-time communication service through the path with minimum delay across the sensor network, so that end-to-end delay is proportional to congestion of nodes between source and destination.

We use the Loop-free Bellman–Ford algorithm to find the path with minimum traffic load between source and destination. In each node we use Earliest Deadline First (EDF) scheduling algorithm to send the packet with earliest deadline before other packets in the node’s queue. Also we use a prioritized MAC, like RAP [5].

RACE satisfies the following design objectives: 1. Stateless Architecture 2. Soft Real-Time 3. QoS Routing and Congestion Management 4. Traffic Load Balancing 5. Localized Behavior 6. Void Avoidance

2009 Seventh Annual Communications Networks and Services Research Conference

978-0-7695-3649-1/09 $25.00 © 2009 IEEE

DOI 10.1109/CNSR.2009.84

458

2009 Seventh Annual Communication Networks and Services Research Conference

978-0-7695-3649-1/09 $25.00 © 2009 IEEE

DOI 10.1109/CNSR.2009.84

458

Page 2: [IEEE 2009 Seventh Annual Communication Networks and Services Research Conference (CNSR) - Moncton, BC, Canada (2009.05.11-2009.05.13)] 2009 Seventh Annual Communication Networks and

III. RACE PROTOCOL RACE maintains a desired delivery delay across sensor

networks by selecting the path with minimum delay and EDF packet scheduling policy.

For finding the path with minimum delay we use Bellman-Ford algorithm. Bellman-Ford is in its basic structure very similar to Dijkstra's algorithm, but instead of greedily selecting the minimum-weight node not yet processed to relax, it simply relaxes all the edges, and does this |V| � 1 times, where |V| is the number of vertices in the graph. Weight of each edge is equal to delay between this two neighbors node. This delay is the sum of queue delay of node and propagation delay between two nodes. The repetitions allow minimum delay to accurately propagate throughout the graph, since in the absence of negative cycles the path with minimum delay can only visit each node at most once. Unlike the greedy approach, which depends on certain structural assumptions derived from positive weights, this straightforward approach extends to the general case.

As in WSN all of packet will deliver to sink so each node has a table that contains its delay to neighbor’s nodes and delay of neighbor’s nodes to sink node. So memory consumption of each node depends to its neighbor’s nodes. It means that this is a scalable algorithm and we can use it large scale WSNs.

Bellman–Ford runs in O(|V|·|E|) time, where |V| and |E| are the number of vertices and edges respectively, but as we said before, the destination of all packets is the sink so Bellman-Ford runs in O(|E|) for each node.

We use single hop delay as the metric to approximate the load of a node. In a scarce bandwidth environment, we cannot afford to use probing packets to estimate the single hop delay. Instead we use the data packets passing this node to perform this measurement. Delay is measured at the sender, which timestamps the packet entering the network output queue and calculates the round trip single hop delay for this packet when receiving the ACK. The single-trip time is calculated according to half of the round trip delay that experienced by the sender. We compute the current delay estimation by combining the newly measured delay with previous delays via the exponential weighted moving average (EWMA) [6]. We argue that this delay estimation is a better metric than average queue size for representing the congestion level of the wireless network, because the shared media nature of the wireless network allows the network to be congested even if queue sizes are small. For single hop delay we did not assume that all the nodes are time synched and all the calculation will be done by sender node.

If a node has heavy load then its single hop delay will be increased and by the Bellman-Ford algorithm the load will be balanced and the other node around the heavy load node will route the traffic. So traffic load and energy consumption will be balanced and the network life time will increase.

A key component of real-time communication architectures is the packet scheduling policy which determines the order in which incoming packets at a node

are forwarded to an outgoing link. In existing wireless sensor networks, packets are typically forwarded in FCFS order. FCFS scheduling does not work well in real-time networks where packets have different end-to-end deadlines. Instead, competing packets should be prioritized based on their local urgency. In the context of sensor networks, packet scheduling should be deadline-aware. Deadline-aware means that a packet’s priority should relate to its deadline. The shorter the deadline, the higher the packet priority should be.

Assuming that packets that miss their deadlines are useless, priority queues actively drop packets that have missed their deadlines to avoid wasting the bandwidth.

Local prioritization at each individual node is not sufficient in wireless networks because packets from different senders can compete against each other for a shared radio communication channel.

In this paper we implemented two extensions proposed by Aad and Castelluccia [7]. We modified two components of the standard 802.11 implementation: the initial wait time after the channel becomes idle, and the backoff window increase function. These mechanisms are chosen because they introduce minimal overhead and can be ported to light-weight CSMA/CA protocols [8] that are more suitable to sensor networks than 802.11. The detailed description and analysis of these mechanisms are available in [7].

IV. PERFORMANCE EVALUATION In this section we use Castalia [10] to simulate the

performance of proposed RACE algorithm. Table I describes the detailed setup for our simulator. The communication parameters are mostly chosen in reference to the Berkeley Mote [9] specification

TABLE I. SIMULATION SETTINGS

Routing Protocol SPEED, RAP, RACE Propagation model TWO-RAY Bandwidth 200Kb/s Payload size 40 Byte TERRAIN (200m, 200m) Node number 100 Node placement Uniform Radio Range 40m

There are two typical traffic patterns in sensor networks: a base station pattern and a peer-to-peer pattern.

In our evaluation, we use a base station scenario, where 6 nodes, randomly chosen from the left side of the terrain, send data to the base station at the middle of the right side of the terrain. The average hop count between the node and base station is about 8~9 hops. Each node generates flow with a rate of 1 packet/second. To create congestion, at time 80 seconds, we create a flow between two randomly chosen nodes in the middle of the terrain. This flow then disappears at time 150 seconds into the run. In order to evaluate the end-to-end delay we increase the rate of this flow step by step from 10 to 90 packets/second over several simulations.

Fig. 1 plot shows the end-to-end delay. As we can see, RACE reduces the average end-to-end delay by 30%~40%

459459

Page 3: [IEEE 2009 Seventh Annual Communication Networks and Services Research Conference (CNSR) - Moncton, BC, Canada (2009.05.11-2009.05.13)] 2009 Seventh Annual Communication Networks and

in the face of heavy congestion in comparison to the other algorithms considered.

The result shown in Fig. 2 is the summery of 16 randomized run. It shows miss ratio under different deadlines according to traffic rate of 70 p/s. As we can see RACE has a better miss ratio in comparison to RAP and SPEED.

Fig. 3 shows the miss ratio under different traffic rates according to deadline of 60 ms, also our algorithm has a better miss ratio in comparison of other algorithms.

0

0.02

0.04

0.06

0.08

0.1

0.12

0.14

0 50 100 150 200

Time (S)

E2E

Del

ay (S

)

RACE RAP SPEED

Figure 1. End-to-end delay

0

0.2

0.4

0.6

0.8

1

20 30 40 50 60 70 80 90

Deadline (ms)

Mis

s R

atio

RACE RAP SPEED

Figure 2. Miss ratio under different deadlines based on traffic rate of 70 p/s

0

0.2

0.4

0.6

0.8

1

10 20 30 40 50 70 90

Rate (p/s)

Mis

s R

atio

RACE RAP SPEED

Figure 3. Miss ratio under different congestions based on deadline of 60 ms

V. CONCLUSION Real-time communication is a critical service for future

sensor networks to provide distributed micro-sensing in physical environments. We present RACE, new real-time communication architecture for large-scale sensor networks. We use Loop-free Bellman-Ford algorithm for finding a route from each source to sink with minimum delay. Weight of algorithm is propagation delay plus queuing delay plus contention delay. So we will balance load and energy consumption of network and life time of network will be increased. Also we present EDF as scheduling policy for priority queue in each node and we use prioritized MAC.

This combination of routing protocol and scheduling policy decreases 30%~40% the average end-to-end delay and the average miss ratio of RACE according to SPEED and RAP protocols.

ACKNOWLEDGMENT This work has partly been supported by Iran

Telecommunication Research Center (ITRC) under Contract No. 7724/500.

REFERENCES [1] W. R. Heinzelman, A. Chandrakasan, and H. Balakrishnan, Energy-

Efficient Communication Protocols for Wireless Microsensor Networks, In Proc. of the Hawaii International Conference on Systems Sciences, Jan. 2000.

[2] G. Lu, B. Krishnamachari, C.S. Raghavendra, An Adaptive Energy Efficient and Low-Latency MAC for Data Gathering in Wireless Sensor Networks, In Proc. of the 18th International Parallel and Distributed Processing Symposium, Apr. 2004.

[3] G. D. Bacco et al., A MAC Protocol for Deal-Bounded Applications in Wireless Sensor Networks, In Proc. of Third Annual Mediterranean Ad Hoc Networking Workshop, June 27-30, 2004.

[4] T. He, J. Stankovic, C. Lu, and T. Abdelzaher, SPEED: A Real-Time Routing Protocol for Sensor Networks, in Proc. of ICDCS’03,May 2003.

[5] C. Lu, B. M. Blum, T. F. Abdelzaher, J. A. Stankovic, and T. He. RAP: A Real-Time Communication Architecture for Large-Scale Wireless Sensor Networks, In IEEE RTAS 2002, September 2002.

[6] J. F. Kurose, K. W. Ross. Computer Networking A Top-Down Approach Featuring the internet. ISBN 0-201-47711-4 Addison Wesley Longman Inc.

[7] I. Aad and C. Castelluccia, Differentiation Mechanisms for IEEE 802.11, IEEE INFOCOM 2001, Anchorage, Alaska, April 2001.

[8] Woo and D. Culler. A Transmission Control Scheme for Media Access in Sensor Networks, ACM/IEEE International Conference on Mobile Computing and Networks (MobiCOM 2001), Rome, Italy, July 2001.

[9] J. Hill, R. Szewczyk, A. Woo, S. Hollar, D. Culler, and K. Pister, “System architecture directions for network sensors,” In Proceedings of ASPLOS, pp.93-104, 2000.

[10] http://castalia.npc.nicta.com.au/index.php

460460