Accurate and Energy-efficient Congestion Level Measurement in Ad Hoc Networks

Similar documents
On the Interdependence of Congestion and Contention in Wireless Sensor Networks

Analysis of Resource Increase and Decrease Algorithm in Wireless Sensor Networks

Impact of IEEE MAC Packet Size on Performance of Wireless Sensor Networks

SENSOR-MAC CASE STUDY

Multi-Channel MAC for Ad Hoc Networks: Handling Multi-Channel Hidden Terminals Using A Single Transceiver

Lesson 2-3: The IEEE x MAC Layer

Interference avoidance in wireless multi-hop networks 1

Investigating MAC-layer Schemes to Promote Doze Mode in based WLANs

IEEE Medium Access Control. Medium Access Control

An Energy Consumption Analytic Model for A Wireless Sensor MAC Protocol

Reservation Packet Medium Access Control for Wireless Sensor Networks

Media Access Control in Ad Hoc Networks

Improving IEEE Power Saving Mechanism

CSE 461: Wireless Networks

Remarks On Per-flow Differentiation In IEEE

Medium Access Control (MAC) Protocols for Ad hoc Wireless Networks -IV

Congestion Detection Approaches In Wireless Sensor Networks: -A Comparative Study

End-To-End Delay Optimization in Wireless Sensor Network (WSN)

MAC in /20/06

Enhanced Power Saving Scheme for IEEE DCF Based Wireless Networks

Transport layer issues

A Multi-channel MAC Protocol for Ad Hoc Wireless Networks

Analysis of Throughput and Energy Efficiency in the IEEE Wireless Local Area Networks using Constant backoff Window Algorithm

CSMA based Medium Access Control for Wireless Sensor Network

Embedded Internet and the Internet of Things WS 12/13

A Routing Protocol for Utilizing Multiple Channels in Multi-Hop Wireless Networks with a Single Transceiver

An Efficient Scheduling Scheme for High Speed IEEE WLANs

IEEE , Token Rings. 10/11/06 CS/ECE UIUC, Fall

Wireless TCP Performance Issues

Research Article MFT-MAC: A Duty-Cycle MAC Protocol Using Multiframe Transmission for Wireless Sensor Networks

Energy Management Issue in Ad Hoc Networks

Project Report: QoS Enhancement for Real-Time Traffic in IEEE WLAN

Lecture 16: QoS and "

Wireless Network Security Spring 2013

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

CHAPTER 3 ENHANCEMENTS IN DATA LINK LAYER

Wireless Network Security Spring 2012

Energy Management Issue in Ad Hoc Networks

MAC LAYER. Murat Demirbas SUNY Buffalo

Performance of UMTS Radio Link Control

Performance and Comparison of Energy Efficient MAC Protocol in Wireless Sensor Network

AR-TP: An Adaptive and Responsive Transport Protocol for Wireless Mesh Networks

Data Communications. Data Link Layer Protocols Wireless LANs

QoS Challenges and QoS-Aware MAC Protocols in Wireless Sensor Networks

Mohamed Khedr.

Wireless Network Security Spring 2014

Wireless Network Security Spring 2015

Reliable Multicast Scheme Based on Busy Signal in Wireless LANs

AN EFFICIENT MAC PROTOCOL FOR SUPPORTING QOS IN WIRELESS SENSOR NETWORKS

Enhancements and Performance Evaluation of Wireless Local Area Networks

Presentation and Analysis of Congestion Control Methods in Wireless Sensor Networks

Appointed BrOadcast (ABO): Reducing Routing Overhead in. IEEE Mobile Ad Hoc Networks

AMAC: Traffic-Adaptive Sensor Network MAC Protocol through Variable Duty-Cycle Operations

Computer Communication III

BLAM: An Energy-Aware MAC Layer Enhancement for Wireless Adhoc Networks

Dynamic Deferred Acknowledgment Mechanism for Improving the Performance of TCP in Multi-Hop Wireless Networks

World Journal of Engineering Research and Technology WJERT

TMMAC: A TDMA Based Multi-Channel MAC Protocol using a Single. Radio Transceiver for Mobile Ad Hoc Networks

