ENERGY MANAGEMENT IN BATTERY-POWERED ... - Xun ZHANG

reconfigurable fabric which can be configured by downloading a bitstream. In contrast to the contemporary work in energy management for sensor networks, we ...
97KB taille 2 téléchargements 305 vues
ENERGY MANAGEMENT IN BATTERY-POWERED SENSOR NETWORKS WITH RECONFIGURABLE COMPUTING NODES* Jawad Khan and Ranga Vemuri ECECS Department, University of Cincinnati, Cincinnati, Ohio 45221-0030, USA {jkhan,ranga}@ececs.uc.edu some of the related work. Section 3 is about the target hardware architectures. We discuss battery characteristics and the battery model we have used in Section 4. The sensor network simulation model is described in Section 5. Finally, we present the simulation results in Section 6.

ABSTRACT In this work we have investigated the benefits of using reconfigurable computing (RC) nodes in sensor networks. We assumed that several sensor nodes are deployed randomly in a field, to form a sensor network and each sensor in the network sends its data in the form of packets to a single energyrich sink node. We also assumed that each sensor node has reconfigurable fabric which can be configured by downloading a bitstream. In contrast to the contemporary work in energy management for sensor networks, we use an accurate analytical battery model to simulate the battery consumption of each node in the network. We have written several simulation models to study various sensor network parameters when the underlying nodes are adaptive in nature instead of traditional, non-adaptive processor based, fixed implementation. As the remaining battery-capacity of our RC based node decreases, it changes its behavior by reconfiguring itself to lower powered implementations successively, thereby extending the sensor network lifetime as a whole. Our results indicate that the network life is increased by upto five times and the number of packets generated by the sensor nodes and received at the sink node more than quadrupled for RC based nodes when compared to fixed processor based node implementation.

2. RELATED WORK This paper addresses energy management in two important areas: battery-powered RC platforms and battery-powered sensor networks. Most of the work in the area of energy management for RC platforms assumes an infinite energy source, ignoring the non-linear battery properties and therefore, is not directly applicable to battery-powered systems [3]. Voltage scalable FPGAs have only recently been introduced [4], and when coupled with the ability to change the actual hardware, voltage scaling becomes a powerful way to achieve power-performance trade-offs [5]. In the sensor network area most of the work concentrates on energy efficient routing protocols with the important drawback that linear or empirical battery models are used which greatly diminish the accuracy of these studies [6]. The authors in [7] also used the battery model discussed in this paper to evaluate two popular ad-hoc routing protocols, however, their work was only at the protocol level and node level power consumption was not addressed. In [8] the authors addressed the routing and node level power consumption of wireless networks but the energy model used was empirical in nature. Further, they only addressed fixed nodes without node level adaptation. In contrast to all these works our work incorporates an accurate battery model, along with node level power usage modeling and introduction of RC nodes to adapt the node behavior for changing battery states.

1. INTRODUCTION Batteries are finite and non-linear sources of energy, therefore, striking a balance between the battery consumption and system performance is perhaps the most crucial design decision for portable and wireless systems. In this work we will concentrate on Battery-Powered Reconfigurable Computing sensor network nodes which have a Field Programmable Gate Array (FPGA) as their main processing unit as shown in Figure 1-a. Despite the common notion that FPGAs are power hungry Jan Rabaey in [1] and R. Hartenstein in [2] have shown that the energy efficiency of FPGAs is orders of magnitude better than that of processors for a certain class of digital signal processing applications. We have explored the possibility of using RC based sensor nodes which can change their current consumption depending upon the battery capacity available instead of traditional processor based fixed nodes. Further, we employ an accurate battery model to model the battery behavior. In this work we will systematically vary the processing power in relation to the transmission power and will show the cases where RC based nodes are most useful and quantify the network life extension. We have shown that the network-life is increased by upto five times and the number of packets generated by the sensor nodes and received at the sink node increased more than four times for RC based nodes when compared to fixed nodes. The rest of this paper is organized as follows: In Section 2 we describe

3. HARDWARE PLATFORMS

Fuel Gauge Circuitry

Battery

FPGA (Fine-Grain Reconfigurable Fabric)

Sensor System Controller Design Design Design 3 1 2

Non-Volatile Memory

(a)

* This work was sponsored in part by the Ohio Board of Regents PhD Enhancement Program.

