• 沒有找到結果。

An energy consumption analytic model for a wireless sensor MAC protocol

N/A
N/A
Protected

Academic year: 2021

Share "An energy consumption analytic model for a wireless sensor MAC protocol"

Copied!
5
0
0

加載中.... (立即查看全文)

全文

(1)

An Energy Consumption Analytic Model for A

Wireless Sensor MAC Protocol

Hung-Wei Tseng

, Shih-Hsien Yang

, Po-Yu Chuang

,Eric Hsiao-Kuang Wu

, and Gen-Huey Chen

Dept. of Computer Science and Information Engineering, National Taiwan University, Taipei, Taiwan, R.O.C.

Dept. of Computer Science and Information Engineering, National Central University, Chung-Li, Taiwan, R.O.C.

Abstract— A wireless sensor network is composed of a great

number of sensing devices equipped with limited power sources. Under such battery-based constraint with limited power supply, energy consumption is a key issue for designing sensor network applications. Some sensor products adopt IEEE 802.11-like MAC protocol. However, IEEE 802.11 MAC is not a good solution for sensor networks. S(Sensor)-MAC proposes enhanced schemes such as periodic sleep and overhearing avoidance to provide a better choice for sensor applications. This paper presents an analytic model for evaluating the energy consumption at nodes in a S-MAC based wireless sensor network, and we develop an energy consumption analysis under different traffic conditions for distinct network topologies. The proposed model can guide designers to evaluate the energy consumption and determine the corresponding dominating factors. We validate the accuracy of the analytic model by comparing the analytic results with ns-2 simulation results.

I. INTRODUCTION

In recent years, wireless sensor network technology be-comes an emerging field in wide range of applications such as environment monitoring, battlefield surveillance, tele-monitoring of human physiological data, and etc. The low cost sensors with limited power sources can be deployed in differing places for differing usages, and they are able to sense temperature, fluid levels, humidity and other attributes. It is usually not cost effective to recharge the batteries of the sen-sors deployed on distinct environments; sensen-sors are designed to carry limited irreplaceable power sources. Therefore, sensor network lifetime will rely on the the corresponding batteries of sensor nodes.

In many sensor network applications, sensor nodes are required to be low power to extend the lifetime of a network. Previous work [1] has shown that a large portion of power is consumed by the radio module, and the medium access control (MAC) layer usually coordinate the radio states. IEEE 802.11 is one of the most dominating MAC protocols in current times. However, the power control function of IEEE 802.11 can not satisfy the requirements of sensor network applications. There-fore, a great number of researchers proposed their modification on traditional IEEE 802.11 [2] [3] [4].

For the energy constraint of sensor applications, S(Sensor)-MAC proposes several schemes improving traditional IEEE 802.11 in the aspect of energy consumption [2]. These schemes include periodic listening, overhearing avoidance, and message passing. In this paper, we propose an analytic model estimating energy consumption of sensor nodes adopting S-MAC, and the accuracy of this model is also validated. We

also present that the model can be applied to investigate the preferable design trade-off between energy and delay. On the other hand, the periodic listening scheme in S-MAC effectively avoids the idle listening problem in IEEE 802.11. By our model derivation, we find that such periodic listening scheme might cause unnecessary energy consumption in another aspect under heavy traffic load.

The rest of this paper is organized as follows. Section II dis-cusses the related works.Section III provides the background of S-MAC. Section IV describes the proposed analytic model. Section V presents the analytic and simulation results to validate our model, and the application and some discussion of S-MAC are also presented in the section. Section VI concludes this paper.

II. RELATEDWORK

One of the most important design issues for sensor net-works is energy management since sensor nodes are limited battery-based and cannot be recharged freely in most cases. Energy-aware medium access control schemes have received a great amount of attention from sensor network researchers since the MAC layer directly interfaces and collaborates with radio module, which consumes significant portion of device energies.