CHAPTER 3 EFFECTIVE ADMISSION CONTROL MECHANISM IN WIRELESS MESH NETWORKS

Mohammad Hossein Manshaei 1393

November 1998 doc.: IEEE /378 IEEE P Wireless LANs Extension of Bluetooth and Direct Sequence Interference Model.

Department of Electrical and Computer Systems Engineering

An Efficient Bandwidth Estimation Schemes used in Wireless Mesh Networks

Computer Networks 53 (2009) Contents lists available at ScienceDirect. Computer Networks. journal homepage:

An Enhanced IEEE Retransmission Scheme

A Proposed Paper on Joint Priority Based Approach for Scheduling and Congestion Control in Multipath Multi-hop WSN

Delayed ACK Approach for TCP Performance Improvement for Ad Hoc Networks Using Chain Topology

Medium Access Control. MAC protocols: design goals, challenges, contention-based and contention-free protocols

An Energy-Efficient MAC using Dynamic Phase Shift for Wireless Sensor Networks

Analyzing the Receiver Window Modification Scheme of TCP Queues

EBA: An Enhancement of IEEE DCF via Distributed Reservation

Medium Access Control. IEEE , Token Rings. CSMA/CD in WLANs? Ethernet MAC Algorithm. MACA Solution for Hidden Terminal Problem

3. Evaluation of Selected Tree and Mesh based Routing Protocols

Implementation of an Adaptive MAC Protocol in WSN using Network Simulator-2

Comparison of pre-backoff and post-backoff procedures for IEEE distributed coordination function

Collisions & Virtual collisions in IEEE networks

DOMINO: A System to Detect Greedy Behavior in IEEE Hotspots

Random Early Detection (RED) gateways. Sally Floyd CS 268: Computer Networks

15-441: Computer Networking. Wireless Networking

A link layer adaptive pacing scheme for improving throughput of transport protocols in wireless mesh networks

Energy-Efficient Receiver-Driven Wireless Mesh Sensor Networks

Receiver-initiated Sending-rate Control based on Data Receive Rate for Ad Hoc Networks connected to Internet

Wireless MACs: MACAW/802.11

Wireless Networks (CSC-7602) Lecture 8 (22 Oct. 2007) Seung-Jong Park (Jay) Fair Queueing

CHAPTER 2 WIRELESS SENSOR NETWORKS AND NEED OF TOPOLOGY CONTROL

Congestion Control in Communication Networks

MAC. Fall Data Communications II 1

Pessimistic Backoff for Mobile Ad hoc Networks

original standard a transmission at 5 GHz bit rate 54 Mbit/s b support for 5.5 and 11 Mbit/s e QoS

Fu-Yi Hung ALL RIGHTS RESERVED

Chapter 7 CONCLUSION

Unit 7 Media Access Control (MAC)

Wireless Challenges : Computer Networking. Overview. Routing to Mobile Nodes. Lecture 25: Wireless Networking

A Novel Queue Management Mechanism for Improving Performance of Multihop Flows in IEEE s based Mesh Networks

Key-Words: Ad hoc network, multimedia, QoS, routing protocol.

H-MMAC: A Hybrid Multi-channel MAC Protocol for Wireless Ad hoc Networks

TCP over ad hoc networks

CS 348: Computer Networks. - WiFi (contd.); 16 th Aug Instructor: Sridhar Iyer IIT Bombay

Qos-Aware Routing Based on Bandwidth Estimation for Mobile Ad Hoc Networks

Data and Computer Communications. Chapter 13 Wireless LANs

Transcription:

