ECE 466/566 Advanced Computer Networks

Similar documents
Improving QOS in IP Networks. Principles for QOS Guarantees. Principles for QOS Guarantees (more) Principles for QOS Guarantees (more)

Chapter 7 outline. 7.5 providing multiple classes of service 7.6 providing QoS guarantees RTP, RTCP, SIP. 7: Multimedia Networking 7-71

16/5-05 Datakommunikation - Jonny Pettersson, UmU 2. 16/5-05 Datakommunikation - Jonny Pettersson, UmU 4

Quality of Service versus Fairness. Inelastic Applications. QoS Analogy: Surface Mail. How to Provide QoS?

Congestion Control Review Computer Networking. Resource Management Approaches. Traffic and Resource Management. What is congestion control?

Sources: Chapter 6 from. Computer Networking: A Top-Down Approach Featuring the Internet, by Kurose and Ross

The network we see so far. Internet Best Effort Service. Is best-effort good enough? An Audio Example. Network Support for Playback

6.6 Scheduling and Policing Mechanisms

Lecture 16: Quality of Service. CSE 123: Computer Networks Stefan Savage

QoS Parameters. Quality of Service in the Internet. Traffic Shaping: Congestion Control. Keeping the QoS

Network Management Quality of Service I

Mixer/Translator VOIP/SIP. Translator. Mixer

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

Real-time apps and Quality of Service

Active Queue Management

Distributed Systems 3. Network Quality of Service (QoS)

Quality of Service in the Internet. QoS Parameters. Keeping the QoS. Traffic Shaping: Leaky Bucket Algorithm

Chapter 6 Congestion Control and Resource Allocation

Internet Quality of Service

Analysis of IP Network for different Quality of Service

Why Congestion Control. Congestion Control and Active Queue Management. Max-Min Fairness. Fairness

Final for ECE374 05/06/13 Solution!!

Passive Queue Management

Network management and QoS provisioning - QoS in the Internet

Multimedia Requirements. Multimedia and Networks. Quality of Service

COMPARATIVE ANALYSIS OF DIFFERENT QUEUING MECHANISMS IN HETROGENEOUS NETWORKS

Per-Flow Queuing Allot's Approach to Bandwidth Management

Announcements. Midterms. Mt #1 Tuesday March 6 Mt #2 Tuesday April 15 Final project design due April 11. Chapters 1 & 2 Chapter 5 (to 5.

MULTIMEDIA NETWORKING

CS640: Introduction to Computer Networks. Why a New Service Model? Utility curve Elastic traffic. Aditya Akella. Lecture 20 QoS

Quality of Service (QoS)) in IP networks

Smart Queue Scheduling for QoS Spring 2001 Final Report

Data Networks Summer 2007 Homework #3

CSE 123: Computer Networks

Motivation. QoS Guarantees. Internet service classes. Certain applications require minimum level of network performance:

QoS scheduling. Scheduling algorithms

Quality of Service. Traditional Nonconverged Network. Traditional data traffic characteristics:

Overview. QoS, Traffic Engineering and Control- Plane Signaling in the Internet. Telematics group University of Göttingen, Germany. Dr.

Transport Layer Protocols

Quality of Service in ATM Networks

First Midterm for ECE374 03/09/12 Solution!!

Improving Quality of Service

QoS for Cloud Computing!

Faculty of Engineering Computer Engineering Department Islamic University of Gaza Network Chapter# 19 INTERNETWORK OPERATION

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

Protagonist International Journal of Management And Technology (PIJMT) Online ISSN Vol 2 No 3 (May-2015) Active Queue Management

How To Provide Qos Based Routing In The Internet

Active Queue Management

Chapter 3 ATM and Multimedia Traffic

Network Layer: Network Layer and IP Protocol

Investigation and Comparison of MPLS QoS Solution and Differentiated Services QoS Solutions

Lecture 15: Congestion Control. CSE 123: Computer Networks Stefan Savage

CS 268: Lecture 13. QoS: DiffServ and IntServ

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Using median filtering in active queue management for telecommunication networks

CS/ECE 438: Communication Networks. Internet QoS. Syed Faisal Hasan, PhD (Research Scholar Information Trust Institute) Visiting Lecturer ECE

4 Internet QoS Management

Requirements of Voice in an IP Internetwork

PART III. OPS-based wide area networks

