set firewall policer mypolicer if-exceeding burst-size-limit 33553920
set firewall policer mypolicer then discard
set firewall family any filter myfilter term t1 then policer mypolicer
set protocols mpls label-switched-path lsp_to_pe2_ge1 to 127.1.1.3 policing filter myfilter
Step-by-Step
Procedure
To configure a custom DSCP classifier, custom EXP rewrite rule, and a policer on the
ingress PE switch:
1.
Import the default DSCP classifier classes to the custom DSCP classifier that you
are creating:
[edit class-of-service]
user@switch#
set classifiers dscp dscp1
import
default
2.
Add the expedited-forwarding class to this custom DSCP classifier, specifying a
loss priority and code point:
[edit class-of-service]
user@switch#
set classifiers dscp dscp1 forwarding-class expedited-forwarding
loss-priority low code-points 000111
3.
Specify the values for the custom EXP rewrite rule,
e1
:
[edit class-of-service]
user@switch#
set rewrite-rules exp e1 forwarding-class expedited-forwarding
loss-priority low code-point 111
4.
Bind the DSCP classifier to the CCC interface:
[edit ]
user@switch#
set class-of-service interfaces ge-0/0/1 unit 0 classifier dscp1
5.
Specify the number of bits per second permitted, on average, for the firewall policer,
which will later be applied to the LSP:
[edit firewall]
set
policer
mypolicer
if-exceeding bandwidth-limit
500m
6.
Specify the maximum size permitted for bursts of data that exceed the given
bandwidth limit for this policer:
[edit firewall policer]
set mypolicer if-exceeding
burst-size-limit
33553920
7.
Discard traffic that exceeds the rate limits for this policer:
[edit firewall policer]
set mypolicer
then
discard
8.
To reference the policer, configure a filter term that includes the policer action:
[edit firewall]
user@switch#
set
family
any
filter
myfilter
term
t1 then policer mypolicer
9.
Apply the filter to the LSP:
[edit protocols mpls]
set label-switched-path lsp_to_pe2_ge1 policing filter myfilter
Results
Display the results of the configuration:
[edit]
3383
Copyright © 2010, Juniper Networks, Inc.
Chapter 122: Example of MPLS Configuration
Summary of Contents for JUNOS OS 10.3 - SOFTWARE
Page 325: ...CHAPTER 17 Operational Mode Commands for System Setup 229 Copyright 2010 Juniper Networks Inc ...
Page 1323: ...CHAPTER 56 Operational Mode Commands for Interfaces 1227 Copyright 2010 Juniper Networks Inc ...
Page 2841: ...CHAPTER 86 Operational Commands for 802 1X 2745 Copyright 2010 Juniper Networks Inc ...
Page 3367: ...CHAPTER 113 Operational Mode Commands for CoS 3271 Copyright 2010 Juniper Networks Inc ...
Page 3435: ...CHAPTER 120 Operational Mode Commands for PoE 3339 Copyright 2010 Juniper Networks Inc ...
Page 3529: ...CHAPTER 126 Operational Mode Commands for MPLS 3433 Copyright 2010 Juniper Networks Inc ...