[Contents] [Prev] [Next] [Index] [Report an Error]


CoS Configuration Guidelines

To configure CoS properties, you can include the following statements at the [edit class-of-service] hierarchy level of the configuration:

class-of-service {
    classifiers {
        type classifier-name {
            import (classifier-name | default);
            forwarding-class class-name {
                loss-priority (low | high) code-points [ alias | bits ];
            }
        }
    }
    code-point-aliases {
        (dscp | exp | ieee-802.1 | inet-precedence) {
            alias-name bits;
        }
    }
    drop-profiles {
        profile-name {
            fill-level percentage drop-probability percentage;
            interpolate {
                drop-probability value;
                fill-level value;
            }
        }
    }
    fabric {
        scheduler-map {

            priority (low | high) scheduler scheduler-name;
        }
    }
    forwarding-classes {
        queue queue-number class-name priority (low | high);
    }
    forwarding-policy {
        next-hop-map map-name {
            forwarding-class class-name {
                next-hop [ next-hop-name ];
                lsp-next-hop [ lsp-regular-expression ];
            }
        }
        class class-name {
            classification-override {
                forwarding-class class-name;
            }
        }
    }
    interfaces 
        interface-name {
            scheduler-map map-name;
            unit logical-unit-number {
                classifiers {
                    (dscp | exp | ieee-802.1 | inet-precedence) (classifier-name | default);
                }
                forwarding-class class-name;
                rewrite-rules {
                    dscp (rewrite-name | default);
                    exp (rewrite-name | default) protocol protocol-types;
                    ieee-802.1 default;
                    inet-precedence (rewrite-name | default);
                }
            }
        }
    }
    rewrite-rules {
        (dscp | exp | inet-precedence) rewrite-name {
            import (rewrite-name | default);
            forwarding-class class-name {
                loss-priority (low | high) code-point (alias | bits);
            }
        }
    }
    scheduler-maps {
        map-name {
            forwarding-class class-name scheduler scheduler-name;
        }
    }
    schedulers {
        scheduler-name {
            buffer-size (percent percentage | remainder | temporal microseconds);
            drop-profile-map loss-priority (low | high) protocol (non-tcp | tcp | any) 

                    drop-profile profile-name;
            priority (low | high | strict-high);
            transmit-rate (rate | percent percentage | remainder | exact);
        }
    }
}

The following RFCs define the standards supported by certain aspects of the CoS software:

RFC 2983, Diffserv and Tunnels, is not supported.

The JUNOS software supports only two loss priorities and, by default, supports only one assured forwarding (AF) class, although you can configure more at the expense of other class types.

This chapter includes the following sections:


[Contents] [Prev] [Next] [Index] [Report an Error]