Example Traffic Class Configuration for Differentiated Services
The commands in this example illustrate a partial network configuration that supports
four differentiated service classes on a particular tunnel: a best-effort class, two assured
forwarding classes, and an expedited forwarding class. Table 59 on page 313 presents
the mapping between EXP bits, PHB, PHB ID, and traffic class/color combination.
Table 59: Differentiated Services Mapping
Traffic
Class/Color6-bit PHB IDPHB IDPHBEXP
best-effort/green000x0000BE000
af1/green100x2800AF11001
af1/yellow120x3000AF12010
af1/red140x3800AF13011
af2/green180x4800AF21100
af2/yellow200x5000AF22101
af2/red220x5800AF23110
ef/green460xb800EF111
NOTE: This example includes both MPLS and policy configuration commands, and
assumes that you are thoroughly familiar with the information and commands presented
in the JunosE Policy Management Configuration Guide.
The four traffic classes are configured to allocate fabric resources and allow global
synchronization of the three segments of the data path through an E Series router: ingress,
fabric, and egress. The JunosE Software automatically creates the best-effort traffic
class, with a default weight of eight. You must define the remaining three classes, af1,
af2, and ef. In this example, the af1 class has twice as much fabric bandwidth as the
best-effort class, and the af2 class has twice as much fabric bandwidth as the af1 class.
The expedited forwarding traffic (the ef class) requires strict-priority queuing.
host1(config)#traffic-class af1
host1(config-traffic-class)#fabric-weight 16
host1(config)#traffic-class af2
host1(config-traffic-class)#fabric-weight 32
host1(config)#traffic-class ef
host1(config-traffic-class)#fabric-strict-priority
Define two scheduler profiles for the af1 and af2 classes on the egress line modules:
host1(config)#scheduler-profile af1-scheduler-profile
313Copyright © 2010, Juniper Networks, Inc.
Chapter 4: Configuring MPLS