0-7803-9362-7/05/$20.00 ©2005 IEEE

Program mable Clock

Volatile Memory Processor Fuel Gauge Circuitry

Battery

Wireless Interface

Volatile Memory

Wireless Interface

Some possible hardware architectures for RC and processor based sensor nodes are shown in Figure 1(a-b). In Figure 1-(a), a fine grain reconfiguration model is depicted, where we assume that several different hardware designs (also called Design-Points in the rest of this work) are available in the form of bitstreams to be configured on a single fine-grained FPGA. The designs vary in terms of the number of functional units used to process the data and therefore,

Sensor

Non-Volatile Memory

Clock

(b)

Fig. 1. RC and Processor based Sensor Node Architectures

543

as their own packets, therefore we scale the transmission power PT as a function of the packet load at the node, given by Equation 4.

have different current consumption of each design. We assume these designs have already been characterized in terms of their performance and total current consumption of the sensor node, including all the subsystems such as the memory subsystem and wireless interface. A system controller manages the usage of the reconfigurable fabric and other system house-keeping functions such as memory management etc. We have compared our results with a traditional processor based sensor node architecture, shown in Figure 1-b.

PTx = η × r

Rated Capacity of a battery is defined as the capacity of the battery (in mAh) under a nominal constant current discharge and is reported by the manufacturer. It is observed that higher rates of discharge tend to reduce the rated capacity significantly (rate capacity effect) and reducing discharge rates between heavy discharge periods allows the battery to regain some of its lost capacity (recovery effect) [9]. The model which we have used in this work is due to Rakhmatov et al. [10]. It is a variable load analytical model based on the laws of chemical kinetics, which takes into account both the rate capacity effect and the recovery effect.This battery model is attractive because it only requires two parameters α and β to be estimated by conducting constant current discharge experiments. Intuitively, α represents the battery capacity and β captures the non-linearities in the battery behavior; Equation 1 describes the battery model. 2 2

2 2

10 –β m ( T – t k –Δk ) – β m ( T – tk ) § e – e ¨ σ = ¦ I k ¨ Δ k + 2 ¦ ---------------------------------------------------------------------------2 2 β m k=0 © m=1

· ¸ ¸ ¹

P T = ( packets × PTx ) ⁄ T R

(4)

PTR = PT + P Rx

(5)

P PC = K × P Tx

(6)

For RC nodes we define different design-points (DP) where the current consumption and the execution time of the design is varied by changing the underlying hardware. Design-points are defined in terms of the highest powered DP called DP1 . A set of scaling factors is used to describe other design-points. Let F be the set of m scaling factors th then the current I DP n and execution time E DP n of the n DP can be defined as given in Equation 8 and Equation 9, where G is called scaling factor exponent and is a constant. Processor based fixed nodes are always executed at DP 1 which is assumed to be the same for RC nodes. This assumption is reasonable because it has been shown that FPGAs have energy efficiency which is an order of magnitude better than processors. So, even if the processor based nodes have higher energy requirement per unit computation than the RC based nodes, we assume it to be equal to the highest powered RC node.

(1)

The value of σ gives the amount of charge lost by time T, which is the length of a current discharge profile having n distinct discharge intervals. Ik is the current drawn from the battery in the kth discharge interval, where tk is the start time of the kth discharge interval and Δk is the duration of this interval. The battery lifetime is estimated by evaluating Equation 1 for increasing values of T and stopping where σ ≅ α : At this point the value of T is taken as the battery lifetime. We have chosen to use this battery model because of its high accuracy and low computational complexity.

F = { f 1, f 2, f3 …f m }

where

1 E DP = ---- × E DP fn n 1 n

f1 = 1

(7) (8)

G

I DP = ( fn ) × I DP

1

(9)

Each RC node can run in one of m possible modes which are defined by the battery state of the node. For example if m = 4 then the four modes can be defined as given in Table 1. In each mode for RC node the corresponding DP is configured and the current consumption and the execution time of the node changes accordingly. Since only a few node reconfigurations occur in this model we ignore the reconfiguration energy which we found by experiments to be 0.0125mAh for Xilinx Virtex XCV300 FPGA [11], which is quite negligible. It is important to note the unequal distribution of the battery capacity used for each of the processing modes. We have allocated most of the battery capacity to be used at mode 1 and the least to be used at mode 4 which is the lowest powered mode. Due to the delay in generating a packet at mode 4, it is only to be used when the batteries are about to die because the delay can cause the sensor node to miss some of the events which it would not have missed had it been running at a higher mode. This is also the reason one would not want to use the lowest powered DP all along as it would decrease the fidelity of the network significantly. This is also

