Wireless Ad Hoc and Sensor Networks

Wireless Ad Hoc and Sensor Networks Wireless Ad Hoc and Sensor Networks

12.07.2015 Views

Distributed Fair Scheduling in Wireless Ad Hoc and Sensor Networks 345the next subsection. Next, when the packet is received at an intermediatenode, the packet’s weight is updated and queued accordingly.7.6.2.2 Protocol ImplementationTo achieve fairness at the scheduling level, the proposed ADFS protocolimplements the SFQ scheme, defined as follows:1. On arrival, a packet of flow f , is stamped with start tag ( ) ,defined asp fj{ } ≥( f )= ( ( f )) ( f )Sp j vAp j Fp j−1max , , j 1,jwhere Fp ( f ), finish tag of packet p j jf , is defined as Fp ( f )=Sp ( jf ) jl+f , j≥1, φ f0where Fp ( f ) = 0 and φ f is the weight of flow f .2. Initially, the virtual time of the sensor node is set to zero. Duringtransmission, the node’s virtual time at time t , vt () is defined tobe equal to the start tag of the packet being transmitted at time t.At the end of a transmission, vt () is set to the maximum of finishtag assigned to any packets that have been transmitted by time t.3. Packets are transmitted in the increasing order of the start tags;ties are broken arbitrarily.7.6.2.3 Dynamic Weight Adaptation and Backoff Interval CalculationTo account for the changing traffic and channel conditions that affect thefairness and end-to-end delay, the weights for the flows are updateddynamically. The ADFS, which is detailed in Section 7.1 to Section 7.4,calculates the backoff interval by using the packet weight and updatedat each node due to weight adaptation.7.6.2.4 Distributed Power Control and ResetThe basic communication used to send a user packet requires a four-wayhandshake exchange which consists of four frames:1. Request-to-send (RTS) — from source to destination2. Clear-to-send (CTS) — from destination to source3. DATA frame — from source to destination4. Acknowledgment (ACK) — from destination to sourceSp fjAll these frames are transmitted over the single radio channel. Hence, thecommunication between the nodes is carried over shared half duplex medium.

346 Wireless Ad Hoc and Sensor NetworksAdditionally, handshake between other nodes can exist at the same timeinstance. As a result, the interference can increase due to multiple nodescommunicating with their destinations by accessing the channel. The estimatedtransmitter power has to overcome such an interference, which isnormally not known. In addition, the packet transmission as well as arrivaltimes will vary between frames due to the following reasons. First, theframes within the 4-way handshake have different size, ranging from fewbytes (ACK) to over 2500 bytes (DATA) due to the frame type. Second, thedelay between two consecutive handshakes can vary because of channelcontention. As the result, the estimation error will also vary depending onthese time gaps. Therefore, the target signal-to-interference ratio (SIR) hasto be chosen to overcome the worst-case scenario due to these uncertainties.Thus in our implementation, the target SIR value is calculated by multiplyingthe minimum SIR with a safety factor.In the real scenario, it is possible that channel conditions can changetoo quickly, which will prevent any algorithm to accurately estimate thepower value. Then, the frame losses will occur. Two mechanisms areintroduced to overcome or mitigate such problems: increase of transmissionpower in the case of retransmission and reset of power in the caseof a long idle connection.A retransmission indicates that the received signal has been attenuated.A simple approach would be to retransmit the frame with the same poweras the first transmission by hoping that the channel conditions are better.However, the channel attenuation or interferences could also be worse thanbefore. To overcome this problem, an active approach can be used. In thisapproach, for each retransmission, the transmission power is increased by acertain safety margin. Unfortunately, this will increase interference as wellas power consumption. However, experiments indicated that active adaptationof power with the DPC yielded higher throughput and resulted in lessretransmissions when compared to the passive method where no safety marginwas utilized. As the result, safety margin is used with the DPC scheme.Additionally, the estimated power value for a given destination canbecome inaccurate when significant delays are present between any twoconsecutive frames or delayed feedback. To overcome this, after certainidle interval, the DPC algorithm will reset the transmission power to themaximum value defined for the network. The DPC process described inChapter 6 is then restarted from the beginning.7.6.3 Energy-Aware MAC ProtocolFor this DPC implementation, the original MAC protocol for 802.11 hasbeen modified. These modifications occur at different layers. Furthermore,an idea, which is presented in Zawodniok and Jagannathan (2004), for adhoc networks, is used in the energy-aware protocol.

Distributed Fair Scheduling in <strong>Wireless</strong> <strong>Ad</strong> <strong>Hoc</strong> <strong>and</strong> <strong>Sensor</strong> <strong>Networks</strong> 345the next subsection. Next, when the packet is received at an intermediatenode, the packet’s weight is updated <strong>and</strong> queued accordingly.7.6.2.2 Protocol ImplementationTo achieve fairness at the scheduling level, the proposed ADFS protocolimplements the SFQ scheme, defined as follows:1. On arrival, a packet of flow f , is stamped with start tag ( ) ,defined asp fj{ } ≥( f )= ( ( f )) ( f )Sp j vAp j Fp j−1max , , j 1,jwhere Fp ( f ), finish tag of packet p j jf , is defined as Fp ( f )=Sp ( jf ) jl+f , j≥1, φ f0where Fp ( f ) = 0 <strong>and</strong> φ f is the weight of flow f .2. Initially, the virtual time of the sensor node is set to zero. Duringtransmission, the node’s virtual time at time t , vt () is defined tobe equal to the start tag of the packet being transmitted at time t.At the end of a transmission, vt () is set to the maximum of finishtag assigned to any packets that have been transmitted by time t.3. Packets are transmitted in the increasing order of the start tags;ties are broken arbitrarily.7.6.2.3 Dynamic Weight <strong>Ad</strong>aptation <strong>and</strong> Backoff Interval CalculationTo account for the changing traffic <strong>and</strong> channel conditions that affect thefairness <strong>and</strong> end-to-end delay, the weights for the flows are updateddynamically. The ADFS, which is detailed in Section 7.1 to Section 7.4,calculates the backoff interval by using the packet weight <strong>and</strong> updatedat each node due to weight adaptation.7.6.2.4 Distributed Power Control <strong>and</strong> ResetThe basic communication used to send a user packet requires a four-wayh<strong>and</strong>shake exchange which consists of four frames:1. Request-to-send (RTS) — from source to destination2. Clear-to-send (CTS) — from destination to source3. DATA frame — from source to destination4. Acknowledgment (ACK) — from destination to sourceSp fjAll these frames are transmitted over the single radio channel. Hence, thecommunication between the nodes is carried over shared half duplex medium.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!