[Contents] [Prev] [Next] [Index] [Report an Error]

Example: Configuring Strict-High Priority on J-series Platforms

Use a BA classifier to classify traffic based on the IP precedence of the packet. The classifier defines IP precedence value 101 as voice traffic and 000 as data traffic.

Configure two policers on the output interface that identify excess voice traffic belonging to the voice-class forwarding class. If the traffic exceeds 1 Mbps, a policer marks the traffic in excess of 1 Mbps as out-of-profile. If the traffic exceeds 2 Mbps, the second policer discards the traffic in excess of 2 Mbps.

Configure a BA Classifier

class-of-service {
classifiers {
inet-precedence corp-traffic {
forwarding-class voice-class {
loss-priority low code-points 101;
}
forwarding-class data-class {
loss-priority high code-points 000;
}
}
}

Configure the Forwarding Classes

forwarding-classes {
queue 0 voice-class;
queue 1 data-class;
}

Configure the Scheduler Map

scheduler-maps {
corp-map {
forwarding-class voice-class scheduler voice-sched;
forwarding-class data-class scheduler data-sched;
}
}

Configure the Schedulers

schedulers {
voice-sched {
priority strict-high;
}
data-sched {
priority low;
}
}

Apply the BA Classifier to an Input Interface

interfaces {
fe-0/0/0 {
unit 0 {
classifiers {
inet-precedence corp-traffic;
}
}
}

Apply the Scheduler Map to an Output Interface

e1-1/0/1 {
scheduler-map corp-map;
}
}
}

Configure Two Policers

firewall {
policer voice-excess {
if-exceeding {
bandwidth-limit 1m;
burst-size-limit 200k;
}
then out-of-profile;
}
policer voice-drop {
if-exceeding {
bandwidth-limit 2m;
burst-size-limit 200k;
}
then discard;
}
filter voice-term {
term 01 {
from {
forwarding-class voice-class;
}
then {
policer voice-drop;
next term;
}
}
term 02 {
from {
forwarding-class voice-class;
}
then policer voice-excess;
}
term 03 {
then accept;
}
}
}

Apply the Filter to the Output Interface

interfaces {
e1-1/0/1 {
unit 0 {
family inet {
filter {
output voice-term;
}
address 11.1.1.1/24;
}
}
}
}

[Contents] [Prev] [Next] [Index] [Report an Error]