Credit-Based Fair Queueing (CBFQ) K. T. Chan, B. Bensaou and D.H.K. Tsang. Department of Electrical & Electronic Engineering

Similar documents
Delay Analysis of Fair Queueing Algorithms with the. Stochastic Comparison Approach. Nihal Pekergin

Network Model for Delay-Sensitive Traffic

Quality of Service (QoS)

Stability in ATM Networks. network.

Uncontrollable. High Priority. Users. Multiplexer. Server. Low Priority. Controllable. Users. Queue

SCHEDULING REAL-TIME MESSAGES IN PACKET-SWITCHED NETWORKS IAN RAMSAY PHILP. B.S., University of North Carolina at Chapel Hill, 1988

Rate-Controlled Static-Priority. Hui Zhang. Domenico Ferrari. hzhang, Computer Science Division

Applying fair queueing and traffic shaping for Internet applications on top of ATM The LB_SCFQ algorithm

MDP Routing in ATM Networks. Using the Virtual Path Concept 1. Department of Computer Science Department of Computer Science

Core-Stateless Guaranteed Rate Scheduling Algorithms

FB(9,3) Figure 1(a). A 4-by-4 Benes network. Figure 1(b). An FB(4, 2) network. Figure 2. An FB(27, 3) network

Scheduling. Scheduling algorithms. Scheduling. Output buffered architecture. QoS scheduling algorithms. QoS-capable router

requests or displaying activities, hence they usually have soft deadlines, or no deadlines at all. Aperiodic tasks with hard deadlines are called spor

V 1. volume. time. t 1

Connection Admission Control for Hard Real-Time Communication in ATM Networks

Core-Stateless Guaranteed Rate Scheduling Algorithms

THERE are a growing number of Internet-based applications

Space Priority Trac. Rajarshi Roy and Shivendra S. Panwar y. for Advanced Technology in Telecommunications, Polytechnic. 6 Metrotech Center

Worst-case Ethernet Network Latency for Shaped Sources

Wide area networks: packet switching and congestion

Unit 2 Packet Switching Networks - II

Stop-and-Go Service Using Hierarchical Round Robin

An Efficient Implementation of Burst Fair Queuing for ATM Networking

RSVP 1. Resource Control and Reservation

Resource Control and Reservation

A New Optical Burst Switching Protocol for Supporting. Quality of Service. State University of New York at Bualo. Bualo, New York ABSTRACT

A Versatile Packet Multiplexer for Quality-of-Service Networks*

1188 IEEE/ACM TRANSACTIONS ON NETWORKING, VOL. 13, NO. 5, OCTOBER Wei Sun, Student Member, IEEE, and Kang G. Shin, Fellow, IEEE

A Near-Optimal Packet Scheduler for QoS Networks. University of Virginia. Charlottesville, VA fdallas j

A Lossless Quality Transmission Algorithm for Stored VBR Video

Efficient Uplink Scheduler Architecture of Subscriber Station in IEEE System

CS244a: An Introduction to Computer Networks

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

Journal of Electronics and Communication Engineering & Technology (JECET)

Numerical Evaluation of Hierarchical QoS Routing. Sungjoon Ahn, Gayathri Chittiappa, A. Udaya Shankar. Computer Science Department and UMIACS

16 Greedy Algorithms

Design of a Weighted Fair Queueing Cell Scheduler for ATM Networks

Universal Timestamp-Scheduling for Real-Time Networks. Abstract

perform well on paths including satellite links. It is important to verify how the two ATM data services perform on satellite links. TCP is the most p

General comments on candidates' performance

048866: Packet Switch Architectures

Chapter. CAC & Routing Strategies

Greedy Algorithms. T. M. Murali. January 28, Interval Scheduling Interval Partitioning Minimising Lateness

THROUGHPUT IN THE DQDB NETWORK y. Shun Yan Cheung. Emory University, Atlanta, GA 30322, U.S.A. made the request.

Differentiated Service Queuing Disciplines in NS-3