In the aspect of energy-aware sensor network, [3] proposed to save energy by using an extra ultra-low-power signaling channel that enables data channel to become into the sleep mode while neighboring nodes are in transmission, and such overhearing avoidance mechanism is also adopted in [2]. [4] also proposed the use of out-of-band signaling channel enabling data channel to sleep most of the time except data transmission, and the signaling channel also periodically sleeps to achieve better energy-saving.

Berkeley Motes are now widely adopted for sensor network application research field [5], but Motes use a simplified IEEE 802.11 protocol and support only one channel. As a result, out-of-band signaling protocols cannot be applied to Motes easily. S-MAC [2] studied in this paper proposed energy saving strategies with an in-band control method as traditional IEEE 802.11 does. To achieve better energy saving effects from idle listening of S-MAC, T-MAC [6] uses adaptive active scheme, which makes sensor nodes to transmit messages in bursts of variable length, and sleep between bursts.

Another problem arises in S-MAC is latency, which is also a critical consideration for particular sensor applications. To

(2)

reduce the increased latency due to sleep delay in S-MAC, D-MAC [7] proposed to deliver data along the data gathering tree, which significantly reduces the sleep latency. However, D-MAC is only applicable under the specific data gathering tree scenario for unidirectional communication flow from multiple sources to a single sink.

In the aspect of IEEE 802.11-like protocol analysis, [8] presents detailed and accurate performance analysis of the IEEE 802.11 DCF scheme, which is widely used in ad hoc network, and a number of researchers construct their analytic models based on this paper for enhanced multi-service applications [9] [10] [11].

III. S-MAC

S-MAC [2] is a modification of IEEE 802.11 protocol specifically designed for sensor networks. In the conventional IEEE 802.11 protocol, there are several disadvantages causing unnecessary energy waste. First, in IEEE 802.11 standard, every node hears transmission of all neighboring nodes even if the packet is not destined to itself, which is known as over-hearing. Besides, considerable control packets may increase overhead in energy consumption. The last one is idle listening, a node keeping listening to possible traffic for itself all the time. In typical sensor network applications, the traffic load is very low, that is, a node may not receive any traffic destined to it for a long period and the node is still in idle mode, which consumes power as much as in receiving mode [1].

To avoid the disadvantages of IEEE 802.11, S-MAC pro-posed corresponding energy-saving strategies. For the over-hearing problem, S-MAC lets a node go to sleep for a period while receiving RTS or CTS packets not destined to itself, wherein the sleep period is the same as the duration in RTS or CTS packets. This scheme efficiently prevents a node from overhearing the following DATA and ACK packets. To reduce the number of control packets in IEEE 802.11, S-MAC proposed a message passing mechanism which allows a number of fragments for a message to be transmitted with only one RTS and CTS. To reduce energy consumption in idle listening, S-MAC adopts a periodic listen and sleep schedule, which allows nodes turning off radio when in sleep mode. The nodes periodic synchronize schedules with their neighbors and creates virtual clusters where nodes in the same virtual cluster adopt the same listen and sleep schedule. A complete cycle of listen and sleep is called a frame in S-MAC. The portion of listen time in a frame is called duty cycle, which is introduced as a parameter in S-MAC.

IV. S-MACANALYTIC MODEL

In this section, we give an analytical model of energy consumption for S-MAC described in [2].

Consider a time interval of periodt, total energy consump-tion of a node running S-MAC during t can be expressed as:

E(t) = NT(t)ET + NR(t)ER+ TS(t)PS+ TI(t)PI (1) where NT(t) and NR(t) denote numbers of times that a node transmits and receives a packet during t, respectively.

Moreover, ET and ER represent corresponding energy con-sumptions of transmitting and receiving a packet, respectively. Furthermore, TS(t) and TI(t) stand for the times the node spending in sleep mode and idle listening, respectively; there-fore,PS is the power consumption of sleep mode, and PI is the power consumption of idle mode.

