+ All Categories
Home > Documents > 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl,...

1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl,...

Date post: 12-Jan-2016
Category:
Upload: madlyn-morris
View: 213 times
Download: 0 times
Share this document with a friend
48
1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom 2000
Transcript
Page 1: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

1

Distributed Fair Scheduling in a Wireless LAN

Nitin Vaidya, Texas A&M University

Victor Bahl, Microsoft Research

Seema Gupta, now with Cisco

MobiCom 2000

Page 2: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

2

Distributed Scheduling :

What & Why

Page 3: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

3

Medium Access Control

Wireless medium is a broadcast medium

Transmissions by multiple nodes can interfere

Need medium access control (MAC)

Many proposals Centralized Distributed

Page 4: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

4

BaseStation

Node1

Node2

Node3

Noden

Centralized Protocols

Base station coordinates access to the wireless channel

Page 5: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

5

Distributed Protocols

All nodes have identical responsibilities

Wireless LAN

Node1

Noden

Node3

Node2

Page 6: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

6

Disadvantages of Centralized Approach

If a node cannot talk to the base station, it cannot transmit to any other nodes

Base station needs to keep track of state of other nodes

Hard to use failure-prone nodes as coordinators in centralized protocols

Page 7: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

7

Fairness

Page 8: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

8

Fairness

Packets to be transmitted belong to several flows

Each flow is assigned a weight

Bandwidth assigned to each backlogged flow is proportional to its weight

Page 9: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

9

Fairness

Three flows with weights 2, 1, 1

Backloggedflows:

Allocatedbandwidth

Page 10: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

10

Fair Queueing

Many centralized fair queueing protocols exist WFQ, WF2Q, SCFQ, SFQ, …

Scheduler needs to know state of all flows

Flow 1

Flow 2

Flow n

Output link

Page 11: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

11

Distributed Fair Scheduling

Page 12: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

12

Our Objectives

Fully distributed fair scheduling protocol All nodes have identical responsibilities

Nodes do not need to be aware of each other’s state

Maintain compatibility / resemblance with an existing standard specifically, IEEE 802.11 Distributed Coordination Function

Page 13: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

13

Proposed Approach

Combination of

IEEE 802.11 Distributed Coordination Function (DCF) Carrier sense / collision avoidance

A centralized fair queueing protocol

Page 14: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

14

Basic Carrier Sense Approach

A node wishing to transmit waits until channel is sensed as idle, and then transmits

If two nodes are waiting to transmit, they will collide

Collision avoidance mechanism needed to avoid this

Page 15: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

15

IEEE 802.11 Distributed Coordination Function

Collision avoidance mechanism: When transmitting a packet, choose a backoff interval in the range [0,cw]

– cw is contention window

Count down the backoff interval when medium is idle

When backoff interval reaches 0, transmit

0 cw

Page 16: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

16

802.11 DCF Example

data

waitB1 = 5

B2 = 15

B1 = 25

B2 = 20

data

wait

B1 and B2 are backoff intervalsat nodes 1 and 2cw = 31

B2 = 10

Page 17: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

17

Self-Clocked Fair Queueing (SCFQ) [Golestani]

A centralized fair scheduling protocol

But more amenable for a distributed implementation than many others

The steps involved in deriving proposed distributed protocol starting from SCFQ are given in the paper virtual time, start/finish tags implementation does not need virtual time or tags

Page 18: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

18

Distributed Fair Scheduling (DFS)

Node with smallest “length/weight” should transmit first Caveat: This is a somewhat imprecise statement. DFS

(implicitly) compares so-called virtual finish tags, which are a function of length/weight

See paper for details on the finish tags

Backoff intervals used as a way to distributedly determine whose “length/weight” is smaller

Page 19: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

19

Distributed Fair Scheduling (DFS)

Choose backoff interval

= packet length / weight

packet length = 5

weight = 1/3

backoff interval = 5 / (1/3) = 15 slots

Page 20: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

20

Distributed Fair Scheduling (DFS)

data

wait

B1 = 15

B2 = 5

Packet length = 15

Weight of node 1 = 1 ====> B1 = 15 / 1 = 15Weight of node 2 = 3 ====> B2 = 15 / 3 = 5

B1 = 10

B2 = 5

data

wait

B1 = 5

B2 = 5

Collision !

Page 21: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

21

Collisions

Collisions occur when two nodes count down to 0 simultaneously In centralized fair queueing, ties can be broken without causing

“collisions”

To reduce the possibility of collisions:

Backoff interval = Scaling_Factor * length / weight * random number with

mean 1

Page 22: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

22

Backoff Interval

Initial formula: Length / weight = 15 / 1 = 15

Scaling_factor * length / weight * random number

= 4 * 15 / 1 * [0.9,1.1]

= [54,66]

0 15

Page 23: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

23

Backoff Interval

802.11

Proposed DFS

0

0

Page 24: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

24

Collisions Resolution

Collision occurs when two nodes count down to 0 simultaneously

Counting to 0 implies that it is a given node’s “turn” to transmit

To reduce “priority” reversals, a small backoff interval is chosen after the first collision

Backoff interval increased exponentially on further collisions

Page 25: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

25

Impact of Small Weights

Backoff interval: Scaling_factor * length / weight * random