Pipelined Sections: A New Buffer Management Discipline for Scalable QoS Provision

Cover sheet for Assignment 5

Episode 5. Scheduling and Traffic Management

Delivery Network on the Internet

Scheduling Algorithms to Minimize Session Delays

Switching Using Parallel Input Output Queued Switches With No Speedup

Networks. Wu-chang Fengy Dilip D. Kandlurz Debanjan Sahaz Kang G. Shiny. Ann Arbor, MI Yorktown Heights, NY 10598

Network Layer Enhancements

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

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

Providing Guaranteed Services Without Per Flow. Management. Ion Stoica Hui Zhang. May 1998 CMU-CS Carnegie Mellon University

Slot Generator. Station 1

Enhanced Fair Scheduling for IEEE e Wireless LANs *

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

IN ATM NETWORKS 1. Duke Hong, Tatsuya Suda. Department of Information and Computer Science, Abstract

QoS Guarantees. Motivation. . link-level level scheduling. Certain applications require minimum level of network performance: Ch 6 in Ross/Kurose

Time. Objective 1: end to end delay below 100 ms. Shaping & Packetization. Dec. Enc. Network Adaptation. Frame Grabber. Video Adaptor.

of-service Support on the Internet

CS244a: An Introduction to Computer Networks

CS551 Router Queue Management

COMP/ELEC 429/556 Introduction to Computer Networks

Dynamic Scheduling Algorithm for input-queued crossbar switches

CS 268: Computer Networking

8: Scheduling. Scheduling. Mark Handley

SELFLESS DISTRIBUTED CREDIT BASED

Congestion Control Open Loop

IEEE TRANSACTIONS ON INFORMATION THEORY, VOL. 44, NO. 3, MAY Application of Network Calculus to Guaranteed Service Networks

QUALITY of SERVICE. Introduction

A cell switching WDM broadcast LAN with bandwidth guarantee. and fair access. Anthony C. Kam Kai-Yeung Siu 1

Comparison of Shaping and Buffering for Video Transmission

T H. Runable. Request. Priority Inversion. Exit. Runable. Request. Reply. For T L. For T. Reply. Exit. Request. Runable. Exit. Runable. Reply.

William Stallings Data and Computer Communications. Chapter 10 Packet Switching

An Efficient ATM Network Switch Scheduling

1 Introduction Recently there has been increased interest in providing real-time services over Internet. To this eect, IETF has dened two kinds of qua

FACULTY OF COMPUTING AND INFORMATICS

A technique for adding range restrictions to. August 30, Abstract. In a generalized searching problem, a set S of n colored geometric objects

Optimal per-node Rate Allocation to provide per-flow End-to-End Delay Guarantees in a Network of Routers supporting Guaranteed Service Class

Heap-on-Top Priority Queues. March Abstract. We introduce the heap-on-top (hot) priority queue data structure that combines the

CHAPTER 3 EFFECTIVE ADMISSION CONTROL MECHANISM IN WIRELESS MESH NETWORKS

Delayed reservation decision in optical burst switching networks with optical buffers

Communication using Multiple Wireless Interfaces

A distributed memory management for high speed switch fabrics

A New Theory of Deadlock-Free Adaptive. Routing in Wormhole Networks. Jose Duato. Abstract

Dynamic Window-Constrained Scheduling for Multimedia Applications

EP2210 Scheduling. Lecture material:

Application of Network Calculus to the TSN Problem Space

Scheduling algorithms in broadband wireless networks. Institute of Electrical and Electronics Engineers Proceedings, 2001, v. 89 n. 1, p.

Performance Evaluation of Scheduling Mechanisms for Broadband Networks

This paper describes and evaluates the Dual Reinforcement Q-Routing algorithm (DRQ-Routing)

To Appear: Proc. IEEE ICC'96 Conference, Dallas, June A Bandwidth Control Scheme for Connectionless ATM

Matrix Unit Cell Scheduler (MUCS) for. Input-Buered ATM Switches. Haoran Duan, John W. Lockwood, and Sung Mo Kang