18: Enhanced Quality of Service

CHAPTER 1 ATM TRAFFIC MANAGEMENT

TCP, Active Queue Management and QoS

Nortel Technology Standards and Protocol for IP Telephony Solutions

Integrated Service (IntServ) versus Differentiated Service (Diffserv)

Basic Multiplexing models. Computer Networks - Vassilis Tsaoussidis

How To Solve A Network Communication Problem

Congestion Control Overview

Indepth Voice over IP and SIP Networking Course

CS 78 Computer Networks. Internet Protocol (IP) our focus. The Network Layer. Interplay between routing and forwarding

Lecture 33. Streaming Media. Streaming Media. Real-Time. Streaming Stored Multimedia. Streaming Stored Multimedia

Optimizing Converged Cisco Networks (ONT)

17: Queue Management. Queuing. Mark Handley

Competitive Analysis of QoS Networks

Quality of Service Analysis of site to site for IPSec VPNs for realtime multimedia traffic.

Management of Telecommunication Networks. Prof. Dr. Aleksandar Tsenov

Active Queue Management

10CS64: COMPUTER NETWORKS - II

Traffic Control Functions in ATM Networks Byung G. Kim Payoff

Active Queue Management (AQM) based Internet Congestion Control

VoIP network planning guide

Rate Constraints for Packet Video Transmission. 3.2 Comparison of VBR and CBR video transmission : : : : : : : : : : : 79

Local Area Networks transmission system private speedy and secure kilometres shared transmission medium hardware & software

5. DEPLOYMENT ISSUES Having described the fundamentals of VoIP and underlying IP infrastructure, let s address deployment issues.

QoS issues in Voice over IP

Quality of Service. Translation of QoS Parameters. Quality of Service

The Network Layer Functions: Congestion Control

Quality of Service on the Internet: Evaluation of the IntServ Architecture on the Linux Operative System 1

COMP 361 Computer Communications Networks. Fall Semester Midterm Examination

A Policy-Based Admission Control Scheme for Voice over IP Networks

CS268 Exam Solutions. 1) End-to-End (20 pts)

Master s Thesis. A Study on Active Queue Management Mechanisms for. Internet Routers: Design, Performance Analysis, and.

15-441: Computer Networks Homework 2 Solution

ECE 358: Computer Networks. Homework #3. Chapter 5 and 6 Review Questions 1

Differentiated Services

ROUTER CONTROL MECHANISM FOR CONGESTION AVOIDANCE IN CDMA BASED IP NETWORK

Transcription:

ECE 466/566 Advanced Computer Networks Thinh Nguyen Email: thinhq@eecs.orst.edu Electrical Engineering and Computer Science Oregon State University TA: Monchai Lertsutthiwong Email:lertsumo@engr.orst.edu Office Hours: 3-5 PM. 7: Multimedia Networking 7-1

Chapter 7 outline 7.1 Multimedia Networking Applications 7.2 Streaming stored audio and video 7.3 Real-time Multimedia: Internet Phone study 7.4 Protocols for Real- Time Interactive Applications RTP,RTCP,SIP 7.5 Distributing Multimedia: content distribution networks 7.6 Beyond Best Effort 7.7 Scheduling and Policing Mechanisms 7.8 Integrated Services and Differentiated Services 7.9 RSVP 7: Multimedia Networking 7-2

Improving QOS in IP Networks Thus far: making the best of best effort Future: next generation Internet with QoS guarantees RSVP: signaling for resource reservations Differentiated Services: differential guarantees Integrated Services: firm guarantees simple model for sharing and congestion studies: 7: Multimedia Networking 7-3

Principles for QOS Guarantees Example: 1Mbps, I P phone, FTP share 1.5 Mbps link. bursts of FTP can congest router, cause audio loss want to give priority to audio over FTP Principle 1 packet marking needed for router to distinguish between different classes; and new router policy to treat packets accordingly 7: Multimedia Networking 7-4

Principles for QOS Guarantees (more) what if applications misbehave (audio sends higher than declared rate) policing: force source adherence to bandwidth allocations marking and policing at network edge: similar to ATM UNI (User Network Interface) Principle 2 provide protection (isolation) for one class from others 7: Multimedia Networking 7-5