number

Backoff intervals can become large when weights are small

Large backoff intervals may degrade performance (time wasted in counting down)

Page 26: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

26

Impact of Small Weights

Recall: Backoff intervals are being used to compare “length/weight”

Intuition: Any non-decreasing function of lenghth/weight may be used to obtain backoff intervals

Page 27: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

27

Alternative Mappings

Scaling_factor * length / weight * random number

Chosenbackoffinterval

Linear mapping

EXP

SQRT

Page 28: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

28

Alternative Mappings

Advantage smaller backoff intervals less time wasted in counting down when weights of all

backlogged flows are small

Disadvantage backoff intervals that are different on a linear scale may

become identical on the compressed scale possibility for greater number of collisions

Page 29: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

29

Performance Evaluation

Using modified ns-2 simulator: 2 Mbps channel

Number of nodes = N Number of flows = N/2 Odd-numbered nodes are destinations,

even-numbered nodes are sources

Unless otherwise specified: flow weight = 1 / number of flows backlogged flows with packet size 584 bytes (including UDP/IP headers)

Scaling_Factor = 0.02

Page 30: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

30

Fairness Index

Fairness measured as a function of

(throughput T / weight ) for each flow f over an interval of time Unless specified, the interval is 6 seconds

Page 31: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

31

Throughput / Weight Variation Across Flows (with 16 Flows)

Flow destination identifier

Throughput / Weight

Flattercurve

is fairer

DFSis fairer

802.11

Page 32: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

32

Throughput - Fairness Trade-Off

Aggregatethroughput(all flowscombined)

Number of flows

802.11

Page 33: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

33

Throughput - Fairness Trade-Off

Fairnessindex

Number of flows

802.11

Page 34: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

34

Scaled 802.11

Fairness of 802.11 can be improved by using larger backoff intervals

Is DFS fairer simply because it uses large backoff intervals ?

Scaled 802.11 = 802.11 which uses backoff

interval range comparable with DFS

Page 35: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

35

Short-Term Fairness

Number of packets transmitted by a flow (over 0.04 second windows)

Frequency

Narrowdistribution

is fairer

DFS isfairer

DFS

Scaled 802.11

802.11

Page 36: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

36

Fairness versus Sampling Interval Size(24 flows)

Interval Size

Fairnessindex

DFS

Scaled 802.11

802.11

Page 37: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

37

Alternative Mappings for Backoff Intervals

See additional data in the paper

EXP and SQRT improve throughput compared to LINEAR mapping when all backlogged flows have low weights but not too impressively

If at least one backlogged flow has a high weight, not much benefit

Page 38: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

38

Conclusions(supporting arguments for some conclusions not

presented in the talk: please see the paper)

DFS improves fairness compared to 802.11 and Scaled 802.11

Alternative mappings somewhat beneficial

No distributed fair scheduling protocol may accurately emulate work-conserving centralized protocols (unless clocks are synchronized)

Page 39: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

39

Conclusions

Possible to augment DFS with other techniques to improve fairness in presence of transmission errors see Seema Gupta’s M.S. thesis

No performance cost even if weight assigned to a flow is changed on a per-packet basis Execution complexity of centralized protocols would

increase

Possible to handle multiple flows per node

Page 40: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

40

Other Potential Applications of DFS

Wired LANs

Wireless multi-hop networks see our 1999 Microsoft Research technical report for some

initial ideas

Page 41: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

41

Issues for Further Work

DFS is only the first step towards practical fairness:

How to choose parameters such as Scaling_Factor ? Failure to choose reasonable values can degrade throughput or short-

term fairness

How to choose flow weights ? Let upper layer specify dynamically, or Static assignment based on static criteria

Ad hoc network-related issues

Page 42: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

42

Thank you!

www.cs.tamu.edu/faculty/vaidya

Page 43: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

43

Thank you!

www.cs.tamu.edu/faculty/vaidya

Page 44: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

44

Impact of Packet Size

Three flowswith differentpacket sizes

Packet size (bytes)

584 328 200

Flowthroughput

802.11

Page 45: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

45

Impact of Scaling Factor(six flows with weights 1/2,1/4,1/8,1/16,1/32,1/32)

Fairnessindex

Scaling Factor

DFS

Page 46: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

46

Impact of Scaling Factor (six flows with weights 1/2,1/4,1/8,1/16,1/32,1/32)

Scaling factor

Aggregatethroughput

DFS

Page 47: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

47

Related Past Work

Centralized fair queueing on wired links [Bennett,Demers,Parekh]

Centralized fair queueing in wireless environments, taking location-dependent errors into account [Bharghavan,Ramanathan,Zhang]

Distributed Real-time scheduling [Sobrinho] Distributed Priority-based scheduling

Page 48: 1 Distributed Fair Scheduling in a Wireless LAN Nitin Vaidya, Texas A&M University Victor Bahl, Microsoft Research Seema Gupta, now with Cisco MobiCom.

48

Backoff Interval

Scaling factor Small number : May result in more collisions Large number: Larger overhead

Random number range Small range will cause more collisions between synchronized

nodes

How to choose these adaptively ? This paper punts the issue But heuristic solutions are easy to define Heuristics yet to be evaluated


Recommended