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

Configuring Class of Service

Class of service (CoS) can be used to classify DLSw packets, which are sent to a logical tunnel interface that loops the packets into the Packet Forwarding Engine. The Packet Forwarding Engine classifies and queues the packets based on the configured type-of-service (ToS) value.

To configure CoS for DLSw, include the dlsw-cos statement at the [edit protocols dlsw] hierarchy level:

dlsw-cos {
destination-interface interface-name;
type-of-service number;
}

To enable traffic through a specified destination interface, specify the destination-interface statement. To configure the ToS value, specify the type-of-service statement.

To configure the Differentiated Services code point (DSCP) for DLSw, include the dscp statement at the [edit class-of-service interfaces interface-name unit unit-number classifiers] hierarchy level:

dscp {
default;
}

For information on configuring class-of-service properties, see the JUNOS Class of Service Configuration Guide.

Example: Configuring CoS for a DLSw Connection

Configure the lt-0/0/0 interface:

[edit]
interfaces lt-0/0/0 {
unit 0 {
encapsulation frame-relay;
dlci 100;
peer-unit 1;
family inet;
}
unit 1 {
encapsulation frame-relay;
dlci 100;
peer-unit 0;
family inet;
}
}

Enable the DLSw protocol:

[edit protocols]
dlsw {
local-peer 1.1.1.1;
remote-peer 1.1.1.2;
dlsw-cos {
type-of-service 192;
destination-interface lt-0/0/0.0;
}
}

Configure the CoS parameters on the lt-0/0/0 interface:

[edit class-of-service]
classifiers {
inet-precedence ipPREC {
forwarding-class best-effort {
loss-priority low code-points 000;
loss-priority high code-points 001;
}
forwarding-class expedited-forwarding {
loss-priority low code-points 010;
loss-priority high code-points 011;
}
forwarding-class assured-forwarding {
loss-priority low code-points 100;
loss-priority high code-points 101;
}
forwarding-class network-control {
loss-priority low code-points 110;
loss-priority high code-points 111;
}
}
}
interfaces {
lt-0/0/0 {
unit 1 {
classifiers {
dscp default;
}
}
}
}

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