5. SENSOR NETWORK SIMULATION MODEL We incorporated the battery model described in Section 4 in the node definition. Each node starts with a fixed battery capacity, the battery model captures the battery behavior of the node depending upon the workload of the node. The node dies when it exhausts its battery capacity. The total power of a node can be described by Equation 2 where P node is the total node power and PTR and P PC are the total transceiver power and the processing power, respectively. P node = PTR + P PC

(3)

Equation 5 describes the total transceiver power PTR which is the sum of the scaled transmission power P T and the power used in the receiver section of the transceiver P RX which we assume to be constant. Equation 6 describes the processing power in relation to the transmission power where K is a constant.

4. BATTERY CHARACTERISTICS AND MODEL

n–1

2

(2)

The radius of transmission of each node can be set and its transmitted power varies as the square of this radius. Equation 3 describes this relationship where PTx is the transmission power including the power used in the digital circuitry in the transmitter, η is a constant and r is the radius of transmission when the node is continuously transmitting packets at the rated transmission rate TR . Since hub nodes have to relay the packets of the downlink nodes as well

544

the reason we have chosen to use DP1 for fixed node implementation.

to the worst case execution of the packet generation and were made inversely proportional to the scaling factor with respect to current of DP1 and task currents for different design-points were made directly proportional to the square of the scaling factor with respect to DP1 ( G = 2), where DP1 is the highest powered design-point. The scaling factors used for the four design points with respect to DP1 were as follows: 1, 0.85, 0.68, 0.51. For DP1 it was assumed that a packet can be generated in 2 time steps. Each of the experiment presented next was conducted with three different network topologies and the results were averaged to reduce the effect of artifacts due to the topology. Effect of K on Network Lifetime: In this experiment we have studied the effects of changing the value of K on the network lifetime. The parameter K is defined in Equation 6. By varying values of K we changed the current consumption for packet processing. We have considered three values of K: 1, 5 and 10. We simulated two network scenarios: Network having fixed nodes and network having RC nodes. As explained in Section 5, fixed nodes cannot change their current consumption by reconfiguration and therefore, consume a constant current for packet generation. Also, their packet generation time remains constant as well. RC nodes change their current consumption for processing when they reach each of the four thresholds for battery levels given in Table 1, by successively decreasing their current consumption. At the lowest power design-point the current used is the lowest and time to generate a package is the longest. It is also assumed that once a node has started processing a packet it cannot sense the surrounding area until it sends that packet. Figure 2 shows the network lifetimes for the two scenarios described earlier with K = 1, K = 5 and K = 10 for the simulations using random number generator seed of 80. At K = 1 RC based network has about 1.63 times more lifetime than its fixed node counterpart. With K = 5 and K = 10 the difference between lifetimes of fixed nodes and RC nodes

We assume that all the sensors in the network send their data in the form of packets to a single energy-rich sink node. A packet is generated by any given node whenever there is an event which needs to be sensed. For example, if the sensor network is monitoring a wildlife habitat then a node would generate and send a packet whenever it senses an animal within its sensing radius. It is assumed that sensing requires significant signal or image processing to justify the use of RC nodes. If the node is busy generating a packet due to an earlier event then it continues its processing and ignores any further events. Each node in the network can only communicate with the other nodes which are present in its neighbourhood, which is defined by the transmission radius of the node. We have used Dijkstra’s algorithm to implement routing in this network simulation model. It calculates the shortest path with minimum hops to reach a particular node from the sink node. As the nodes die the network adjusts to find another route from any given node to the sink node. Minimum hop routing has been extensively used in sensor networks. The simulation model was developed using NetLogo2.1 [12]. Table 1. Various Modes of Operation of RC nodes Mode

Battery Capacity

Design

1

σ

> 60 and < = 100

DP1

2

σ

> 30 and < = 60

DP2

3

σ

> 10 and < = 30

DP3

4

σ

> 0 and < = 10

DP4

6. EXPERIMENTS AND RESULTS