As referred in [2], when a node has a packet to transmit, carrier sense delay (tCS), backoff delay (tBO), transmission delay, propagation delay, processing delay, queueing delay, and sleep delay(tSL) will be considered. All the delays are the same as IEEE 802.11 protocol except sleep delay. Thus, these delays can be modelled as in IEEE 802.11 protocol, and several works have done on such models [8] [12], and we adopt these models for evaluating such delays. As described in [2], with the assumption that a packet arriving at the sender with equal probability within a frame, the sleep delay can be calculated as Tframe2 where Tf rame stands for the period of a frame, the complete cycle of listen and sleep. During the sleep delay period, the node will stay in listening mode. Besides, the node will send RTS and data to destination, and receive CTS and ACK frames from destination node. Therefore, the energy consumption for transmitting a packet can be evaluated as :

ET = PT x(tRT S+ tdata) + PRx(tCS+ tBO+ tSL +tCT S+ tACK+ 3tSIF S+ tDIF S) (2) where PT x andPRx are the power consumptions for a node in transmitting and receiving mode respectively, and tRT S,

tdata, tCS, tBO, tSL, tCT S, tACK, tSIF S, and tDIF S are the times spent in sending RTS, sending data, carrier sense delay, backoff delay, sleep delay, receiving CTS, receivng ACK, SIFS, and DIFS, respectively. Similarly, the energy consumption for receiving a packet can be evaluated as:

ER= PT x(tCT S+ tACK) + PRx(tRT S+ tdata

+3tSIF S+ tDIF S) (3) Assume that a node with Poisson arrival rate of transmitting packetsλT, and Poisson arrival rate of receiving packetsλR, then the number of times the node sends and receives packets duringt can be expressed as:

NT(t) = λTt (4)

NR(t) = λRt (5)

We now consider the node withn neighboring nodes within its radio range, and neighboring nodes are numbered with 1, 2, ..., n. The packet transmitting rates of neighbor i is

λTi, packet receiving rates of neighbor i is λRi, and packet

receiving rate of node j from another neighbor i is λRij. As

describe in section III, a S-MAC sensor node goes into sleep mode in three cases. The first case is scheduled sleep time, the second case is receiving a RTS frame from its neighboring nodes, and the third case is receiving a CTS frame from its neighboring. In the last two cases, the node will sleep for a data transmission period recorded in RTS or CTS frames. Assume that a node receives RTS or CTS frames from its neighbors with probability psucc. Tlisten and Tsleep are the listen and

(3)

sleep period during a complete listen-sleep cycle. The sleep timeTS and the idle listening timeTI during periodt can be expressed as: TS = psucc[(( n  i=1 λTi− λR)t)tdata+ (( n  i=1 λRi− n  i=1,j=1,i=j λRij − λT)t)tdata] +[t − ((( n  i=1 λTi− λR)t)tdata+ ((n i=1 λRi− n  i=1,j=1,i=j λRij − λT)t)tdata +NT(tRT S+ tdata+ tCS+ tBO+ tSL +tCT S+ tACK+ 3tSIF S+ tDIF S) +NR(tRT S+ tdata+ tCT S+ tACK +3tSIF S+ tDIF S)) − ] × (TTsleep f rame) (6) TI = [t − psucc(((( n  i=1 λTi− λR)t)tdata+ (( n  i=1 λRi− n  i=1,j=1,i=j λRij − λT)t)tdata) +NT(tRT S+ tdata+ tCS+ tBO+ tSL +tCT S+ tACK+ 3tSIF S+ tDIF S) +NR(tRT S+ tdata+ tCT S+ tACK +3tSIF S+ tDIF S)) − ] × (

Tlisten

Tf rame) +  (7) The psucc is related to the probability that a transmission is successful and the probability that the node is listening or not. The probability of successful transmission can be obtained as in [8]. In S-MAC, the sleep schedule for a node will be synchronized with all its neighbors, so we can assume that RTS/CTS control packets will be sent by the neighbors of the node only when the node wakes up. The assumption is quite reasonable just as described in [2]. By applying the probability of successful transmission, and assuming that each of the n stations contending on the same channel with transmission probabilityτ, we can derive psucc by the following formula:

