host1(config-scheduler-profile)#weight 16
host1(config)#scheduler-profile af2-scheduler-profile
host1(config-scheduler-profile)#weight 32
Create queue profiles to define how queues are instantiated to implement the
corresponding traffic classes and PHBs. The JunosE Software automatically creates the
best-effort queue profiles.
host1(config)#queue-profile af1-queues
[Queue configuration omitted]
host1(config)#queue-profile af2-queues
[Queue configuration omitted]
host1(config)#queue-profile ef-queues
[Queue configuration omitted]
The scheduler and queue profiles are referenced in QoS profiles. For example, you can
create a QoS profile for port-based per-class queuing or for LSP-level per-class queuing
(configuration omitted).
You must map the PHB IDs to the appropriate traffic class/color combinations:
host1(config)#mpls diff-serv phb-id standard 0 traffic-class best-effort color green
host1(config)#mpls diff-serv phb-id standard 10 traffic-class af1 color green
host1(config)#mpls diff-serv phb-id standard 12 traffic-class af1 color yellow
host1(config)#mpls diff-serv phb-id standard 14 traffic-class af1 color red
host1(config)#mpls diff-serv phb-id standard 18 traffic-class af2 color green
host1(config)#mpls diff-serv phb-id standard 20 traffic-class af2 color yellow
host1(config)#mpls diff-serv phb-id standard 22 traffic-class af2 color red
host1(config)#mpls diff-serv phb-id standard 46 traffic-class ef color green
Configuration on the Ingress Router
You must access the tunnel interface to map the PHB IDs to the EXP bits. The E Series
router signals this mapping to all routers on the tunnel. You can establish different
PHB-ID–to–EXP mappings for different tunnels.
host1(config)#interface tunnel mpls:example
PHB-ID–to–EXP mapping for the best-effort traffic class:
host1(config-if)#tunnel mpls diff-serv phb-id standard 0x0000 exp-bits 0
PHB-ID–to–EXP mapping for the af1 traffic class:
host1(config-if)#tunnel mpls diff-serv phb-id standard 10 exp-bits 1
host1(config-if)#tunnel mpls diff-serv phb-id standard 12 exp-bits 2
host1(config-if)#tunnel mpls diff-serv phb-id standard 14 exp-bits 3
PHB-ID–to–EXP mapping for the af2 traffic class:
host1(config-if)#tunnel mpls diff-serv phb-id standard 18 exp-bits 4
host1(config-if)#tunnel mpls diff-serv phb-id standard 20 exp-bits 5
host1(config-if)#tunnel mpls diff-serv phb-id standard 22 exp-bits 6
PHB-ID–to–EXP mapping for the ef traffic class:
host1(config-if)#tunnel mpls diff-serv phb-id standard 46 exp-bits 7
Copyright © 2010, Juniper Networks, Inc.314
JunosE 11.2.x BGP and MPLS Configuration Guide