Juniper EX9200 Features Manual page 155

Traffic policers feature guide ex series
Hide thumbs Also See for EX9200:
Table of Contents

Advertisement

CLI Quick
Configuration
Step-by-Step
Procedure
Copyright © 2016, Juniper Networks, Inc.
Chapter 12: Policer Overhead to Account for Rate Shaping in the Traffic Manager
To configure this example, perform the following tasks:
Configuring the Logical Interfaces on page 137
Configuring Traffic Rate-Shaping on the Logical Interface That Carries Output
Traffic on page 138
Configuring Policer Overhead on the PIC or DPC That Hosts the Rate-Shaped Logical
Interface on page 140
Applying a Policer to the Logical Interface That Carries Input Traffic on page 141
To quickly configure this example, copy the following configuration commands into a
text file, remove any line breaks, and then paste the commands into the CLI at the
hierarchy level.
set interfaces ge-1/3/1 per-unit-scheduler
set interfaces ge-1/3/1 vlan-tagging
set interfaces ge-1/3/1 unit 0 vlan-id 100
set interfaces ge-1/3/1 unit 0 family inet address 10.10.10.1/30
set interfaces ge-1/3/1 unit 1 vlan-id 101
set interfaces ge-1/3/1 unit 1 family inet address 20.20.20.1/30 arp 20.20.20.2 mac
00:00:11:22:33:44
set class-of-service schedulers be transmit-rate percent 5
set class-of-service schedulers ef transmit-rate percent 30
set class-of-service schedulers af transmit-rate percent 30
set class-of-service schedulers nc transmit-rate percent 35
set class-of-service scheduler-maps my-map forwarding-class best-effort scheduler be
set class-of-service scheduler-maps my-map forwarding-class expedited-forwarding
scheduler ef
set class-of-service scheduler-maps my-map forwarding-class network-control scheduler
nc
set class-of-service scheduler-maps my-map forwarding-class assured-forwarding
scheduler af
set class-of-service interfaces ge-1/3/1 unit 1 scheduler-map my-map
set class-of-service interfaces ge-1/3/1 unit 1 shaping-rate 100m
set firewall policer 500Kbps logical-interface-policer
set firewall policer 500Kbps if-exceeding bandwidth-limit 500k
set firewall policer 500Kbps if-exceeding burst-size-limit 625k
set firewall policer 500Kbps then discard
set chassis fpc 1 pic 3 ingress-policer-overhead 100
set chassis fpc 1 pic 3 egress-policer-overhead 100
set interfaces ge-1/3/1 unit 0 family inet policer input 500Kbps
Configuring the Logical Interfaces
To configure the logical interfaces:
Enable configuration of the interface
1.
[edit]
user@host# edit interfaces ge-1/3/1
Enable multiple queues for each logical interface (so that you can associate an
2.
output scheduler with each logical interface).
[edit interfaces ge-1/3/1]
user@host# set per-unit scheduler
[edit]
137

Advertisement

Table of Contents
loading

Table of Contents