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

Similar documents
Episode 5. Scheduling and Traffic Management

Enhancing TCP Fairness in Ad Hoc Wireless Networks Using Neighborhood RED

Unit 2 Packet Switching Networks - II

Lecture 5: Performance Analysis I

Lecture Outline. Bag of Tricks

Randomization. Randomization used in many protocols We ll study examples:

Randomization used in many protocols We ll study examples: Ethernet multiple access protocol Router (de)synchronization Switch scheduling

TCP Unfairness in Ad Hoc Wireless Networks and a Neighborhood RED Solution

Resource allocation in networks. Resource Allocation in Networks. Resource allocation

Router s Queue Management

Network Support for Multimedia

CHAPTER 3 ENHANCEMENTS IN DATA LINK LAYER

Advanced Lab in Computer Communications Meeting 6 QoS. Instructor: Tom Mahler

Lecture 22: Buffering & Scheduling. CSE 123: Computer Networks Alex C. Snoeren

Priority Traffic CSCD 433/533. Advanced Networks Spring Lecture 21 Congestion Control and Queuing Strategies

Computer Networking. Queue Management and Quality of Service (QOS)

Wireless Networks (CSC-7602) Lecture 8 (15 Oct. 2007)

Integrated and Differentiated Services. Christos Papadopoulos. CSU CS557, Fall 2017

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

ADVANCED COMPUTER NETWORKS

Real-Time Protocol (RTP)

CSCI Spring Final Exam Solution

EE 122: Router Support for Congestion Control: RED and Fair Queueing. Ion Stoica Oct. 30 Nov. 4, 2002

TELE Switching Systems and Architecture. Assignment Week 10 Lecture Summary - Traffic Management (including scheduling)

CS4700/CS5700 Fundamentals of Computer Networks

CSCD 433/533 Advanced Networks Spring Lecture 22 Quality of Service

Fair Queueing. Presented by Brighten Godfrey. Slides thanks to Ion Stoica (UC Berkeley) with slight adaptation by Brighten Godfrey

Topic 4b: QoS Principles. Chapter 9 Multimedia Networking. Computer Networking: A Top Down Approach

Improving QOS in IP Networks. Principles for QOS Guarantees

Advanced Computer Networks

Supporting Service Differentiation for Real-Time and Best-Effort Traffic in Stateless Wireless Ad-Hoc Networks (SWAN)

Overview. Lecture 22 Queue Management and Quality of Service (QoS) Queuing Disciplines. Typical Internet Queuing. FIFO + Drop tail Problems

A framework to determine the optimal loss rate of RED queue for next generation Internet routers

of-service Support on the Internet

Congestion. Can t sustain input rate > output rate Issues: - Avoid congestion - Control congestion - Prioritize who gets limited resources

Queuing. Congestion Control and Resource Allocation. Resource Allocation Evaluation Criteria. Resource allocation Drop disciplines Queuing disciplines

CS 268: Computer Networking

Scheduling (Chapter 9) Outline

Master Course Computer Networks IN2097

CS551 Router Queue Management

15-744: Computer Networking. Overview. Queuing Disciplines. TCP & Routers. L-6 TCP & Routers

Kommunikationssysteme [KS]

Master Course Computer Networks IN2097

Kent State University

Implementation of a leaky bucket module for simulations in NS-3

Basics (cont.) Characteristics of data communication technologies OSI-Model

Overview Computer Networking What is QoS? Queuing discipline and scheduling. Traffic Enforcement. Integrated services

CS 356: Computer Network Architectures Lecture 19: Congestion Avoidance Chap. 6.4 and related papers. Xiaowei Yang

Mohammad Hossein Manshaei 1393

CHAPTER 3 EFFECTIVE ADMISSION CONTROL MECHANISM IN WIRELESS MESH NETWORKS

Congestion in Data Networks. Congestion in Data Networks

Network Layer Enhancements

QoS MIB Implementation

The Diffie-Hellman Key Exchange

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

Lecture 4 Wide Area Networks - Congestion in Data Networks

CS557: Queue Management

Wireless TCP Performance Issues