psucc=nτ(1 − τ) n−1

1 − (1 − τ)n (8)

The symbol  represents the total extra idle period when a node change its mode back to periodic listen and sleep schedule. Such extra idle period occurs when a node finishes a packet transmitting or receiving. Because the finishing time of transmitting or receiving packet is not always fit to scheduled listen and sleep time, the node must keep idle for such extra idle period until the scheduled listen or sleep time arrives. If the node plays a role as a router in the network, the node just forwards the packets immediately, and the extra idle occurs only when the node finishes forwarding packets. Similar to

Fig. 1. The chain-hop topology used in validating our analytic model

Fig. 2. Another topology used in validating our analytic model

sleep delay, since the packet transmission may also finish with equal probability within a frame, the extra idle period can be calculated as Tframe

2 . LetNI be the number of times that the extra idle period occurs, the total extra idle time is:

 = NI ×Tf rame2 (9) By deriving the unknowns in (1) using (2)(3)(4)(5)(6)(7)(8) (9), we can evaluate the energy consumption of a node in analytic method.

V. ANALYTICRESULT

In this section, we will compare the simulation and analytic results to show the accuracy of our proposed model. We also shows how the model can be used to help sensor application design. Finally, we present some observations of S-MAC based on the proposed model.

A. Model Validation

We validate the analytic model of S-MAC by comparing the analytic results with simulation results. The simulation was done by using ns-2 network simulator. The MAC layer protocol used is S-MAC with overhearing avoidance and periodic sleep scheme. We also assume that all nodes adopt the same sleep schedule when making our analytic model, and

Fig. 3. The energy consumption of node 0 in Fig. 1 evaluated by analytic model and simulation

(4)

Fig. 4. The energy consumption of node 2 in Fig. 1 evaluated by analytic model and simulation

Fig. 5. The energy consumption of node 2 in Fig. 2 evaluated by analytic model and simulation

the PT x is 24.75mW,PRxandPI are 13.5mW, andPS is 15 uW, just as the values used in [2]. The bandwidth is set to be 40kbps. The messages are generated from the source node to the destination node, and each message is 400 Bytes in size. The parameters described above are also used in the following experiments presented in this section.

We set up two experiments to validate our model using topologies shown in Fig. 1 and Fig. 2. The message inter-arrival period is varying from 1s to 10s, and the duration is the time that 10 messages have been transmitted to the sink. The duty cycle (Tlisten

Tframe) is set to 20%. In the topology of

Fig. 1, each nodei can receive radio only from its immediate neighbor (i − 1 and i + 1). In the topology of Fig. 2, node 0, 1, 3, and 4 can only receive radio only from node 2.

In the topology of Fig. 1, node 0 and node 2 are selected to compare our analytic and simulation results. Node 0 is the source node, which generates the traffic, and node 0 can hear RTS when node 1 transmitting to node 2. Node 2 is an intermediate node which can hear RTS when node 3 transmitting to node 4 and CTS when node 0 transmitting to node 1. As shown in Fig. 3 and Fig. 4, the results generated by proposed model are quite approaching to the simulation results.

Fig. 6. A grid topology used in analysis S-MAC based sensor network design

Fig. 7. Relative energy consumption, relative latency, and relative en-ergy*delay of total network with duty cycle varying from 0.1 to 1. 0.1 duty cycle is the base

In the topology of Fig. 2, node 2 plays as a router, which receives packets from source node 0 (source 0) and node 1 (source 1) and forwards these packets to node 3 (sink 1) and node 4 (sink 0). Unlike any other nodes in Fig. 1 and Fig. 2, node 2 involves in every transmissions, that is, node 2 sleeps only during scheduled sleep time. The analytic and simulation results of node 2 in Fig. 2 are shown in Fig. 5, and results generated by proposed model are also quite approaching to the simulation results.

B. Energy Efficiency of S-MAC