Principles for QOS Guarantees (more) Allocating fixed (non-sharable) bandwidth to flow: inefficient use of bandwidth if flows doesn t use its allocation Principle 3 While providing isolation, it is desirable to use resources as efficiently as possible 7: Multimedia Networking 7-6

Principles for QOS Guarantees (more) Basic fact of life: can not support traffic demands beyond link capacity Principle 4 Call Admission: flow declares its needs, network may block call (e.g., busy signal) if it cannot meet needs 7: Multimedia Networking 7-7

Summary of QoS Principles Let s next look at mechanisms for achieving this. 7: Multimedia Networking 7-8

Send it Delay it Drop it What Can a Basic Router do to Packets? How they are done impacts Quality of Service Best effort? Guaranteed delay? Guaranteed throughput? Many variations in policies with different behavior Rich body of research work to understand them Limited Internet deployment Many practical deployment barriers since Internet was best-effort to begin with, adding new stuff is hard Some people just don t believe in the need for QoS! Not enough universal support 7: Multimedia Networking 7-9

Router Architecture Assumptions Assumes inputs just forward packets to outputs Switch core is N times faster than links in a NxN switch No contention at input, no head-of-line blocking Remember homework 2? Resource contention occurs only at the output interfaces Output interface has classifier, buffer/queue, scheduler components 1 Classifier Buffer/ Queue Scheduler 2 7: Multimedia Networking 7-10

Internet Classifier A flow is a sequence of packets that are related (e.g. from the same application) Flow in Internet can be identified by a subset of following fields in the packet header source/destination IP address (32 bits) source/destination port number (16 bits) protocol type (8 bits) type of service (4 bits) Examples: All TCP packets from Thinh s web browser on machine A to web server on machine B All packets from OSU All packets between OSU and Berkeley All UDP packets from OSU ECE department Classifier takes a packet and decides which flow it belongs to 7: Multimedia Networking 7-11

Buffer/Queue Buffer: memory where packets can be stored temporarily Queue: using buffers to store packets in an ordered sequence E.g. First-in-First-Out (FIFO) queue Buffer Buffer Packet Packet Head Of Queue Packet Packet Packet Packet Packet Packet 7: Multimedia Networking 7-12

Buffer/Queue When packets arrive at an output port faster than the output link speed (perhaps only momentarily) Can drop all excess packets Resulting in terrible performance Or can hold excess packets in buffer/queue Resulting in some delay, but better performance Still have to drop packets when buffer is full For a FIFO queue, drop tail or drop head are common policies i.e. drop last packet to arrive vs drop first packet in queue to make room A chance to be smart: Transmission of packets held in buffer/queue can be *scheduled* Which stored packet goes out next? Which is more important? Impacts quality of service 7: Multimedia Networking 7-13

Fair Rate Computation Denote C link capacity N number of flows ri arrival rate Max-min fair rate computation: 1. compute C/N 2. if there are flows i such that ri <= C/N, update C and N C = C i s. t r 3. if no, f = C/N; terminate 4. go to 1 i C A flow can receive at most the fair rate, i.e., min(f, ri) r i 7: Multimedia Networking 7-14

Example of Fair Rate Computation C = 10; r1 = 8, r2 = 6, r3 = 2; N = 3 C/3 = 3.33 C = C r3 = 8; N = 2 C/2 = 4; f = 4 8 6 2 10 4 4 2 f = 4: min(8, 4) = 4 min(6, 4) = 4 min(2, 4) = 2 7: Multimedia Networking 7-15

Max-Min Fairness Associate a weight wi with each flow i If link congested, compute f such that min( ri, f wi ) = i C (w 1 = 3) 8 (w 2 = 1) 6 (w 3 = 1) 2 10 6 2 2 f = 2: min(8, 2*3) = 6 min(6, 2*1) = 2 min(2, 2*1) = 2 7: Multimedia Networking 7-16

Scheduler Decides how the output link capacity is shared by flows Which packet from which flow gets to go out next? E.g. FIFO schedule Simple schedule: whichever packet arrives first leaves first Agnostic of concept of flows, no need for classifier, no need for a real scheduler, a FIFO queue is all you need E.g. TDMA schedule Queue packets according to flows Need classifier and multiple FIFO queues Divide transmission times into slots, one slot per flow Transmit a packet from a flow during its time slot 7: Multimedia Networking 7-17