Lottery Scheduling for Flexible and Fine-grained Bandwidth Management in Wireless LANs

Bounded-delay and loss-free guarantees for real-time video in integrated services packet networks

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

Scheduling Periodic and Aperiodic. John P. Lehoczky and Sandra R. Thuel. and both hard and soft deadline aperiodic tasks using xed-priority methods.

Transcription:

Credit-Based Fair Queueing (CBFQ) K. T. Chan, B. Bensaou and D.H.K. Tsang Department of Electrical & Electronic Engineering Hong Kong University of Science & Technology Clear Water Bay, Kowloon, Hong Kong E-mail:feeking, eebben, eetsangg@ee.ust.hk Fax: +852 2358 1485 Indexing terms: Fair queueing, Bandwidth scheduling, Delay bound, Packetswitched networks. Abstract: A simple rate-based scheduling algorithm for packet-switched networks (e.g. Internet) is proposed. By using simple counters to keep track of the credits accumulated by each trac stream, the algorithm decides which stream to serve next based on the bandwidth share allocated to each trac stream and the sizes of the head of line (HOL) packets of the dierent streams. Our proposed CBFQ algorithm achieves the same fairness and delay bounds as the alternative approaches based on virtual time, while avoiding the implementation problems inherent in these methods. Introduction: To support both real-time and non real-time applications, the 1

This requires the network to provide in each multiplexer enough buers to avoid packet loss and to use the necessary scheduling algorithms to meet the packet delay requirements. To achieve this latter issue, fair queueing scheduling algorithms proves very ecient. In this spirit, many algorithms such as self clocked fair queueing (SCFQ) [1] have been proposed. Mostly all the algorithms are based on the idea of associating to each arriving packet a virtual time stamp. The smaller the time stamp, the higher is the priority of the corresponding packet. They proved very ecient in guaranteeing the fairness among the trac streams. However, the inherent complexity of the virtual time approach makes the practical implementation very dicult and expensive. Moreover, since the virtual clock is the reference clock to all the streams, it cannot be reset until all the streams are idle and the system is empty, which in fact seldom happens and thus may lead to numerical overow problems. In the following, we propose an algorithm which uses simple counters to keep track of the credits accumulated by each trac stream (or QoS class). Based on the values of the counters, the sizes of the head-of-line (HOL) packets of the dierent streams, and the share of bandwidth allocated to the dierent trac streams, the algorithm decides which packet is to be sent next. Network node model: The network node we consider is shown in Figure 1. A transmission link of speed C is shared among J independent streams (which can represent either individual sources or aggregate streams of sources having the same QoS requirements). Each stream is associated with a dedicated buer (note that this can be achieved in a shared buer by implementing linked lists). 2

S i, i = 1; ; J. To ensure stability, we assume P i S i C. Besides, to keep track of the transmission credits earned by each stream, the CBFQ algorithm associates a counter K i to trac stream i, i = 1; ; J. When the transmission link becomes available, based on the values the counters, the share of bandwidth of each stream, and the HOL packet sizes L i of the active streams, the CBFQ algorithm decides which packet is to be transmitted next. CBFQ algorithm: In the following, we present the general CBFQ algorithm. This algorithm is appropriate to either variable packet size networks (e.g. Internet) or xed packet size networks (e.g. ATM). To take account of the advantages provided by the xed packet size in ATM networks, a simplied version of the CBFQ algorithm for ATM networks has been proposed in [2]. 1. Initialize: At the beginning of operation, set all the counters to zero: K l = 0; l = 1; ; J 2. Begin: Let J = fj1; ; j k g and jj j = k such that Queues j1; ; j k are currently backlogged; 3. Let L jn be the size of the HOL packet of Queue j n 2 J ; 4. Sort the backlogged queues according to: L j1? K j1 S j1 L j 2? K j2 S j2 L jk? K jk S j k 3

