DSCP Classifier Configuration Examples
On MX960, MX480, MX240, MX80, M120, and M320 routers with Enhanced
Type III FPCs only, you can configure user-defined DSCP-based BA classification
for MPLS interfaces (this feature is not available for IQE PICs or
on MX Series routers when ingress queuing is used) or VPLS/L3VPN routing
instances (LSI interfaces).The following examples show how you can
apply DSCP classifiers for MPLS traffic in these cases.
Applying a DSCP Classifier to MPLS Packets on the Core-facing
Interface
Configure the core-facing interface and associated logical
interfaces:
interfaces ge-5/3/1 {unit 0 {family inet {address 1.1.1.1/24;}family iso;family inet6 {address 2000::1/64;}family mpls}
Configure the DSCP classifier.
class-of-service {classifiers {dscp dscp11 {forwarding-class expedited-forwarding {loss-priority low code-points [ ef cs5 ];}forwarding-class assured-forwarding {loss-priority low code-points [ af21 af31 af41 cs4 ];loss-priority high code-points [ af23 af33 af43 cs2 af22
af32 af42 cs3 ];}forwarding-class best-effort {loss-priority low code-points [ af11 cs1 af12 ];loss-priority high code-points af13;}forwarding-class network-control {loss-priority low code-points [ cs6 cs7 ];}}}}
Attach the classifier to the logical interface for the mpls
family. You cannot configure more than one classifier per family.
class-of-service {interfaces {ge-5/3/1 {unit 0 {classifiers {dscp dscp11 {family mpls;}}}}}}
The above classifiers are applicable on egress PE routers for
VPLS and L3VPN cases. For plain interfaces (not VPLS/L3VPN (LSI) interfaces),
these classifiers are applicable on P and egress PE routers on core
facing interfaces.
Applying a DSCP Classifier to MPLS Traffic for L3VPN/VPLS
Configure routing instances of type either vrf or vpls.
routing-instances {vpls1 {instance-type vpls;interface ge-2/2/2.0; #customer facing interface for VPLSroute-distinguisher 10.255.245.51:1;vrf-target target:1234:1;protocols {vpls {site-range 10;no-tunnel-services;site vpls-1-site-1 {site-identifier 1;}}}}}
Configure the DSCP classifier.
class-of-service {classifiers {dscp dscp11 {forwarding-class expedited-forwarding {loss-priority low code-points [ ef cs5 ];}forwarding-class assured-forwarding {loss-priority low code-points [ af21 af31 af41 cs4 ];loss-priority high code-points [ af23 af33 af43 cs2 af22
af32 af42 cs3 ];}forwarding-class best-effort {loss-priority low code-points [ af11 cs1 af12 ];loss-priority high code-points af13;}forwarding-class network-control {loss-priority low code-points [ cs6 cs7 ];}}}}
Attach the classifier to a routing instance. You cannot configure
more than one classifier per routing instance.
class-of-service {routing-instances {vpls1 {classifiers {dscp dscp11;}}}}
Published: 2013-02-11