N e tw o rk L ife tim e a n d A re a C o v e ra g e (5 0 N o d e s , K = 1 .0 , G = 2 , S e e d 8 0 )

We randomly deployed 50 nodes in an area of 50 X 50 meters. These nodes formed a sensor network with a sink node to which the data is to be sent. We used a battery capacity of 50000 (mA time-units) for each node. We have deliberately not used a specific time scale, since the simulation can be run for any time scale which the user wishes. The value of β in the battery model of Equation 1was 0.273. We assumed that each node has a radius of 11 meters and it cannot transmit or receive packets beyond this radius. The value of 11 meters was the determined to be the percolation radius where all nodes got connected to each other at the beginning of the simulation. Nodes closer to the sink node must also relay packets from the downlink nodes as well as process and generate the data and send their own packets. We also assumed that this sensor network was monitoring a wildlife habitat. We used ten animals which randomly moved about this environment and caused the sensor nodes to generate the packet traffic. We defined network lifetime to be the time when the area coverage dropped to below 15% of the total area or the network became fragmented even though the area coverage was greater than 15%, whichever happened earlier. The packet size was assumed to be 1024 bits and the transmission rate was chosen to be 15 kbits/time-step. Time step resolution of 0.1 was used for all the simulations. For each node the durations to create a packet were made proportional

Area Coverage (%)

120 100 80 60 40 20 0 0

100

200

300

400

500

600

T im e

R C Nodes

F ix e d N o d e s

N e tw o rk L ife tim e a n d A re a C o v e ra g e (5 0 N o d e s , K = 5 .0 , G = 2 , S e e d 8 0 )

Area Coverage (%)

120 100 80 60 40 20 0 0

20

40

60

80

100

120

140

Tim e

R C Nodes

F ixe d N o d e s

N e tw o rk L ife tim e a n d A re a C o v e ra g e (5 0 N o d e s , K = 1 0 , G = 2 , S e e d 8 0 )

Area Coverage (%)

120 100 80 60 40 20 0 0

10

20

30

40

50

60

T im e

R C Nodes

F ixed Nodes

Fig. 2. Network Lifetimes and Area Coverage for various values of K

545

becomes really pronounced and with a lifetime increase of 2.84 and 4.99 times, respectively. This increase in lifetime was expected because if the processing power is more than the transmission power then by decreasing it we would have the most impact on the total node life. Also, notice the longer lifetime values for lower values of K, this is because by decreasing the total current consumption of the node the lifetime is extended by rate capacity effect as explained in Section 4. Further, the area coverage in the case of RC nodes starts to decrease much later than in the fixed node counterpart. The cases where values of K < 1 were not considered since processing power is not significant and using RC nodes cannot be justified. The agregate average results of three different seeds for each combination of K and G are presented in Table 2 where it can be seen that in the case of RC nodes the number of packets generated by the sensor nodes and the number of packets received at the sink node, have significantly increased that those of the fixed nodes. Again, this trend is more pronounced for values of K=5 and K =10. Therefore, we conclude that RC nodes should be considered as a choice while implementing these sensor nodes if K ≥ 1 . The more the value of K the more the network life can be extended by using RC nodes.

Norm alize d Ave rage Pack e ts Re ce ive d (RC Node s )

Normalized Average Network Lifetime (RC Nodes)

5

# Packets Received

Netwrok Lifetime

5 4 3 2 1 0

G=2 K=10

G=1.5

4 3 2 1 0

G=2 K=10

G=1.0

K=1

0-1

1-2

G=1.5 K=5

K=5

2-3

3-4

4-5

G=1.0

K=1 0-1

1-2

2-3

3-4

4-5

Fig. 3. Normalized, Average Network Lifetimes and Packets Received

implementation counterparts. As can be seen the best results are obtained when G and K have the highest values, at which point we observe approximately 5 fold network life improvement along with about 4 times increase in the number of packets received at the sink node when compared to the fixed node implemenation. This shows that every effort must be made to decrease the current consumption of the successive design-points as much as possible (higher values of G should be used). If the current consumption of the design-points is only linearly decreasing with respect to the DP1 (G=1) then the benefits gained from using RC nodes decrease quite rapidly.

Table 2. Average Network Statistics

7. REFERENCES K

10

5

1

Parameters

G=2.0

G=1.5

Fixed

RC

Fixed

LifeTime

9.36

46.73

