Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Configuring CoS on ACX Series Universal Access Routers

Physical interface-based classifiers are supported at the [edit class-of-service interfaces interfaces-name] hierarchy level. EXP bits are located in each MPLS label and used to encode the CoS value of a packet as it traverses an LSP. To configure global EXP bits, include the exp statement at the [edit class-of-service system-defaults classifiers] hierarchy level.

To configure CoS on ACX Series routers:

  1. Configure the class of service.
    [edit]user@host# edit class-of-service
  2. Configure the rewrite rules.
    [edit class-of-service]user@host# edit rewrite-rules (dscp | inet-precedence) rewrite-nameuser@host# edit forwarding-class class-nameuser@host# set loss-priority low class-name code-points (alias | bits)
  3. Configure behavior aggregate classifiers for DiffServ CoS.
    [edit class-of-service]user@host# edit classifiers (dscp | inet-precedence) classifier-nameuser@host# edit forwarding-classes class-nameuser@host# set loss-priority class-name code-points (alias | bits)
  4. Configure expedited forwarding class classifiers.
    [edit class-of-service classifiers]user@host# edit forwarding-classes class-nameuser@host# set loss-priority class-name code-points (alias | bits)
  5. Define the forwarding-class mappings.
    [edit class-of-service]user@host# edit forwarding-classes class queue-number queue-number
  6. Configure network control forwarding class classifiers.
    [edit class-of-service] user@host# edit forwarding-class class-nameuser@host# set loss-priority low class-name code-points (alias | bits)
  7. Apply the rewrite rules and classifiers to the interfaces.
    [edit class-of-service interface interface-name unit unit-number] user@host# set rewrite-rule (dscp | inet-precedence ) (rewrite-name| default)user@host# set classifiers (dscp | inet-precedence ) classifier-name | default)
  8. Set the global system default.
    [edit ] user@host# edit class-of-service system-defaults classifiers exp classifier-name

Following is a complete configuration. This example configures ge-1/0/2 as a network-to-network (NNI) and ge-1/0/1 as a user-to-network (UNI) interface on the ACX Series router F1, and ge-1/0/3 as an NNI and ge-1/0/4 as a UNI on F2. In addition, the configuration includes the following:

  • Fixed classification of customer traffic on UNI ports.
  • Diffserv code point (DSCP)-based BA classification and rewrites on NNI ports for IP control traffic at port level.
  • EXP-based global behavior aggregate (BA) classification and rewrites on NNI ports for customer traffic from F1 to F2 by using pseudowire.

Common CoS configuration at F1 and F2:

[edit]class-of-service {classifiers {dscp dscp-classf-core {forwarding-class be {loss-priority low code-points 011101;}forwarding-class be1 {loss-priority high code-points 010101;}forwarding-class ef {loss-priority low code-points 001101;}forwarding-class ef2 {loss-priority high code-points 000101;}forwarding-class af {loss-priority low code-points 011001;}forwarding-class af1 {loss-priority high code-points 010001;}forwarding-class nc {loss-priority low code-points 001001;}forwarding-class nc3 {loss-priority high code-points 000001;}}exp exp-rewrite-core {forwarding-class be {loss-priority low code-point 111;}forwarding-class be1 {loss-priority high code-point 110;}forwarding-class ef {loss-priority low code-point 101;}forwarding-class ef2 {loss-priority high code-point 100;}forwarding-class af {loss-priority low code-point 011;}forwarding-class af1 {loss-priority high code-point 010;}forwarding-class nc {loss-priority low code-point 001;}forwarding-class nc3 {loss-priority high code-point 000;}}}forwarding-classes {class be queue-num 0;class ef queue-num 1;class af queue-num 2;class nc queue-num 3;class be1 queue-num 4;class ef1 queue-num 5;class af1 queue-num 6;class nc1 queue-num 7;class be2 queue-num 0;class ef2 queue-num 1;class af2 queue-num 2;class nc2 queue-num 3;class be3 queue-num 4;class ef3 queue-num 5;class af3 queue-num 6;class nc3 queue-num 7;}rewrite-rules {dscp dscp-rewrite-core {forwarding-class be {loss-priority low code-point 100000;}forwarding-class be1 {loss-priority high code-point 100001;}forwarding-class ef {loss-priority low code-point 100010;}forwarding-class ef2 {loss-priority high code-point 100011;}forwarding-class af {loss-priority low code-point 100100;}forwarding-class af1 {loss-priority high code-point 100101;}forwarding-class nc {loss-priority low code-point 100110;}forwarding-class nc3 {loss-priority high code-point 100111;}exp exp-rewrite-core {forwarding-class be {loss-priority low code-point 111;}forwarding-class be1 {loss-priority high code-point 110;}forwarding-class ef {loss-priority low code-point 101;}forwarding-class ef2 {loss-priority high code-point 100;}forwarding-class af {loss-priority low code-point 011;}forwarding-class af1 {loss-priority high code-point 010;}forwarding-class nc {loss-priority low code-point 001;}forwarding-class nc3 {loss-priority high code-point 000;}}}

CoS configuration at F1:

class-of-service {interfaces {ge-1/0/1 {unit 0 {forwarding-class be;}}ge-1/0/2 {classifiers {dscp dscp-classf-core;}rewrite-rules {dscp dscp-rewrite-core;}unit 0 {rewrite-rules {exp exp-rewrite-core;}}}}system-defaults {classifiers {exp exp-classf-core;}}}

CoS configuration at F2:

class-of-service {interfaces {ge-1/0/4 {unit 0 {forwarding-class be;}}ge-1/0/3 {classifiers {dscp dscp-classf-core;}rewrite-rules {dscp dscp-rewrite-core;}unit 0 {rewrite-rules {exp exp-rewrite-core;}}}}system-defaults {classifiers {exp exp-classf-core;}}}

Published: 2013-01-11