In many sensor network applications, energy consumption is not the only important design issue. For example, in the environment surveillance system, the latency for an event transmitted from source to data sink would be very important, so that the system can take appropriate actions as soon as possible. Sometimes, energy and latency would be a trade-off. To find out the balance between energy and latency, some researchers adopt energy*delay product as the metric to evaluate the design trade-off [7] [13].

Periodic sleep scheme in S-MAC saves energy while nodes are idle, but this scheme also introduces additional delay for waiting the receiver back to listening from sleeping. Duty cycle is the parameter standing for the portion of time a node is listening in a frame. Therefore, duty cycle is the factor that influences the effect of energy saving in idle listening. However, short duty cycle would result in longer sleep delay,

(5)

Fig. 8. Relative energy consumption of total network of 20 chain-hops. The duty cycle varies from 0.1 to 1. 0.1 duty cycle is the base

because the packets may arrive when receiver is sleeping with a higher probability. That is, choosing a shorter duty cycle would decrease the idle listening time, but increase the latency. With our analytic model, we can estimate the energy consumption under different duty cycles for sensor nodes and evaluate the design trade-offs easily.

Fig. 6 shows a portion of an exemplary sensor network topology where node 0 is the data source, and the data are transmitted along the path of node 1, node 4, and node 7 to the destination data sink node 8. The nodes in Fig. 6 can transmit or receive packets to or from the neighbor nodes which connected by hidden lines or arrows in the figure. The packets are generated from data source every 10 seconds, and each message is sized in 400 Bytes.

Fig. 7 shows the relative energy consumption, relative latency, and relative energy*delay of total network with duty cycle varying from 0.1 to 1, and 0.1 duty cycle is chosen as the base. As shown in Fig. 7, we can see that the longer the duty cycle is, the more energy consumes since shorter duty cycle saves more energy from idle listening. In contrast, the latency becomes shorter when duty cycle is longer. The best energy*delay balance appears at the point where duty cycle is 0.4.

According to formula (1), the energy consumption of S-MAC based sensor nodes can be divided into four parts: sending packets, receiving packets, idle listening, and sleeping. In order to explore the performance of S-MAC under heavy traffic, we also set up and analyze another scenario. The scenario forms like Fig. 1, but the number of hops is increased to 20 hops. Fig. 8 shows the relative total energy consumption of the 20-hop-chain sensor network, and energy consumption of each duty cycle is divided into four parts corresponding to the energy consumption in sending packets, receiving packets, idle listening, and sleeping. Each message is sized in 400 Bytes, and the interarrival period of messages is set to 5 seconds, which the traffic is heavier than 10 seconds in the above cases. The lowest energy consumption holds when duty cycle is 0.2, not 0.1, which saves the most idle listening energy. Due to much longer sleep delay, the nodes must spend

more time in sending packets to wait for the receiver back to listening mode, and this wastes energy of sender nodes. The results also points out that while the network traffic is heavy, shorter duty cycle may not always result in better energy saving.

VI. CONCLUSIONS ANDFUTUREWORK

S-MAC have received considerable attention due to its energy saving schemes designed for sensor network. This paper introduces an analytical model to estimate the energy consumption of S-MAC. Our model shows its accuracy by comparing with NS-2 simulation results. With the help of our model, sensor network application designers can evaluate the energy efficiency of their S-MAC based sensor network under different parameters, such as duty cycles, interarrival periods, and etc.

S-MAC saves energy, but sacrifices latency. To achieve better energy efficiency than S-MAC, the future work includes the improvement of energy consumption and the reduction of packet latency of S-MAC.

ACKNOWLEDGMENT

This work was supported by the MediaTek Inc. under the project ”Wireless Communication Systems”.

REFERENCES

[1] M. Stemm and R. H. Katz, “Measuring and reducing energy consump-tion of network interfaces in hand-held devices,” IEICE Transacconsump-tions on Communications, vol. E80-B, no. 8, pp. 1125–31, 1997.

[2] W. Ye, J. Heidemann, and D. Estrin, “An energy-efficient MAC protocol for wireless sensor networks,” in Proceedings of IEEE INFOCOM, June 2002, pp. 1567–1576.