Accurate and Energy-efficient Congestion Level Measurement in Ad Hoc Networks Jaewon Kang Computer Science Rutgers University jwkang@cs.rutgers.edu Yanyong Zhang Electrical & Computer Engineering Rutgers University yyzhang@winlab.rutgers.edu Badri Nath Computer Science Rutgers University badri@cs.rutgers.edu Abstract Congestion in ad hoc networks not only degrades throughput, but also wastes the scarce energy due to a large number of retransmissions and packet drops. For efficient congestion control, an accurate and ly estimation of resource demands by measuring the network congestion level is necessary. Unlike the wired networks, congestion level measurement in ad hoc networks is more difficult due to -variant channel capacity, contention among neighboring nodes, and non-deterministic node scheduling. In this paper, we propose a new congestion detection mechanism that quantifies the congestion level accurately and energyefficiently at both a node-level (implemented at the MAC layer) and a flow-level (implemented at the routing layer) in ad hoc networks. For accurate congestion measurement, a set of metrics that decouple the measurement from various MAC protocol characteristics is defined. For energy-efficient congestion measurement, an asynchronous measurement scheme called Lazy Measurement, which emulates synchronous measurement by using virtual channel sampling, is incorporated into the proposed scheme. Simulation results show the proposed mechanism significantly cut down the energy needed to accurately measure congestion while maintaining high level of accuracy needed for ly congestion control. I. INTRODUCTION Congestion in data networks happens when too many incoming packets are contending for limited shared resources such as queue buffers and outgoing bandwidth. During congestion, packets experience large delay or even get dropped due to queue overflow, resulting in throughput degradation. In ad hoc networks, congestion occurs as well whenever the incoming traffic volume exceeds available resources. Compared to wired network, however, we observe a much higher, which is caused by not only queue overflow, but also collisions at the receiving node(s). In addition, these packet drops have more adverse impact on ad hoc networks because the energy consumed to forward this packet from its source to the current location will be wasted. Energy in each node is the most scarce resource in ad hoc networks, and somes it may not be replenished. Hence, the fact that congestion in ad hoc networks is more likely to lead to packet drops and that these packet drops have a serious impact on energy efficiency, we must take remedial actions as soon as congestion rises before the problem deteriorates. A number of congestion-controlling solutions have been proposed in the literature [], [2], [3]. In order for these solutions to effectively limit packet and energy losses caused by congestion, however, one of the most critical factors is the ability to accurately and thereby ly detect congestion in the network. A common strategy for congestion detection is to monitor several metrics to identify symptoms associated with congestion. The congestion measurement in ad hoc networks, however, is harder than in wired or other wireless networks due to collision, contention, and interference as explained below. During congestion, packets are frequently collided at the receiving node. When a packet is corrupted due to collision, it is not only discarded immediately at the receiving node, but also discarded at the sending node after several unsuccessful retransmissions. Therefore, the reduced queue length due to the dropped packets by collisions does not necessarily mean that the node has more bandwidth or congestion is alleviated. This makes the queue-based congestion measurement schemes, which are frequently used in wired networks, such as RED [4] unfit for ad hoc networks. Contention among neighboring nodes to acquire a chance to send a packet makes a node s outgoing channel capacity -variant. The fluctuation of a node s available outgoing channel capacity might be enlarged by the nondeterministic distributed node scheduling. This makes the node s congestion level also fluctuating even with constant incoming traffic rate and unpredictable especially during congestion. This implies the incoming traffic volume alone is not a good indicator of the congestion level. A node s outgoing channel capacity is affected by the neighboring nodes interference. When a node is placed within the radio range of a congested node without sharing the same routing path with the node, the node s congestion level is also high even when its incoming traffic volume is low. This requires each node to measure the around itself. In this paper, we propose a new congestion detection mechanism which accurately quantifies the degree of congestion at a node-level (implemented at the MAC layer). We have shown that this mechanism is able to capture a node s congestion level more accurately. Furthermore, it can decouple the congestion measurement from various MAC protocol characteristics such

