[j-nsp] Juniper QoS (LLQ)

Matthew Tighe matthew.e.tighe at gmail.com
Fri Feb 4 12:22:24 EST 2011


Depending on your hardware you can have up to 16 forwarding classes. I wrote
a very basic 3 class example here (Network Control, Expedited Forwarding,
and BE) to get you started. Network Control is your control plane protocols.
There are a lot more options than what is here. I would recommend checking
out the CoS documentation (
http://www.juniper.net/techpubs/en_US/junos10.4/information-products/topic-collections/nce/qos-cos-overview/index.html)
but
the basic steps are:

1. Create your forwarding classes

[edit class-of-service]
set forwarding-class queue 0 BE
set forwarding-class queue 2 EF
set forwarding-class queue 3 NC

2. Create the schedulers for each class

[edit class-of-service schedulers]

set sched-BE transmit-rate percent <XX>
set sched-BE buffer-size percent <XX>
set sched-BE priority low

set sched-EF transmit-rate percent <XX>
set sched-EF buffer-size percent <XX>
set sched-EF priority high

set sched-NC transmit-rate percent 5
set sched-NC buffer-size percent 5
set sched-NC priority strict-high

(5 percent is the default for network control on JunOS 10)

3. Map the schedulers to each forwarding class:

[edit class-of-service scheduler-maps]

set sched-map-llq forwarding-class BE scheduler sched-BE
set sched-map-llq forwarding-class EF scheduler sched-EF
set sched-map-llq forwarding-class NC scheduler sched-NC

4. Apply scheduler map to the interface:

[edit class-of-service interfaces]

set <interface> scheduler-map sched-map-llq

---
In your case you would create additional forwarding classes for each of your
BE queues.

HTH,
Matt


On Mon, Jan 31, 2011 at 12:51 AM, Vlad Ion <vlad.thoth at gmail.com> wrote:

> Hi,
>
> Can anyone lend a hand with a sample configuration of QoS on Juniper? I am
> trying to have something really close to an existing Cisco deployment of
> LLQ
> with 1 PQ for VoIP and routing protocols (OSPF/IS-IS, BGP, LDP, RSVP), 3
> CBWFQ classes (OAM, Services, IPSec VPNs) and a default class with
> everything that was not included in the previous classes.
>
> Thanks in advance,
> Vlad
> _______________________________________________
> juniper-nsp mailing list juniper-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/juniper-nsp
>



-- 
Matthew Tighe
matthew.e.tighe at gmail.com


More information about the juniper-nsp mailing list