TDMA Scheduling flow 1 1 Classifier flow 2 TDMA Scheduler 2 flow n Buffer management 7: Multimedia Networking 7-18

Priority Scheduling Priority scheduling: transmit highest priority queued packet multiple classes, with different priorities class may depend on marking or other header info, e.g. IP source/dest, port numbers, etc.. Real world example? 7: Multimedia Networking 7-19

Round Robin Scheduling round robin scheduling: multiple classes cyclically scan class queues, serving one from each class (if available) real world example? 7: Multimedia Networking 7-20

Internet Today FIFO queues are used at most routers No classifier, no scheduler, best-effort Sophisticated mechanisms tend to be more common near the edge of the network E.g. At campus routers Use classifier to pick out Kazaa packets Use scheduler to limit bandwidth consumed by Kazaa traffic 7: Multimedia Networking 7-21

Achieving QoS in Statistical Multiplexing Network We want guaranteed QoS But we don t want the inefficiency of TDMA Unused time slots are wasted Want to statistically share un-reserved capacity or reserved but unused capacity One solution: Weighted Fair Queuing (WFQ) Guarantees a flow receives at least its allocated bit rate 7: Multimedia Networking 7-22

WFQ Architecture flow 1 1 Classifier flow 2 WFQ Scheduler 2 flow n Buffer management 7: Multimedia Networking 7-23

What is Weighted Fair Queueing? Packet queues w 1 w 2 R w n Each flow i given a weight (importance) w i WFQ guarantees a minimum service rate to flow i r i = R * w i / (w 1 + w 2 +... + w n ) Implies isolation among flows (one cannot mess up another) 7-24

What is the Intuition? Fluid Flow w 1 water pipes w 2 w 3 water buckets t 2 t 1 w 1 w 2 w 3 7-25

Fluid Flow System If flows can be served one bit at a time WFQ can be implemented using bit-by-bit weighted round robin During each round from each flow that has data to send, send a number of bits equal to the flow s weight 7: Multimedia Networking 7-26

Fluid Flow System: Example 1 Flow 1 (w 1 = 1) 100 Kbps Packet Size (bits) Packet inter-arrival time (ms) Arrival Rate (Kbps) Flow 2 (w 2 = 1) Flow 1 Flow 2 1000 500 10 10 100 50 Flow 1 (arrival traffic) Flow 2 (arrival traffic) 1 2 3 4 5 1 2 3 4 5 6 time time Service in fluid flow system 1 2 3 4 5 1 2 3 4 5 6 0 10 20 30 40 50 60 70 80 time (ms) 7: Multimedia Networking 7-27

Fluid Flow System: Example 2 Red flow has packets backlogged between time 0 and 10 Backlogged flow flow s queue not empty Other flows have packets continuously backlogged All packets have the same size flows weights link 5 1 1 1 1 1 0 2 4 6 8 10 15 7: Multimedia Networking 7-28

Fluid Flow System queue size 35 30 25 20 15 10 5 0 30 time 50 60 A B C Packets of size 10, 20 & 30 arrive at time 0 7: Multimedia Networking 7-29

Fluid Flow System queue size 25 20 15 10 5 A B C 0 5 15 30 time Packets: time 0 size 15 time 5 size 20 time 15 size 10 40 45 7: Multimedia Networking 7-30

Fluid Flow System queue size 25 20 15 10 5 A B C 0 5 15 30 45 60 time Packets: time 0 size 15 time 5 size 20 time 15 size 10 time 18 size 15 7: Multimedia Networking 7-31

Implementation in Packet System Packet (Real) system: packet transmission cannot be preempted. Why? Solution: serve packets in the order in which they would have finished being transmitted in the fluid flow system 7: Multimedia Networking 7-32

Packet System: Example 1 Service in fluid flow system Packet system 0 2 4 6 8 10 Select the first packet that finishes in the fluid flow system 0 2 4 6 8 10 7: Multimedia Networking 7-33

Packet System: Example 2 Service in fluid flow system 1 2 3 1 2 4 3 4 5 5 6 time (ms) Select the first packet that finishes in the fluid flow system Packet system 1 2 1 3 2 3 4 4 5 5 6 time 7: Multimedia Networking 7-34

