On ATM2 IQ interfaces, you can configure ATM CoS scheduling for AAL5 mode and Layer 2 circuit trunk mode. For general information about ATM CoS, see Configuring ATM2 IQ VC Tunnel CoS Components.
When you configure CoS scheduling in Layer 2 circuit trunk mode, the trunk is defined on the logical interface, and four CoS queues are opened in the trunk. For each CoS queue, you specify a priority and a transmit weight. CoS queues are serviced using a weighted round robin (WRR) algorithm. One queue is serviced with strictly high priority and the remaining queues are serviced with the WRR.
For Layer 2 circuit trunk mode, only strict mode is supported. Alternate mode is not supported.
To configure CoS queues in Layer 2 circuit trunk mode, perform the following tasks:
- [edit interfaces at-fpc/pic/port]
-
encapsulation atm-ccc-cell-relay;
- [edit interfaces at-fpc/pic/port atm-options]
-
scheduler-maps map-name {
-
forwarding-class (class-name | assured-forwarding | best-effort | expedited-forwarding |
network-control);
-
vc-cos-mode strict;
- }
- [edit interfaces at-fpc/pic/port unit logical-unit-number]
-
atm-scheduler-map (map-name | default);
-
trunk-bandwidth rate;
-
trunk-id number;
For information about ATM scheduler maps, see Configuring an ATM Scheduler Map.
For information about trunk identification numbers, see Configuring Layer 2 Circuit Transport Mode. For information about trunk bandwidths, see Configuring Layer 2 Circuit Trunk Mode Scheduling.
Strict mode CoS queue priority works as follows:
Within a single trunk, the maximum latency of a high priority queue is the time it takes to transmit one ATM cell. The latency of a low priority queue is the sum of high priority queue burst time and the transmission time of the remaining low priority queues’ weight.
Within a single trunk, the high priority queue consumes the bandwidth first regardless of its weight. The remaining bandwidth is distributed to the low priority queues in proportion to their weights.
Consider the following example:
In this scenario, queues 1, 2 and 3 receive 2/9, 3/9, and 4/9 of the bandwidth, respectively.
![]() |
Note: Constant bit rate (CBR) traffic always enters the strictly high priority queue. |
For more information about strict and alternate modes, see Configuring VC CoS Mode.
For general information about Layer 2 circuit trunk mode, see Configuring Layer 2 Circuit Transport Mode.
For interfaces configured in trunk mode, you can also configure dual EPD thresholds depending on packet loss priorities (PLPs). For more information, see Configuring Two EPD Thresholds per Queue.
Configure a scheduler map and trunk bandwidth:
- [edit interfaces]
- at-6/1/0 {
- encapsulation atm-ccc-cell-relay;
-
- atm-options {
- pic-type atm2;
-
- scheduler-maps {
-
- cos0 {
- vc-cos-mode strict;
-
- forwarding-class cbr-class {
- priority high;
- transmit-weight percent 10;
- }
-
- forwarding-class rtvbr-class {
- priority low;
- transmit-weight percent 20;
- }
-
- forwarding-class nrtvbr-class {
- priority low;
- transmit-weight percent 30;
- }
-
- forwarding-class ubr-class {
- priority low;
- transmit-weight percent 40;
- }
- }
- }
- }
-
- unit 0 {
- trunk-id 0;
- trunk-bandwidth 10m;
- atm-scheduler-map cos0;
- }
- }