ON THIS PAGE
Example: Configuring the SPC High-Priority Queue
This example shows how to configure a forwarding class for the high-priority queue on the SPC.
Requirements
This example uses the following hardware and software components:
SRX5000 line firewall
Junos OS Release 11.4R2 or later
Overview
This example defines the following forwarding classes and assigns a queue number to each class:
Forwarding Class |
Queue Number |
---|---|
best-effort |
0 |
assured-forwarding |
1 |
network-control |
3 |
expedited-forwarding |
2 |
The expedited-forwarding class is configured for the high-priority queue on the SPC.
Configuration
Procedure
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,
copy and paste the commands into the CLI at the [edit]
hierarchy
level, and then enter commit
from the configuration mode.
set class-of-service forwarding-classes class best-effort queue-num 0 set class-of-service forwarding-classes class assured-forwarding queue-num 1 set class-of-service forwarding-classes class network-control queue-num 3 set class-of-service forwarding-classes class expedited-forwarding queue-num 2 spu-priority high
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 in the Junos OS CLI User Guide.
To configure the high-priority queue on the SPC:
Define forwarding classes and assign queue numbers.
[edit class-of-service forwarding-classes] user@host# set class best-effort queue-num 0 user@host# set class assured-forwarding queue-num 1 user@host# set class network-control queue-num 3 user@host# set class expedited-forwarding queue-num 2
Configure the SPC high-priority queue.
[edit class-of-service forwarding-classes] user@host# set class expedited-forwarding spu-priority high
Results
From configuration mode, confirm your configuration
by entering the show class-of-service forwarding-classes
command. If the output does not display the intended configuration,
repeat the configuration instructions in this example to correct it.
[edit] user@host# show class-of-service forwarding-classes class best-effort queue-num 0; class assured-forwarding queue-num 1; class network-control queue-num 3; class expedited-forwarding queue-num 2 spu-priority high;
If you are done configuring the device, enter commit
from configuration mode.
Verification
Verifying SPU High-Priority Queue Mapping
Purpose
Verify that the forwarding class is mapped to the SPU high-priority queue.
Action
From operational mode, enter the show class-of-service
forwarding-class
command.
user@host> show class-of-service forwarding-class
Forwarding class ID Queue Restricted queue Fabric priority Policing priority SPU priority best-effort 0 0 0 low normal low expedited-forwarding 1 1 1 low normal high assured-forwarding 2 2 2 low normal low network-control 3 3 3 low normal low