[3] S. Singh and C. Raghavendra, “PAMAS: Power aware multi-access protocol with signalling for ad hoc networks,” ACM Computer Com-munication Review, vol. 28, no. 3, pp. 5–26, July 1998.

[4] C. Schurgers, V. Tsiatsis, S. Ganeriwal, and M. Srivastava, “Optimizing sensor networks in the energy-latency-density design space,” IEEE Transactions on Mobile Computing, vol. 1, pp. 70–80, January 2002. [5] “University of california, berkeley, mica2 schematics,” March

2003. [Online]. Available: http://webs.cs.berkeley.edu/tos/hardware/ design/ORCAD FILES/MICA2/6310-0306-01ACLEAN.pdf

[6] “An adaptive energy efficient MAC protocol for wireless sensor net-works,” in Proceedings of the First ACM Conference on Embedded Networked Sensor Systems, November 2003, pp. 171–180.

[7] “An adaptive energy-efficient and low-latency MAC for data gathering in sensor networks,” in Proceedings of 18th International Parallel and Distributed Processing Symposium, April 2004, pp. 224–231. [8] G. Bianchi, “Performance analysis of the IEEE 802.11 distributed

coor-dination function,” IEEE Journal of Selected Areas in Communication, vol. 18, no. 3, pp. 535–547, March 2000.

[9] L. Chandran-Wadia, S. Mahajan, and S. Iyer, “Redefining internet in the context of pervasive computing,” in Proceedings of the 15th international conference on Computer communication, 2002, pp. 36 – 49.

[10] Y. Xiao and J. Rosdahl, “Performance analysis and enhancement for the current and future IEEE 802.11 MAC protocols,” ACM SIGMOBILE Mobile Computing and Communications Review, vol. 7, pp. 6–19, 2003. [11] H. Wu, Y. Peng, K. Long, S. Cheng, and J. Ma, “Performance of reliable transport protocol over IEEE 802.11 wireless LAN: Analysis and enhancement,” in Proceedings of IEEE INFOCOM, vol. 21, no. 1, June 2002, pp. 599 – 607.

[12] “Queueing analysis and delay mitigation in IEEE 802.11 random access MAC based wireless networks,” in proceedings of IEEE INFOCOM, March 2004.

[13] “Data gathering in sensor networks using the energy*delay metric,” in Proceedings of the IPDPS Workshop on Issues in Wireless Networks and Mobile Computing, April 2001.

數據

Fig. 3. The energy consumption of node 0 in Fig. 1 evaluated by analytic model and simulation
Fig. 5. The energy consumption of node 2 in Fig. 2 evaluated by analytic model and simulation
Fig. 8. Relative energy consumption of total network of 20 chain-hops. The duty cycle varies from 0.1 to 1

參考文獻

相關文件

The five-equation model system is composed of two phasic mass balance equations, the mixture momentum equation, the mixture total energy equation, and an evolution equation for

Based on the forecast of the global total energy supply and the global energy production per capita, the world is probably approaching an energy depletion stage.. Due to the lack

You are given the wavelength and total energy of a light pulse and asked to find the number of photons it

(c) If the minimum energy required to ionize a hydrogen atom in the ground state is E, express the minimum momentum p of a photon for ionizing such a hydrogen atom in terms of E

[23] Tiantong You, Hossam Hassanein and Chi-Hsiang Yeh, “PIDC - Towards an Ideal MAC Protocol for Multi-hop Wireless LANs,” Proceedings of the IEEE International Conference

Krishnamachari and V.K Prasanna, “Energy-latency tradeoffs for data gathering in wireless sensor networks,” Twenty-third Annual Joint Conference of the IEEE Computer

Using Structural Equation Model to Analyze the Relationships Among the Consciousness, Attitude, and the Related Behavior toward Energy Conservation– A Case Study

A Wireless Sensor Network is composed by a group of tiny devices with limited energy. Since the number of sensing nodes is usually huge, the sensing nodes are usually on