as link reliability and buffer capacity, so that it can work regardless of the MAC protocols that are employed by the networks. Based on the node-level congestion measurement, a flow-level congestion measurement is implemented at the routing layer, providing the overall resource demand/supply picture of the flow. A good congestion detection scheme should not only be accurate, but it should be energy-efficient as well, especially because energy is the most constrained resource for a wireless device. Our proposed scheme addresses this concern by incorporating an asynchronous measuring technique called Lazy Measurement. The Lazy Measurement technique samples the level in an asynchronous fashion, while maintaining the same level of accuracy as synchronous measurements, which can significantly cut down the energy needed to do this. The main idea for this asynchronous technique is to emulate synchronous measurement using virtual channel sampling. The rest of the paper is organized as follows. In Section II, we propose the two-level congestion measurement scheme for accurate congestion measurement. In Section III, Lazy Measurement is described for energy-efficient congestion measurement. Section IV concludes the paper. II. ACCURATE CONGESTION LEVEL MEASUREMENT In this section, the two-level congestion measurement scheme is explained. The node-level congestion measurement serves as a basis for the flow-level congestion measurement. A. Node-Level Congestion Measurement Per-node congestion depicts the local congestion level around that node. When its local congestion level is high, the node may not be able to transmit packets successfully. Depending on the MAC protocol, unsuccessful transmission can lead to a high queue buildup, a high, or a high. The reason for a sudden congestion level increase is due to the increase of the incoming traffic rate, not necessarily only to this particular node, but to other nodes within its radio range as well. As a result, these statistics (e.g., buffer utilization,,, incoming traffic rate, etc) can be used to measure the nodelevel congestion. Several earlier studies have suggested using a subset of these statistics to measure the local congestion level. For example, ESRT [2] uses buffer utilization alone; CODA [] uses and buffer utilization. While each metric captures certain aspect(s) of the congestion level, we find that a combination of (at least) the following three metrics:,, and buffer utilization is necessary to decouple the congestion level measurement from various MAC protocol characteristics such as link reliability and buffer capacity, thereby to provide an accurate congestion level regardless of the deployed MAC protocol. Before we present our method of measuring the node-level congestion, we first discuss the impact of various MAC protocol characteristics on the relevance of different congestion 2 3 4 6 7 Destination Destination Fig.. A simple ad hoc network. Only the nodes connected by an arrow are within each other s radio range. level measurement metrics. We perform a simulation based study using ns-2. The network configuration is shown in Figure in which node and (sources) try to deliver data to node 6 and 7 (destinations), respectively. We use IEEE 82. DCF (Distributed Coordination Function) [] without RTS/CTS as the MAC protocol. Simulations with RTS/CTS have similar results. During the period between 4 and (sec), the sources increase their transmission rates, which will create a hot spot around node 4. The resulting channel loading,, and buffer utilization at node 2 when varying the retransmissions counts for the collided packets and buffer capacities are summarized in Figure 2. For the sake of simplicity, we do not differentiate the packet drops due to collision from the packet drops due to buffer overflow. Figure 2(a) simulates the scenario in which collided packets are simply lost without retransmission. We observe that the alone is sufficient to reflect the congestion level while the other two metrics stay constant even though the congestion has occurred. This observation can be explained as follows: despite the high packet arrival rate, these packets will not increase the and buffer utilization because they leave the node s queue quickly because of collision and no retransmission after the collision. Figure 2(b) demonstrates that buffer occupancy cannot be used to capture the congestion level in some cases. Specifically, it simulates the scenario where the queue capacity is reasonably large (2) but the retransmission count is low ( in this case). In such scenarios, and/or packet drop rate are both good metrics. While can be quite effective when the retransmission count is small (i.e., low link reliability), it becomes not as useful when the retransmission count increases (i.e., high link reliability). Figure 2(c) simulates the scenario with both large buffer capacity and high retransmission count (7). Due to retransmissions and large buffer capacity, packets are rarely dropped even during congestion period with a high collision rate. As a result, the keeps constant despite the congestion. On the other hand, frequent collisions and retransmission can significantly increase the. Buffer utilization will as well dramatically increase since a packet will not leave the buffer until its transmission is successful or its retransmission count has expired. Hence, and buffer occupancy can be used to accurately reflect the congestion level in such scenarios, shown in Figure 2(c). When packets start to be dropped due to buffer overflow, the can also be a congestion metric, but congestion is already worsened We use buffer capacity to denote the total number of packets the buffer can hold, and buffer utilization, buffer occupancy, or to denote how many packets are currently occupying the buffer.

