Example: Enabling Eight Queues on Redundant Ethernet Interfaces
This example shows how to enable eight-queue CoS on redundant Ethernet interfaces on high-end SRX Series devices in chassis cluster.
Requirements
This example uses the following hardware and software components:
- Two SRX5600 Service Gateways in a chassis cluster
- Junos OS Release 11.4R4 or later for SRX Series Services Gateways
Before you begin:
- Understand chassis cluster configuration. See Example: Configuring an SRX Series Services Gateway for the High-End as a Chassis Cluster.
- Understand chassis cluster redundant interface configuration. See Example: Configuring Chassis Cluster Redundant Ethernet Interfaces.
Overview
The SRX Series high-end devices support eight queues, but only four queues are enabled by default. Use the set chassis fpc x pic y max-queues-per-interface 8 command to enable eight queues explicitly at the chassis level. The values of x and y depends on the location of the IOC and the PIC number where the interface is located on the device on which CoS needs to be implemented. To find the IOC location use the show chassis fpc pic-status or show chassis hardware commands.
You must restart the chassis control for the configuration to take effect.
The following high-end SRX Series devices are supported:
- SRX1400
- SRX3400
- SRX3600
- SRX5400
- SRX5600
- SRX5800
Figure 1 shows how to configure eight-queue CoS on redundant Ethernet interfaces on high-end SRX Series devices in chassis cluster.
Figure 1: Eight-queue CoS on redundant Ethernet interfaces

Configuration
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode.
To enable eight-queue CoS on redundant Ethernet interfaces:
- Configure a maximum of eight queues on the interfaces
on Node 0 and Node 1.[edit chassis]user@host# set fpc 5 pic 1 max-queues-per-interface 8
Note: In addition to configuring eight queues at the [edit chassis] hierarchy level, the configuration at the [edit class-of-service] hierarchy level must support eight queues per interface.
- Specify the number of redundant Ethernet interfaces.[edit chassis cluster]user@host# set reth-count 2
- Configure the control ports.[edit chassis cluster]user@host# set control-ports fpc 4 port 0user@host# set control-ports fpc 10 port 0
- Configure redundancy groups.[edit chassis cluster]user@host# set redundancy-group 0 node 0 priority 254user@host# set redundancy-group 0 node 1 priority 1user@host# set redundancy-group 1 node 0 priority 200user@host# set redundancy-group 1 node 1 priority 100
- Configure the redundant Ethernet interfaces.[edit interfaces]user@host# set ge-5/1/14 gigether-options redundant-parent reth0user@host# set ge-11/1/14 gigether-options redundant-parent reth0user@host# set ge-5/1/15 gigether-options redundant-parent reth1user@host# set ge-11/1/15 gigether-options redundant-parent reth1user@host# set reth0 redundant-ether-options redundancy-group 1user@host# set reth0 vlan-tagginguser@host# set reth0 unit 0 vlan-id 1350user@host# set reth0 unit 0 family inet address 141.141.141.1/24user@host# set reth1 hierarchical-scheduleruser@host# set reth1 vlan-tagginguser@host# set reth1 redundant-ether-options redundancy-group 2user@host# set reth1 unit 0 vlan-id 1351user@host# set reth1 unit 0 family inet address 142.142.142.1/24user@host# set reth1 unit 1 vlan-id 1352user@host# set reth1 unit 1 family inet address 142.142.143.1/24user@host# set reth1 unit 2 vlan-id 1353user@host# set reth1 unit 2 family inet address 142.142.144.1/24user@host# set reth1 unit 3 vlan-id 1354user@host# set reth1 unit 3 family inet address 142.142.145.1/24
- Define a classifier and apply it to a logical interface.[edit class-of-service]user@host# set classifiers inet-precedence inet_prec_4 forwarding-class q0 loss-priority low code-points 000user@host# set classifiers inet-precedence inet_prec_4 forwarding-class q2 loss-priority low code-points 010user@host# set classifiers inet-precedence inet_prec_4 forwarding-class q3 loss-priority low code-points 011user@host# set classifiers inet-precedence inet_prec_4 forwarding-class q1 loss-priority low code-points 001user@host# set classifiers inet-precedence inet_prec_4 forwarding-class q4 loss-priority low code-points 100user@host# set classifiers inet-precedence inet_prec_4 forwarding-class q5 loss-priority low code-points 101user@host# set classifiers inet-precedence inet_prec_4 forwarding-class q6 loss-priority low code-points 110user@host# set classifiers inet-precedence inet_prec_4 forwarding-class q7 loss-priority low code-points 111
- Map forwarding classes to CoS queues.[edit class-of-service]user@host# set forwarding-classes queue 0 q0user@host# set forwarding-classes queue 1 q1user@host# set forwarding-classes queue 2 q2user@host# set forwarding-classes queue 3 q3user@host# set forwarding-classes queue 4 q4user@host# set forwarding-classes queue 5 q5user@host# set forwarding-classes queue 6 q6user@host# set forwarding-classes queue 7 q7
- Configure traffic control profiles.[edit class-of-service]user@host# set traffic-control-profiles 1 scheduler-map sched_mapuser@host# set traffic-control-profiles 1 shaping-rate 200m
- Define packet flow through the CoS elements.[edit class-of-service]user@host# set interfaces reth0 unit 0 classifiers inet-precedence inet_prec_4
- Apply a traffic scheduling profile to the interface.[edit class-of-service]user@host# set interfaces reth1 unit 0 output-traffic-control-profile 1
- Configure the CoS schedulers.[edit class-of-service]user@host# set scheduler-maps sched_map forwarding-class q0 scheduler S0user@host# set scheduler-maps sched_map forwarding-class q1 scheduler S1user@host# set scheduler-maps sched_map forwarding-class q2 scheduler S2user@host# set scheduler-maps sched_map forwarding-class q3 scheduler S3user@host# set scheduler-maps sched_map forwarding-class q4 scheduler S4user@host# set scheduler-maps sched_map forwarding-class q5 scheduler S5user@host# set scheduler-maps sched_map forwarding-class q6 scheduler S6user@host# set scheduler-maps sched_map forwarding-class q7 scheduler S7user@host# set schedulers S0 transmit-rate percent 20user@host# set schedulers S1 transmit-rate percent 5user@host# set schedulers S2 transmit-rate percent 5user@host# set schedulers S3 transmit-rate percent 10user@host# set schedulers S4 transmit-rate percent 10user@host# set schedulers S5 transmit-rate percent 10user@host# set schedulers S6 transmit-rate percent 10user@host# set schedulers S7 transmit-rate percent 30
Results
From configuration mode, confirm your configuration by entering the show class-of-service command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.
For brevity, this show command output includes only the configuration that is relevant to this example. Any other configuration on the system has been replaced with ellipses (...).
If you are done configuring the device, enter commit from configuration mode.
To restart chassis control, enter restart chassis-control command from operational mode.
![]() | Note: When you execute the restart chassis-control command all the FRU cards on the box are reset, thus impacting traffic. Changing the number of queues should be executed during a scheduled downtime. It takes 5-10 minutes for the cards to come online after the restart chassis-control command is executed. |
Verification
Confirm that the configuration is working properly.
Verifying the Eight Queue COS Configuration
Purpose
Verify that eight-queue CoS is enabled properly.
Action
From the operational mode, enter the following commands:
- show interfaces ge-5/1/14 extensive
- show interfaces queue ge-5/1/14
- show class-of-service forwarding-class
- show class-of-service interface ge-5/1/14