Table 6: Implicit and Configurable Policer Actions Based on Color Marking
(continued)
Configurable Actions
Implicit Action
Policer Rate Limits and Color
Marking
–
Set PLP to
low
Green
Conforms to rate limits
•
Discard the packet.
–
Red
Exceeds rate limits
Related
Documentation
Policer Bandwidth and Burst-Size Limits
•
•
Determining Proper Burst Size for Traffic Policers on page 30
Single Token Bucket Algorithm
This topic covers the following information:
•
Token Bucket Concepts on page 20
•
Single Token Bucket Algorithm on page 20
•
Conformance Measurement for Two-Color Marking on page 21
Token Bucket Concepts
When you apply traffic policing to the input or output traffic at an interface, the rate limits
and actions specified in the policer configuration are used to enforce a limit on the average
throughput rate at the interface while also allowing bursts of traffic up to a maximum
number of bytes based on the overall traffic load. Junos OS policers measure traffic-flow
conformance to a policing rate limit by using a
token bucket algorithm
. An algorithm based
on a single token bucket allows burst of traffic for short periods, whereas an algorithm
based dual token buckets allows more sustained bursts of traffic.
Single Token Bucket Algorithm
A single-rate two-color policer limits traffic throughput at an interface based on how the
traffic conforms to rate-limit values specified in the policer configuration. Similarly, a
hierarchical policer limits traffic throughput at an interface based on how aggregate and
premium traffic subflows conform to aggregate and premium rate-limit values specified
in the policer configuration. For both two-color policer types, packets in a conforming
traffic flow are categorized as
green
, and packets in a non-conforming traffic flow are
categorized as
red
.
The single token bucket algorithm measures traffic-flow conformance to a two-color
policer rate limit as follows:
•
The token arrival rate represents the single
bandwidth limit
configured for the policer.
You can specify the bandwidth limit as an absolute number of bits per second by
including the
bandwidth-limit
bps
statement. Alternatively, for single-rate two-color
policers only, you can use the
bandwidth-percent
percentage
statement to specify the
Copyright © 2016, Juniper Networks, Inc.
20
Traffic Policers Feature Guide for EX9200 Switches
Summary of Contents for EX9200 Series
Page 8: ...Copyright 2016 Juniper Networks Inc viii Traffic Policers Feature Guide for EX9200 Switches ...
Page 10: ...Copyright 2016 Juniper Networks Inc x Traffic Policers Feature Guide for EX9200 Switches ...
Page 12: ...Copyright 2016 Juniper Networks Inc xii Traffic Policers Feature Guide for EX9200 Switches ...
Page 20: ...Copyright 2016 Juniper Networks Inc 2 Traffic Policers Feature Guide for EX9200 Switches ...
Page 32: ...Copyright 2016 Juniper Networks Inc 14 Traffic Policers Feature Guide for EX9200 Switches ...
Page 34: ...Copyright 2016 Juniper Networks Inc 16 Traffic Policers Feature Guide for EX9200 Switches ...
Page 42: ...Copyright 2016 Juniper Networks Inc 24 Traffic Policers Feature Guide for EX9200 Switches ...
Page 54: ...Copyright 2016 Juniper Networks Inc 36 Traffic Policers Feature Guide for EX9200 Switches ...
Page 56: ...Copyright 2016 Juniper Networks Inc 38 Traffic Policers Feature Guide for EX9200 Switches ...
Page 72: ...Copyright 2016 Juniper Networks Inc 54 Traffic Policers Feature Guide for EX9200 Switches ...
Page 132: ...Copyright 2016 Juniper Networks Inc 114 Traffic Policers Feature Guide for EX9200 Switches ...
Page 152: ...Copyright 2016 Juniper Networks Inc 134 Traffic Policers Feature Guide for EX9200 Switches ...
Page 162: ...Copyright 2016 Juniper Networks Inc 144 Traffic Policers Feature Guide for EX9200 Switches ...
Page 178: ...Copyright 2016 Juniper Networks Inc 160 Traffic Policers Feature Guide for EX9200 Switches ...
Page 186: ...Copyright 2016 Juniper Networks Inc 168 Traffic Policers Feature Guide for EX9200 Switches ...
Page 188: ...Copyright 2016 Juniper Networks Inc 170 Traffic Policers Feature Guide for EX9200 Switches ...
Page 202: ...Copyright 2016 Juniper Networks Inc 184 Traffic Policers Feature Guide for EX9200 Switches ...
Page 212: ...Copyright 2016 Juniper Networks Inc 194 Traffic Policers Feature Guide for EX9200 Switches ...
Page 214: ...Copyright 2016 Juniper Networks Inc 196 Traffic Policers Feature Guide for EX9200 Switches ...
Page 278: ...Copyright 2016 Juniper Networks Inc 260 Traffic Policers Feature Guide for EX9200 Switches ...