Pkt Sent

787

3316

Pkt Rcvd

765

LifeTime

G=1.0 RC

Fixed

RC

9.36

27.2

9.36

17.45

787

2133

787

1313

3280

765

2101

765

1281

37.06

105.4

37.06

90.65

37.06

59.50

Pkt Sent

3592

7644

3592

5954

3592

4457

Pkt Rcvd

3314

7606

3314

5913

3314

4419

LifeTime

256.2

419.3

256.2

367.2

256.2

326.6

Pkt Sent

18808

23607

18808

22097

18808

20151

Pkt Rcvd

18753

23560

18753

22053

18753

20106

Effect of Scaling Factor Exponent (G) on Network Lifetime: In this experiment we varied the scaling factor exponent G as defined in Equation 9, for each design-point. The scaling factor exponent determines the current reduction for each design-point, therefore, as its value becomes smaller the current reduction for lower design-points becomes smaller. We used three exponents as follows: 2, 1.5 and 1. Values of G = 2 and more are possible if it is assumed that the reconfigurable fabric is capable of voltage and frequency scaling. Therefore, if we can execute a particular design at a lower voltage the amount of power used changes with the square of the decrease in voltage. One such FPGA architecture was introduced recently in [4]. It is expected that such architectures will become available in the near future, so it is worthwhile to explore the effects of these systems on network and node lifetimes. In Figure 3 various values of K and G are plotted against normalized average network lifetimes and normalized average packets reached at the sink node for three different simulation runs for each K and G pair with different seed values. The values are normalized with respect to their fixed node

[1]

J. M. Rabaey, M. J. Ammer, J. L. da Silva Jr., D. Patel, and S. Roundy. Picoradio supports ad hoc ultra-low power wireless networking. In IEEE Computer 33(7), pages 42-48, 2000.

[2]

R. Hartenstein. Trends in Reconfigurable Logic and Reconfigurable Computing In 9th International Conference on Electronics, Circuits and Systems, Volume: 2, 15-18, Pages:801 - 808, Sept. 2002

[3]

Havinga P. J. M., Smit L. T., Smit G. J. M., Bos M., Heysters P.M. Energy management for Dynamically Reconfigurable Heterogeneous Mobile Systems, 10th Heterogeneous Computing Workshop, San Francisco April 2001

[4]

A. Gayasen, K. Lee, N Vijaykrishnan, M. Kandemir, M. J. Irwin, T. Tuan. A Dual VDD Low Power FPGA Architecture, In LNCS3203 Proceedings of the 14th International Conference on Field Programmable Logic and Applications, pages 145-157, 2004

[5]

S. Guccione, D. Verkest, I.Bolsens, “Design technology for Networked Reconfigurable FPGA Platforms”, Proceedings Design Automation and Test in Europe, Paris, France, March 2002

[6]

K. Akkaya and M. Younis, A Survey of Routing Protocols in Wireless Sensor Networks, in the Elsevier Ad Hoc Network Journal, Vol. 3/3 pp. 325-349, 2005

[7]

Handy, M., Timmermann, D. Simulation of Mobile Wireless Networks with Accurate Modelling of Non-Linear Battery Effects. In International Conference on Applied Simulation and Modelling, pp 532-537, ISBN: 0-88986-384-9, Marbella, Spanien, September 2003.

[8]

Carla-Fabiana Chiasserini, Imrich Chlamtac, Paolo Monti, Antonio Nucci, Energy Efficient Design of Wireless Ad Hoc Networks, Proc. of Networking 2002, LNCS Number 2345, Pisa, Italy, May 2002

[9]

David Linden and Thomas B. Reddy. Handbook of Batteries. McGraw Hill, New York, 2002.

[10] Wallach D. Rakhmatov, S. Vrudhula. A model for battery lifetime analysis for organizing applications on a pocket computer. In IEEE Transactions on VLSI, Volume 11, Number 6, pages 1019-1030, December 2003. [11] Jawad Khan and Ranga Vemuri. An Efficient Battery-Aware Task Scheduling Methodology for Portable RC Platforms and Applications, In LNCS3203 Proceedings of the 14th International Conference on Field Programmable Logic and Applications, pages 669-678, 2004 [12] NetLogo itself: Wilensky, U. 1999. NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and ComputerBased Modeling, Northwestern University. Evanston, IL.

546