lows: K jn? K jn + L j 1? K j1 S j1 S jn ; 8 j n 2 J nfj1g K j1? 0 6. End (Goto 2 to serve another packet). Intuitively, in Step 4, our algorithm serves rst the stream that needs the shortest time to earn enough credits to transmit its HOL packet. This time interval \decit" is (L j1? K j1 )=S j1 and is the shortest by virtue of the order in Step 4. Accordingly, in Step 5, the other streams earn an amount of credits proportional to their bandwidth share during this time interval, i.e. S jn (L j1? K j1 )=S j1. Note that, when the equality holds on the left side of the priority order in Step 4, the counters are incremented only once. Fairness guarantee: Let J (t1; t2) denote the set of queues that are continuously backlogged during (t1; t2). Dene W i (t1; t2) and MAX i, i = 1; :::; J, as the amount of trac transmitted from queue i during (t1; t2) and the maximum packet size of stream i respectively. We can prove the following theorem. Theorem 1 8l; l 0 2 J (t1; t2), W l(t1; t2)? W l0(t1; t2) S l S l MAX l 0 S l + MAXl0 : S l 0 Proof: First, we can prove by induction that 0 K l MAX l, at any time t. Second, if we let A l (t1; t2) be the amount of credit earned by stream l during (t1; t2), we can show that W l (t1; t2) A l (t1; t2) + K l (t1)? K l (t2). Finally, by 4

comes straightforward. 2 End-to-end delay bound guarantee: Denote by d n l the end-to-end delay experienced by the nth packet from stream l. Let I be the number of nodes on the path of ow l, and C i, i = 1; ; I be the server capacity at node i. Dene N i as the set of streams served by node i. Let MAX l be the maximum packet size from stream l, and MAX n l be the maximum packet size from stream l up to packet n (i.e. MAX n l = max k2f1;:::;ng Lk l, where L k l is the length of the k th packet from stream l). Theorem 2 For stream l which is constrained by a ( l ; l )-Leaky Bucket, if the scheduling algorithm at each server on the path of the ow belongs to CBFQ, then the end-to-end delay bound for packet n of stream l is given by d n l l + (I? 1)MAX n l l + IX i=1 X m2ninflg MAX m C i + X I?1 i ; i=1 where i is the propagation delay between nodes i and i + 1. Proof: By using the hints given in the proof of Theorem 1 with the framework provided in [3], this delay bound can be proved easily. 2 Complexity of CBFQ: It is easy to prove that after serving a packet, the order of the terms in Step 4 of the algorithm above does not change except for the queue that has just been served. In this case the sorting is not a full sort but just an insertion of an element (either the queue that has just been served, or a queue that just became active) in an already sorted list. Besides, since the 5

allel making the complexity of Step 5 equal to O(1). With these remarks and all the other operations being O(1), the complexity of the algorithm becomes the same as the complexity of a search algorithm: O(log(J)). By comparison to the alternative approaches, this constitutes a major improvement towards practical implementations. In addition, since the values of the counters are bounded, numerical overow problems would not occur in our algorithm. Conclusion: A new scheduling algorithm CBFQ for packet-switched networks has been proposed. Based on a set of counters that keep track of the credits earned by each trac stream, CBFQ decides which stream is to be served next. The CBFQ algorithm achieves the same fairness and delay bounds as the alternative algorithms such as SCFQ while requiring less computational overhead or hardware for practical implementation. References [1] S. J. Golestani. A self-clocked fair queueing scheme for broadband applications. In Proceedings of the IEEE INFOCOM, pages 636{646, 1994. [2] D. H. K. Tsang, B. Bensaou, and K. T. Chan. Credit-based fair queueing for ATM networks. IEE Electronics Letters, 32(25):2306{2307, December 1996. [3] P. Goyal, S.S. Lam, and H.M. Vin. Determining end-to-end delay bounds in heterogeneous networks. In Proc. 5th Int. Workshop on Network and 6

April 1995. FIFO 1 S 1 FIFO 2. FIFO J S 2 S J C bits/s Figure 1: Network node model 7