Implementation Challenge Need to compute the finish time of a packet in the fluid flow system but the finish time may change as new packets arrive! Need to update the finish times of all packets that are in service in the fluid flow system when a new packet arrives But this is very expensive; a high speed router may need to handle hundred of thousands of flows! 7: Multimedia Networking 7-35

Example Four flows, each with weight 1 Flow 1 Flow 2 Flow 3 Flow 4 ε Finish times computed at time 0 time time time time 0 1 2 3 Finish times re-computed at time ε time 0 1 2 3 4 time 7: Multimedia Networking 7-36

Solution: Virtual Time Key Observation: while the finish times of packets may change when a new packet arrives, the order in which packets finish doesn t! Only the order is important for scheduling Solution: instead of the packet finish time maintain the round # when a packet finishes (virtual finishing time) Virtual finishing time doesn t change when a packet arrives System virtual time V(t) index of the round in the bit-by-bit round robin scheme 7: Multimedia Networking 7-37

Example Flow 1 Flow 2 Flow 3 Flow 4 ε Suppose each packet is 1000 bits, so takes 1000 rounds to finish So, packets of F1, F2, F3 finishes at virtual time 1000 When packet F4 arrives at virtual time 1 (after one round), the virtual finish time of packet F4 is 1001 But the virtual finish time of packet F1,2,3 remains 1000 Finishing order is preserved time time time time 7: Multimedia Networking 7-38

