
Chapter 4 Configuring Policer Rate Limits and Actions . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Policer Bandwidth and Burst-Size Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
PolicerColor-MarkingandActions......................................18
SingleTokenBucketAlgorithm........................................20
TokenBucketConcepts..........................................20
SingleTokenBucketAlgorithm....................................20
Conformance Measurement for Two-Color Marking . . . . . . . . . . . . . . . . . . . . 21
DualTokenBucketAlgorithms.........................................22
TokenBucketConcepts..........................................22
Guaranteed Bandwidth for Three-Color Marking . . . . . . . . . . . . . . . . . . . . . . 22
Nonconformance Measurement for Single-Rate Three-Color Marking . . . . . 22
Nonconformance Measurement for Two-Rate Three-Color Marking . . . . . . . 23
Chapter 5 Implementing Traffic Policers on EX 9200 Switches . . . . . . . . . . . . . . . . . . . 25
PolicerImplementationOverview......................................25
Understanding the Benefits of Policers and Token Bucket Algorithms . . . . . . . . . 28
Scenario1:SingleTCPConnection..................................28
Scenario 2: Multiple TCP Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Determining Proper Burst Size for Traffic Policers . . . . . . . . . . . . . . . . . . . . . . . . . 30
PolicerBurstSizeLimitOverview...................................30
EffectofBurst-SizeLimit..........................................31
Bursty Traffic Policed Without a Burst-Size Limit . . . . . . . . . . . . . . . . . . . 31
Burst-Size Limit Configured to Match Bandwidth Limit and Flow
Burstiness ..............................................31
Burst-Size Limit That Depletes All Accumulated Tokens . . . . . . . . . . . . . 31
Two Methods for Calculating Burst-Size Limit . . . . . . . . . . . . . . . . . . . . . . . . . 32
Calculation Based on Interface Bandwidth and Allowable Burst
Time ..................................................32
Calculation Based on Interface Traffic MTU . . . . . . . . . . . . . . . . . . . . . . . 32
ComparisonoftheTwoMethods...................................32
10 x MTU Method for Selecting Initial Burst Size for Gigabit Ethernet
with100KbpsBandwidth.................................33
5 ms Method for Selecting Initial Burst Size for Gigabit Ethernet Interface
with200MbpsBandwidth................................34
200 Mbps Bandwidth Limit, 5 ms Burst Duration . . . . . . . . . . . . . . . . . . 35
200 Mbps Bandwidth Limit, 600 ms Burst Duration . . . . . . . . . . . . . . . . 35
Part 2 Configuring Layer 2 Policers
Chapter 6 Two-Color and Three-Color Policers at Layer 2 . . . . . . . . . . . . . . . . . . . . . . . . 39
Two-Color Policing at Layer 2 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Guidelines for Configuring Two-Color Policing of Layer 2 Traffic . . . . . . . . . . 39
Statement Hierarchy for Configuring a Two-Color Policer for Layer 2
Traffic.....................................................39
Statement Hierarchy for Applying a Two-Color Policer to Layer 2 Traffic . . . 40
Three-Color Policing at Layer 2 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Guidelines for Configuring Three-Color Policing of Layer 2 Traffic . . . . . . . . . 41
Statement Hierarchy for Configuring a Three-Color Policer for Layer 2
Traffic .....................................................41
Copyright © 2016, Juniper Networks, Inc.iv
Traffic Policers Feature Guide for EX9200 Switches