congestion measurements at node 2 (no retransmission) 2 congestion measurements at node 2 ( retransmission) 2 or.8.6.4.2 2 or.8.6.4.2 2 2 3 4 6 7 8 2 3 4 6 7 8 (a) no retransmission (buffer capacity 2) (b) retransmission (buffer capacity 2) congestion measurements at node 2 (7 retransmissions) 2 congestion measurements at node 2 (7 retransmissions) 2 or.8.6.4.2 2 or.8.6.4.2 2 Fig. 2. 2 3 4 6 7 8 2 3 4 6 7 8 (c) 7 retransmissions (buffer capacity 2) (d) 7 retransmissions (buffer capacity ) Measurements of,, and buffer occupancy at node 2 when varying the retransmission counts and buffer capacity due to the large, therefore can be detected before the gets high. After looking at the impact of link reliability, we next study the impact of buffer capacity on the choice of metrics. In fact, buffer occupancy is usually used for congestion measurement simply because it is easily measured by reading the current. Figure 2(d) simulates the scenario where the buffer can only hold packets and the retransmission count is 7. In this case, a high buffer utilization does not necessarily mean that there is a congestion because its capacity is not large enough. At the same, a small buffer leads to more packet drops due to buffer overflow than that due to collision (especially when link reliability is high). However, in Figure 2(d), the incoming traffic throughout this simulation is not high enough to create frequent queue overflows, so that we can still notice a low buffer occupancy during 4-. For the same reason, the only marginally increases during 4-. Please note that will start showing effect only when the buffer overflows. On the other hand, increases significantly during 4- due to the traffic increase and high retransmission count. Therefore, it shows that can quantify the level of incipient congestion before the buffer builds up or packets start to be dropped. Another good example of requiring as a congestion metric is when nodes are near the hotspot but not on the routing path. Since no traffic traverse through these nodes, their buffer utilization and packet drop rate is. However, their is significantly high. Unlike traditional networks, nodes in the ad hoc network exhibit a high degree of heterogeneity in terms of both hardware and software configurations. For example, the radio range, maximum retransmission counts, buffer capacity might be different across the nodes. Even for the same hardware and software configurations, it is non trivial to find the right metrics that can accurately reflect the congestion level across different congestion scenarios. In order to efficiently deal with the aforementioned heterogeneity and various congestion scenarios, a combination of all three metrics is needed to draw a correct conclusion. Congestion measurement in wired networks can be considered as a special case from the entire design space of our congestion detection policy. B. Flow-Level Congestion Measurement The traffic from the originating node is bottlenecked by the most congested node among the nodes along the flow s routing path towards the destination node. For end-to-end congestion control schemes such as TCP, the flow-level congestion is of great importance because the congestion level at a single node does not depict the overall resource demand/supply picture. We build this flow-level congestion measurement based on the node-level congestion measurement discussed in Section II-A. The challenge that rises in designing the flow-level congestion measurement lies in the tradeoff between accurate measurement and energy efficiency. The basic idea is that every node along the routing path should forward their congestion measurements to the destination so that the application at the destination learns the degree of flow-level congestion. However, if every node sends its measurement periodically, it will incur a considerable amount of traffic and energy consumption. In this paper, we try to balance between energy consumption and accurate congestion detection by the following two optimizations: () a node starts sending only when its congestion measurement is above a threshold by embedding its congestion level into the header of a data packet; and (2) as soon as a node receives a data packet with a