TCP Congestion Control : Computer Networking. Introduction to TCP. Key Things You Should Know Already. Congestion Control RED

Comparing the bandwidth and priority Commands of a QoS Service Policy

Mul$media Networking. #10 QoS Semester Ganjil 2012 PTIIK Universitas Brawijaya

Lecture 14: Performance Architecture

Quality of Service (QoS)

What Is Congestion? Computer Networks. Ideal Network Utilization. Interaction of Queues

QoS Configuration. Overview. Introduction to QoS. QoS Policy. Class. Traffic behavior

Differentiated Services

Router Design: Table Lookups and Packet Scheduling EECS 122: Lecture 13

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Fairness, Queue Management, and QoS

ECEN Final Exam Fall Instructor: Srinivas Shakkottai

Project Computer Networking. Resource Management Approaches. Start EARLY Tomorrow s recitation. Lecture 20 Queue Management and QoS

H3C S9500 QoS Technology White Paper

A Preferred Service Architecture for Payload Data Flows. Ray Gilstrap, Thom Stone, Ken Freeman

The War Between Mice and Elephants

CS 218- QoS Routing + CAC Fall 2003

different problems from other networks ITU-T specified restricted initial set Limited number of overhead bits ATM forum Traffic Management

Internet Services & Protocols. Quality of Service Architecture

ITBF WAN Quality of Service (QoS)

ICE 1332/0715 Mobile Computing (Summer, 2008)

Frame Relay. Frame Relay: characteristics

Congestion Control & Transport protocols

Internet Protocols Fall Lecture 16 TCP Flavors, RED, ECN Andreas Terzis

CS519: Computer Networks. Lecture 5, Part 4: Mar 29, 2004 Transport: TCP congestion control

Core-Stateless Fair Queueing: Achieving Approximately Fair Bandwidth Allocations in High Speed Networks. Congestion Control in Today s Internet

Quality of Service (QoS)

CSE398: Network Systems Design

Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

Introduction to Real-Time Communications. Real-Time and Embedded Systems (M) Lecture 15

CS 344/444 Computer Network Fundamentals Final Exam Solutions Spring 2007

Week 7: Traffic Models and QoS

Flow Control. Flow control problem. Other considerations. Where?

Lecture 24: Scheduling and QoS

Lecture 2: Internet Structure

EPH - International Journal of Science And Engineering

Chapter 24 Congestion Control and Quality of Service 24.1

What Is Congestion? Effects of Congestion. Interaction of Queues. Chapter 12 Congestion in Data Networks. Effect of Congestion Control

PROBABILISTIC SCHEDULING MICHAEL ROITZSCH

Traffic Access Control. Hamid R. Rabiee Mostafa Salehi, Fatemeh Dabiran, Hoda Ayatollahi Spring 2011

TCP challenges in multi-hop wireless networks. Why multi-hop?

Wireless Network Security Spring 2014

Transcription:

Wireless Networks (CSC-7602) Lecture 8 (22 Oct. 2007) Seung-Jong Park (Jay) http://www.csc.lsu.edu/~sjpark Fair Queueing 2

Today Wireline Queue Drop Wireless Queue Drop 3 Types of Congestion Control Strategies Limit entry into the system Packet level (layer 3) Leaky Bucket, token bucket, WFQ Flow/conversation level (layer 4) Resource reservation TCP backoff/reduce window Application level (layer 7) Limit types/kinds of applications Terminate existing resources Drop packets Drop circuits 4 2

Leaky Bucket: Analogy Across a single link, only allow packets across at a constant rate Packets may be generated in a bursty manner, but after they pass through the leaky bucket, they enter the network evenly spaced If all inputs enforce a leaky bucket, its easy to reason about the total resource demand on the rest of the system Leaky Bucket Packets from input Output 5 Leaky Bucket (cont d) The leaky bucket is a traffic shaper : It changes the characteristics of a packet stream Traffic shaping makes the network more manageable and predictable Usually the network tells the leaky bucket the rate at which it may send packets when a connection is established Leaky Bucket: Doesn t allow bursty transmissions In some cases, we may want to allow short bursts of packets to enter the network without smoothing them out For this purpose we use a token bucket, which is a modified leaky bucket 6 3

