-
Traffic Policers Feature Guide for EX9200
1
-
Juniper Networks, Inc.
2
-
Table of Contents
3
-
Copyright © 2016, Juniper Networks, Inc.
8
-
List of Figures
9
-
List of Tables
11
-
About the Documentation
13
-
user@host# edit system scripts
15
-
Table 2: Text and Syntax Conventions (continued)
16
-
• Understanding Traffic Policers on page 3
19
-
Understanding Traffic Policers
21
-
Figure 1: Network Traffic and Burst Rates
23
-
Stateless Firewall Filter Overview.
26
-
Logical Bandwidth Policer
27
-
• Policers Applied to Layer 2 Traffic on page 10
28
-
Traffic Policing Standards
31
-
Introduction to Configuring Policers
33
-
Configuring Policer Rate Limits and
35
-
Dual Token Bucket Algorithms
40
-
Implementing Traffic Policers on EX 9200
43
-
Determining Proper Burst Size for Traffic Policers
48
-
Effect of Burst-Size Limit
49
-
Figure 9: Comparing Burst Size Calculation Methods
51
-
200 Mbps Bandwidth Limit, 5 ms Burst Duration
53
-
Configuring Layer 2 Policers
55
-
Two-Color and Three-Color Policers at
57
-
policer policer-name {
58
-
Three-Color Policing at Layer 2 Overview
59
-
Configure logical interface ge-1/3/1.0.
63
-
• Output: trTCM2-cb-ge-1/3/1.0-log_int-o
66
-
Configuring Two-Color Traffic Policers at
67
-
Basic Single-Rate Two-Color Policers
73
-
To configure Device R2:
79
-
then policer discard;
80
-
user@R2# show protocols ospf
81
-
Enable single-tag VLAN framing.
85
-
Configure the first policer.
86
-
Configure the filter term to match FTP packets.
88
-
policer p-ftp-10p-500k-discard {
89
-
family inet {
90
-
• Bandwidth Policer Overview on page 75
93
-
Configure the second logical interface.
97
-
unit 1 {
98
-
Filter-Specific Counters and Policers
103
-
set protocols bgp group ext type external
106
-
user@R2# set autonomous-system 200
107
-
user@R2# show routing-options
109
-
3. From Device R1, telnet to Device R2.
111
-
Verify the following information:
113
-
Prefix-Specific Counting and Policing
115
-
Counter and Policer Set Size and Indexing
117
-
Filter-Specific Counter and Policer Set Overview
118
-
filter limit-source-one-24 {
123
-
then prefix-action psa-1Mbps-per-source-24-32-256;
128
-
• Multifield Classification Overview on page 115
133
-
user@host# show interfaces
138
-
Example: Configuring Multifield Classification
139
-
user@host# edit firewall policer ef-policer
142
-
policer af-policer {
144
-
Policer Overhead to Account for Rate
153
-
• Configuration on page 136
154
-
user@host# set vlan-tagging
156
-
forwarding-class best-effort scheduler be;
158
-
Displaying Statistics for the Policer
161
-
Configuring Three-Color Traffic Policers
163
-
Three-Color Policer Configuration
167
-
Color Modes for Three-Color Policers
168
-
Basic Single-Rate Three-Color Policers
171
-
Reference the filter as an input filter.
176
-
Input bytes : 0
177
-
Basic Two-Rate Three-Color Policers
179
-
Configuring a Two-Rate Three-Color Policer
182
-
Configuring Logical and Physical Interface
187
-
Two-Color and Three-Color Logical
189
-
user@host# edit interfaces ge-1/3/1 unit 0
194
-
• Configuration on page 179
196
-
Two-Color and Three-Color Physical
203
-
Configuring an IPv4 Physical Interface Filter
208
-
then policer shared-policer-A;
209
-
Configuration Statements and
213
-
• action on page 198
215
-
• policer (Configuring) on page 233
216
-
[edit dynamic-profiles profile-name firewall polic
217
-
[edit dynamic-profiles profile-name firewall poli
219
-
[edit dynamic-profiles profile-name firewall p
221
-
[edit dynamic-profiles profile-name firewall thr
226
-
[edit dynamic-profiles profile-name fi
228
-
List of Syntax
232
-
(bandwidth-limit bps | bandwidth-percent number);
234
-
[edit interfaces interface-na
235
-
[edit interfaces interface-name unit logical-un
237
-
load-balance-group group-name {
239
-
[edit dynamic-profiles profile-name firewall
240
-
loss-priority (Firewall Filter Action)
241
-
[edit interfaces interface-name unit logical-
244
-
• Policer Color-Marking and Actions on page 18
246
-
[edit dynamic-profiles profile-name firewa
249
-
policer (Applying to a Logical Interface)
250
-
The remaining statements are explained separately.
252
-
prefix-action prefix-action-name {
253
-
prefix-action (Firewall Filter Action)
254
-
(color-aware | color-blind);
255
-
(single-rate | two-rate) policer-name;
256
-
three-color-policer policer-name | uid {
257
-
• Basic Two-Rate Three-Color Policers on page 161
258
-
Firewall Filter and Policer Operational
259
-
Table 13: show firewall Output Fields
264
-
Table 13: show firewall Output Fields (continued)
265
-
show firewall (counter counter-name)
267
-
show firewall filter version
269
-
show firewall log
270
-
show firewall prefix-action-stats
273
-
Command introduced before Junos OS Release
275
-
Table 17: show policer Output Fields (continued)
276