Fig. 3. A. B.2 C.6.7.4.6.3 D Destination.3 E Destination.2 Forwarding the highest congestion level of a flow to destination per-flow congestion level, it compares its current congestion measurement with the per-flow congestion level included in the packet header, and updates the per-flow congestion level in the packet header to its own congestion measurement only when its per-node congestion level is greater than the existing per-flow congestion level. Figure 3 shows a snapshot which includes the congestion levels at each node. In this example, we assume the threshold above which a node will start sending its congestion measurement is set to.. When destination node D receives a data packet with a flow congestion level from source node B, the flow congestion level recorded in the header of the data packet is.7 while the flow congestion level from source node A is.6. Using this flow-level congestion information, the destination node can initiate any type of flow-based (or end-to-end) congestion control. This type of congestion notification towards the destination node by marking packet header was discussed in ESRT [2]. In ESRT, however, since the destination node will only get -bit congestion information, it cannot perform a finegrained congestion control according to different congestion levels. In our scheme, however, the destination node as well as intermediate nodes can initiate any type of end-to-end or hop-by-hop congestion avoidance scheme before congestion even happens by studying the trend of each flow s congestion level. In CODA, flow-based rate control is performed by the destination node by monitoring the packet arrival rate. Compared to the bookkeeping overhead for each flow in CODA, the flow-level congestion measurement in the packet header gives all the nodes along the path an accurate flow congestion level of the upstream segment of the flow. III. ENERGY-EFFICIENT CONGESTION LEVEL MEASUREMENT As mentioned earlier, in ad hoc networks, we cannot afford to measure all three metrics continuously because it will cause a considerable energy consumption, which will reduce the network life. In this section, we discuss our methods of measuring these three metrics which saves energy and computational overheads. A. Buffer Occupancy Measurement In order to cut down the overhead involved in measuring the buffer occupancy, we only perform the action when a packet is inserted to or dropped from the buffer. This simple method automatically adapts its frequency according to the incoming traffic volume. When the packet arrival rate is low, the buffer is measured less frequently; as the packet arrival rate increases, the buffer is measured more frequently. It can avoid Fig. 4. busy idle busy Channel loading measurement using fixed-rate sampling unnecessary measurements when not needed while making sure an up-to-date congestion level to be reported ly during congestion. B. Packet Drop Rate Measurement To measure the, a fixed period called epoch is defined. During each epoch, the statistics on the number of packet arrivals and packet drops are maintained. To save computational overhead, i.e. energy, the is calculated when a packet is newly enqueued or dropped either by queue overflow or by collisions in each epoch. C. Channel Loading Measurement ) Fixed-rate Channel Loading Measurement: Measuring the is much more challenging than the other two metrics because we have to turn on the radio to do so. As a result, it is critical to consume as little energy as possible to measure the as well as to report accurate and ly measurements. A common technique to measure the is to sample the channel periodically as shown in Figure 4 and then use an exponentially weighted moving average to smooth the measured. Let C avg i be the average channel loading after the ith sampling and C sampled i+ be the (i + )th sampled value, where C sampled i+ is either or depending on the channel is idle or busy when sampled. As a result, the average at i+ is calculated as follows. C avg i+ = ( α) Cavg i + α C sampled i+ (), where α is a weight for the recent sampled value. Ideally, one would like to sample continuously (or frequently) to present the up-to-date average value. However, this is not practical because sampling consumes energy. Determining when to sample thus becomes an important research question. 2) Lazy Measurement: A node usually alternates between two states: active (with radio on) and doze (with radio off). When a node is active, its perceived wireless channel condition goes through alternating idle and busy periods depending on the channel activities of itself and its neighbors. Earlier work [], [2], [6] has suggested using fixed-rate sampling to measure the, which has been illustrated in Figure 4. While sampling at a fixed rate is a viable solution for energy-rich environments, we argue that it is neither efficient nor necessary for ad hoc networks. In Figure 4, to increase the accuracy of, the sampling period should be shortened while the sampling period should be increased to save energy. Instead, we propose an asynchronous event-driven approach, referred to as Lazy Measurement, which guarantees both accuracy and energy efficiency. idle