Token Bucket The bucket holds logical tokens instead of packets Tokens are generated and placed into the token bucket at a constant rate When a packet arrives at the token bucket, it is transmitted if there is a token available. Otherwise it is buffered until a token becomes available. The token bucket holds a fixed number of tokens, so when it becomes full, subsequently generated tokens are discarded Can still reason about total possible demand Token Generator (Generates a token once every T seconds) Packets from input output 7 Token Bucket vs. Leaky Bucket Case : Short burst arrivals Arrival time at bucket 0 2 3 4 5 6 0 2 3 4 5 6 Departure time from a leaky bucket Leaky bucket rate = packet / 2 time units Leaky bucket size = 4 packets 0 2 3 4 5 6 Departure time from a token bucket Token bucket rate = tokens / 2 time units Token bucket size = 2 tokens 8 4

Token Bucket vs. Leaky Bucket Case 2: Large burst arrivals Arrival time at bucket 0 2 3 4 5 6 0 2 3 4 5 6 Departure time from a leaky bucket Leaky bucket rate = packet / 2 time units Leaky bucket size = 2 packets 0 2 3 4 5 6 Departure time from a token bucket Token bucket rate = token / 2 time units Token bucket size = 2 tokens 9 Queue Drop Policy for Wire Link 0 5

Packet dropping Packets that cannot be served immediately are buffered Full buffers => packet drop strategy Packet losses happen almost always from best-effort connections (why?) Shouldn t drop packets unless imperative packet drop wastes resources (why?) 50 Mbps 50 Mbps Router 50 Mbps 50 Mbps Buffer Early vs. late drop Early drop => drop even if space is available signals endpoints to reduce rate cooperative sources get lower overall delays, uncooperative sources get severe packet loss Early random drop drop arriving packet with fixed drop probability if queue length exceeds threshold intuition: misbehaving sources more likely to send packets and see packet losses doesn t work! 2 6

Early vs. late drop: RED Random early detection (RED) makes three improvements Metric is moving average of queue lengths small bursts pass through unharmed only affects sustained overloads Packet drop probability is a function of mean queue length prevents severe reaction to mild overload Can mark packets instead of dropping them allows sources to detect network state without losses RED improves performance of a network of cooperating TCP sources No bias against bursty sources Controls queue length regardless of endpoint cooperation 3 Drop position Can drop a packet from head, tail, or random position in the queue Tail easy default approach Head harder lets source detect loss earlier 4 7

Drop position (contd.) Random hardest unlikely to make it to real routers Drop entire longest queue easy almost as effective as drop tail from longest queue 5 Randomization in Router Queue Management normally, packets dropped only when queue overflows drop-tail queueing P 6 P 5 P 4 P 3 P 2 P FCFS Scheduler ISP router Internet ISP router 6 8

The case against drop-tail queue management P 6 P 5 P 4 P 3 P 2 P FCFS FCFS Scheduler Scheduler large queues in routers are a bad thing end-to-end latency dominated by length of queues at switches in network allowing queues to overflow is a bad thing connections transmitting at high rates can starve connections transmitting at low rates connections can synchronize their response to congestion Global synchronization 7 Idea: early random packet drop P 6 P 5 P 4 P 3 P 2 P FCFS FCFS Scheduler Scheduler when queue length exceeds threshold, drop packets with queue length dependent probability probabilistic packet drop: flows see same loss rate problem: bursty traffic (burst arrives when queue is near threshold) can be over penalized 8 9

Random early detection (RED) packet drop Average queue length Max queue length Max threshold Min threshold Drop probability Time Forced drop Probabilistic early drop No drop use exponential average of queue length to determine when to drop avoid overly penalizing short-term bursts react to longer term trends tie drop prob. to weighted avg. queue length avoids over-reaction to mild overload conditions 9 Random early detection (RED) packet drop Average queue length Max queue length Max threshold Min threshold Drop probability Time Forced drop Probabilistic early drop No drop Drop probability 00% max p min max Weighted Average Queue Length 20 0