System Virtual Time (Round #): V(t) V(t) increases inversely proportionally to the sum of the weights of the backlogged flows Since round # increases slower when there are more flows to visit each round. Flow 1 (w1 = 1) Flow 2 (w2 = 1) time time 1 2 3 1 2 4 3 4 5 5 6 V(t) C/2 C 7: Multimedia Networking 7-39

Virtual Time = Service Done A work conserving is defined as Wi ( t, t + w i dt) = W ( t, t + j B( t) dt) w j i B( t) where w i weight of flow i W i (t 1, t 2 ) total service received by flow i during [t 1, t 2 ) W(t 1, t 2 ) total service allocated to all flows during [t 1, t 2 ) B(t) number of flows backlogged 7: Multimedia Networking 7-40

7: Multimedia Networking 7-41 System Virtual Time: V (t) Virtual time = Work (W) ) ( ), ( ), ( ) ( t B i w dt t t W w dt t t W t B j j i i + = + t W w t V t B j j GPS = ) ( 1 ) ( ) ( t B i t W w w t W t B j j i i = ) ( 1 ), ( 2 1 ) ( 2 1 t B i dt t W w w t t W t t t t B j j i i = =

7: Multimedia Networking 7-42 Service Allocation The service received by flow i during an interval [t1,t2), while it is backlogged is ) ( ), ( 2 1 2 1 t B i dt t V w t t W t t t GPS i i = = ) ( )) ( ) ( ( ), ( 1 2 2 1 t B i t V t V w t t W GPS GPS i i =

Virtual Time Implementation of Weighted Fair Queueing V ( 0) = S k j F = S + k j k j 0 = max( F L k j w j, V ( a k 1 k j j a jk arrival time of packet k of flow j S jk virtual starting time of packet k of flow j F jk virtual finishing time of packet k of flow j L jk length of packet k of flow j B J - backlog flow (flow with packets in queue) Packets are sent in the increasing order of F j k )) V ( t j + τ ) = V ( t ) + j i τ w B j i 7: Multimedia Networking 7-43

Properties of WFQ Guarantee that any packet is transmitted within packet_length/link_capacity of its transmission time in the fluid flow system Can be used to provide guaranteed services Achieve fair allocation Can be used to protect well-behaved flows against malicious flows 7-44

Router Support For Congestion Management Traditional Internet Congestion control mechanisms at end-systems, mainly implemented in TCP Routers play little role Router mechanisms affecting congestion management Scheduling Buffer management Traditional routers FIFO Tail drop 7: Multimedia Networking 7-45

Drawbacks of FIFO with Tail-drop Buffer lock out by misbehaving flows Synchronizing effect for multiple TCP flows Burst or multiple consecutive packet drops Bad for TCP fast recovery 7: Multimedia Networking 7-46

FIFO Router with Two TCP Sessions 7: Multimedia Networking 7-47

RED (Random Early Detection) FIFO scheduling Buffer management: Probabilistically discard packets Probability is computed as a function of average queue length (why average?) Discard Probability 1 0 min_th max_th queue_len Average Queue Length 7: Multimedia Networking 7-48

RED (cont d) min_th minimum threshold max_th maximum threshold avg_len average queue length avg_len = (1-w)*avg_len + w*sample_len Discard Probability 1 0 min_th max_th queue_len Average Queue Length 7: Multimedia Networking 7-49

RED (cont d) If (avg_len < min_th) enqueue packet If (avg_len > max_th) drop packet If (avg_len >= min_th and avg_len < max_th) discard packet with probability P Discard Probability (P) 1 0 min_th max_th queue_len Average Queue Length 7: Multimedia Networking 7-50

RED (cont d) P = max_p*(avg_len min_th)/(max_th min_th) Improvements to spread the drops P = P/(1 count*p), where count how many packets were consecutively enqueued since last drop Discard Probability max_p P 1 0 min_th max_th queue_len Average Queue Length 7: Multimedia Networking 7-51

RED Advantages Absorb burst better Avoids synchronization Signal end systems earlier 7: Multimedia Networking 7-52

RED Router with Two TCP Sessions 7: Multimedia Networking 7-53

Policing Mechanisms 7: Multimedia Networking 7-54

Policing Mechanisms Goal: limit traffic to not exceed declared parameters Three common-used criteria: (Long term) Average Rate: how many pkts can be sent per unit time (in the long run) crucial question: what is the interval length: 100 packets per sec or 6000 packets per min have same average! Peak Rate: e.g., 6000 pkts per min. (ppm) avg.; 1500 ppm peak rate (Max.) Burst Size: max. number of pkts sent consecutively (with no intervening idle) 7: Multimedia Networking 7-55

Policing Mechanisms 1. Leaky Bucket Algorithm 2. Token Bucket Algorithm 7: Multimedia Networking 7-56

The Leaky Bucket Algorithm The Leaky Bucket Algorithm used to control rate in a network. Implemented as a single-server queue with constant service time. If the bucket (buffer) overflows then packets are discarded. 7: Multimedia Networking 7-57

The Leaky Bucket Algorithm (a) A leaky bucket with water. (b) a leaky bucket with packets. 7: Multimedia Networking 7-58

The Leaky Bucket Algorithm The leaky bucket enforces a constant output rate regardless of the burstiness of the input. Does nothing when input is idle. The host injects one packet per clock tick onto the network. This results in a uniform flow of packets, smoothing out bursts and reducing congestion. When packets are the same size (as in ATM cells), the one packet per tick is okay. For variable length packets though, it is better to allow a fixed number of bytes per tick. 7: Multimedia Networking 7-59

Token Bucket Token Bucket: limit input to specified Burst Size and Average Rate. bucket can hold b tokens tokens generated at rate r token/sec unless bucket full over interval of length t: number of packets admitted less than or equal to (r t + b). 7: Multimedia Networking 7-60

Token Bucket Characterized by three parameters (b, r, R) b token depth r average arrival rate R maximum arrival rate (e.g., R link capacity) A bit is transmitted only when there is an available token When a bit is transmitted exactly one token is consumed r tokens per second bits b tokens b*r/(r-r) slope R slope r <= R bps regulator time 7: Multimedia Networking 7-61

Characterizing a Source by Token Bucket Arrival curve maximum amount of bits transmitted by time t Use token bucket to bound the arrival curve bps bits Arrival curve time time 7: Multimedia Networking 7-62

Example Arrival curve maximum amount of bits transmitted by time t Use token bucket to bound the arrival curve bits (b=1,r=1,r=2) Arrival curve bps 2 1 4 3 2 1 0 1 2 3 4 5 time 1 2 3 4 5size of time interval 7: Multimedia Networking 7-63

Policing Mechanisms token bucket, WFQ combine to provide guaranteed upper bound on delay, i.e., QoS guarantee! arriving traffic token rate, r bucket size, b WFQ per-flow rate, R D = b/r max 7: Multimedia Networking 7-64

Leaky Bucket vs. Token Bucket Leaky Bucket vs Token Bucket With TB, a packet can only be transmitted if there are enough tokens to cover its length in bytes. LB sends packets at an average rate. TB allows for large bursts to be sent faster by speeding up the output. TB allows saving up tokens (permissions) to send large bursts. LB does not allow saving. 7: Multimedia Networking 7-65