DIFS SIFS A RTS DATA listening (DIFS) sending (RTS) listening (SIFS) receiving (CTS) CTS ACK B DIFS NAV (CTS) contention window C A B C t (a) (b) Fig.. The channel activity of 82. MAC protocol when node A sends a packet to node B. Node A and C are not within each other s radio range. Fig. 6. t t7 (a) node A idle receiving (CTS) NAV (CTS) (b) node C Lazy measurement in an event-driven fashion t34 t4 As mentioned earlier, a node can be in either an active or a doze state. Since our primary interest is in monitoring the when the congestion is about to happen or when the congestion has already happened (in either case, a node rarely enters into the doze state), we do not make any measurements during the doze state. This can cut down sampling energy significantly because otherwise one needs to turn on the node s radio and perform measurement. The basic idea of Lazy Measurement is to sample the channel activity at the end of an idle or a busy period. Let s assume that the average at the beginning of an idle or busy period is C avg. At the end of this period, the fixed-rate samplings called virtual channel sampling are emulated at the same. This is illustrated in Figure 6(a) and (b) when node A is sending a single packet to node B while node C is overhearing node B s activity as shown in Figure. The virtual channel samplings are represented in dotted arrows. If an active or busy period last for n virtual sampling intervals, then the average at the end of the period is represented as follows. α is the weight of an exponential weighted moving average. { Cn avg = ( α) n C avg (idle channel) ( α) n (C avg ) + (busy channel) This scheme is sufficient when each of the idle or busy periods is short, in which case it is similar to the fixed-rate sampling. However, one may question that Lazy Measurement may break for a long idle or busy period since the average is not updated until the end of this relatively long period. We have studied this issue carefully and concluded that Lazy Measurement is not only sufficient, but also more accurate for large periods in most of the cases, which is explained below for a long idle or busy period and verified by simulations later in this section. Even during congestion, an idle period can be long due to the long backoff windows when the channel contention is high. If we frequently sample the channel during this backoff window, the sampled value is, so that the calculated channel loading becomes lower. A lower under high contention might be useful for some scenarios, but it is inaccurate for the sake of congestion detection. On the other hand, if we use use Lazy Measurement, the value does not change during the backoff period (because the is updated at the end of the backoff period), which is very helpful to detect the congestion and further apply remedial actions. If the channel is monitored during (2) backoff such as in IEEE 82., which stops decrementing the backoff counter when the channel gets busy, the average is simply updated when the channel gets busy again. In addition, if the packet size is small, the busy period caused by packet transmissions will not be long. Frequently, a large packet is fragmented into smaller frames to increase channel utilization []. However, there is a scenario where Lazy Measurement is inaccurate due to its deferred sampling: the transition from the congested period to the dormant period. As soon as a network burst passes, the network traffic becomes low, and the channel enters a long idle period. Please note that the average congestion level before this long idle period is pretty high. In this case, we would like to frequently sample during this idle period so that the average congestion level can decrease quickly to reflect the actual network behavior. Also, we would like to point out that this type of long idle period is much longer than the backoff windows under contention discussed above. In order to tailor our scheme for this case, we set an idle r, which is longer than the usual backoff window duration. As soon as the r expires, we sample the channel and update the average congestion level. One enhancement to reduce the overhead of the idle r is to set the r duration short when its congestion level is high, so that the dormant state can be quickly found. When the node s congestion level is low, the duration of the idle r can be extended in an additive manner (or exponentially to aggressively reduce the overhead) with some upperbound. Another advantage of Lazy Measurement is that when a node knows the duration of busy channel in advance such as NAV in 82. MAC protocol, turning off its radio does not affect the measurement. As shown in Fig. 6(b), node C can turn off its radio during deferring and turn on its radio at the end of the deferring, assuming the channel condition is busy during the deferring. For the measurement after the doze mode, right before a node enters into the doze mode, a node updates its level and saves it with current for later use. During the doze mode, radio is not turned on again for the purpose of measurement. When the node wakes up by turning on its radio after the sleep r expires, the current and the of last measurement are compared. If the difference is less than some threshold, the last recorded average is used as its initial average, hoping that the channel loading does not change a lot. If the difference is greater than

Channel Loading (sampling interval = us).8.6.4.2 Channel Loading (sampling interval = us).8.6.4.2 9 2 3 4 9 2 3 4 (a) µs (b) µs Channel Loading (sampling interval = us) Channel Loading (sampling interval = 972us).8.8 Fig. 8. sampling frequency e+6 Sampling frequency fixed rate measurement 972 sampling interval (in Lazy Measurement Sampling frequency with respect to various sampling intervals µs).6.4.2 9 2 3 4 (c) µs (d) 972 µs.6.4.2 9 2 3 4 Fig. 7. Channel loading measurements by Lazy Measurement with respect to various virtual sampling intervals the threshold, the node waits for some period for its neighbor nodes to notify their levels. To obtain the levels from its neighbors, a node overhears the packets sent by its neighbors. For this, each node periodically embeds its level into the header of a data packet. If a node overhears several s during the period, they are averaged to be its initial assuming the s in the same area are correlated. If no is overheard during this period, it sets its initial to. The advantage of overhearing the neighbors levels is that the nodes in the hotspot are highly likely to overhear the data packets containing their neighbors levels since the data traffic is high in the hotspot. 3) Performance of Lazy Channel Loading Measurement: To investigate the accuracy and energy-efficiency of Lazy Measurement, we perform a ns-2 simulation under the same network topology as in Figure. IEEE 82. DCF with RTS/CTS is used for the underlying MAC protocol. During the period between and (sec), the sources increase their transmissoin rate, making congestion around node 4. Shorter sampling interval and higher weight value, α in Equation 2 can measure the level more accurately, but it incurs a large fluctuation. In our simulations, we fix the weight of the sample value (i.e. α in Equation 2) to be.. The observed average real sampling interval of Lazy Measurement at node 2 between 9 and 4 sec is.972 ms (i.e. 972 µs). Given the observed average sampling interval of 972 µs, we varies the virtual sampling interval to µs, µs, µs, and 972µs, as shown in Figure 7 (a), (b), (c), and (d), respectively. Figure 7 shows too short sampling interval results in the high fluctuation of the average level. In this case, the virtual sampling interval of µs provides an accurate and smooth level. As the virtual sampling interval increases, the resulting measurement does not accurately reflect the congestion level in the network, as shown in Figure 7 (d), in which the observed average sampling interval and the virtual sampling interval are equal. Our simulations show the measurements by the fixed-rate sampling scheme are almost identical to the measurements by Lazy Measurement. However, to accurately measure the, the fixed-rate channel sampling requires high sampling rate, thereby consuming more energy. Figure 8 shows the sampling frequencies of sampling intervals µs, µs, µs, and 972µs. The x and y axes are calibrated in log scales. If we assume the energy in each node is consumed in proportion to the sampling frequency, then Figure 8 also can be an indication of energy consumption. While the sampling frequency of Lazy Measurement is constant since it only changes the virtual sampling interval, the fixed-rate sampling consume a lot of energy to accurately measure the. IV. CONCLUSION AND FUTURE WORK In this paper, we propose a two-level congestion detection scheme that provides an accurate node-level and flow-level congestion measurements in an energy-efficient way in ad hoc networks. Simulation results show the node-level congestion measurement, which uses the set of buffer occupancy, packet drop rate, and chanel loading as an indicatoin of congestion, accurately portrays the congestion level by decoupling the measurement from various MAC protocol characteristics. The flow-level congestion measurement based on the node-level congestion measurement provides a fined-grained congestion information in the network. For energy-efficiency, the lazy measurement saves a lot of energy needed to accurately measure the while maintaining the same level of accuracy as synchronous measurements. In ad hoc network, the backoff window size can be another indication of congestion. We plan to further optimize the proposed congestion detection mechanism by investigating various candidate metrics for accurate and energy-efficient congestion measurement in ad hoc networks. REFERENCES [] C. Wan, S. Eisenman, and A. Campbell, CODA: Congestion Detection and Avoidance in Sensor Networks, in ACM SenSys, 23. [2] Y. Sankarasubramaniam, O. Akan, and I. Akyildiz, ESRT: Event-to-Sink Reliable Transport in Wireless Sensor Networks, in ACM MobiHoc, 23. [3] Y. Yi and S. Shakkottai, A Hop-by-hop Congestion Control over a Wireless Multi-hop Network, in Proceedings of IEEE INFOCOM 4, March 24. [4] S. Floyd and V. Jacobson, Random Early Detection Gateways for Congestion Avoidance, IEEE/ACM Transactions on Networking, Aug. 993. [] B. P. Crow, I. Widjaja, J. G. Kim, and P. T. Sakai, IEEE 82. Wireless Local Area Networks, IEEE Communications Magazine, Sep. 997. [6] S. Tilak, N. B. Abu-Ghazaleh, and W. Heinzelman, Infrastructure tradeoffs for sensor networks, ACM Workshop on Wireless Sensor Networks and Applications (WSNA), Sep. 22.