New Queue Drop for Wireless Networks: Enhancing TCP Fairness in Ad Hoc Wire less Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu 2 Three different types of challenges are posed to TCP in MANET. Mobility causes changing of topology and route change, cause TCP goes to exponentially back-off 2. The second problem deal with congestion window in use. 3. The third problem is significant TCP unfairness. This paper focuses on the third problem. 22

RED can improve congestion control and fairness in wired network Suppose the current queue size is q The avg queue size is computed as avg = ( w ) * avg + w * q w is the queue weight p q q = max ( avg min ) /(max min ) b p th th th p = p /( count * p ) a b b q max is the max imum packet drop probability and count is p the number of packets arrived sin ce last packet drop. Pb maxth 0 q minth 23 TCP UNFAIRNESS AND RED IN MANET FTP 2 is always starved. RED does not improve fairness. This is because congestion does not happens in a single node, but in an ent ire area. FTP 2 FTP FTP 3 24 2

Neighborhood and its Distributed Queue Neighborhood: A node s neighborhood consists of the node itself and the nodes which can interfere with this node s signal, which includes -hop neighbors and 2-hop neighbors. (normally interference range is much larger than data transmission ra nge, which is simplified in this paper). 25 Neighborhood and its Distributed Queue The main idea of this paper is to treat this distributed queue of a neighborho od in an manet the same way as we would on a single link queue in the wire d net and apply RED to it.. A neighborhood queue consists of multiple queues located at the neighbo ring nodes that are part of the same spatial reuse constraint set. 2. Multiple sub-queues have different relative priorities in terms of acquiring the wireless channel due to various factors including MAC unfairness, chan nel capture, hidden and exposed terminal etc. 3. The priority of a sub-queue may change dynamically due to topology or tr affic pattern changes. 26 3

NEIGHBORHOOD RANDOM EARLY DETECTION Make packet drop probability and packet delay proportional to the s hare of bandwidth used by each TCP flow.. Neighborhood Congestion Detection (NCD) 2. Neighborhood congestion Notification (NCN) 3. Distributed Neighborhood Packet Drop (DNPD) 27 Neighborhood Congestion Detection (NCD) When a packet in any outgoing queue is transmitted, node A will detect the medium as busy. When a packet is received to any incoming queue, node A can al so learn this through the CTS packet. 28 4

Neighborhood Congestion Detection (NCD) A node will monitor 5 different radio state. Transmitting 2. Receiving 3. Carrier sensing busy (RTS, CTS) 4. Virtual carrier sensing busy 5. Idle State &2 is for current node, 3&4 is for its neighbors. The authors ass ume state 5 means empty queue. 29 Neighborhood Congestion Detection (NCD) T T T T int erval idle tx rx () Ubusy = ; (2) Utx = ; (3) Urx = ; Tinterval Tint erval Tint erval T = T + T + T + T + T int erval tx rx cs vcs idle Assume W is channel bandwidth and the average packet size is C bits Ubusy * W q= ; avg = ( wq )* avg + wq * q C We can use the same way to calculate avg tx and avg rx 30 5

Distributed Neighborhood Packet Drop When a node received a NC N with a none zero normalize dpb, the local drop prob pb is caculated as normalizedpb* (avg_tx+avg_rx). 3 VERIFICATION AND PARAMETER TUNING Verification of Queue Size Estimation 32 6

VERIFICATION AND PARAMETER TUNING Parameter Tuning with Basic Scenarios with hidden and exposed t erminal scenario. 33 VERIFICATION AND PARAMETER TUNING Fairness index 2 2 X2 = 2 2 X + X2 F( X, ) MAXMin fairness is bounded between 0 and ( X + X ) 2( ) Hidden terminal situation with various max_p values Exposed terminal situation with various max_p values 34 7

VERIFICATION AND PARAMETER TUNING Aggregated Throughput (kbps) under hidden and exposed terminal s ituation 35 PERFORMANCE EVALUATION OF NRED Overall throughput of the 3 flows. 36 8

PERFORMANCE EVALUATION OF NRED Multiple Congested Neighborhood 37 PERFORMANCE EVALUATION OF NRED More Realistic Scenario. 50 nodes randomly deployed in 000X000m. 5FT P/TCP are randomly selected. 38 9