Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring CoS on SRX5000 Devices with an MPC

This example shows how to configure CoS on an SRX5000 line device with an MPC.

Requirements

This example uses the following hardware and software components:

  • SRX5600 with an SRX5K-MPC

  • Junos OS Release 12.1X46-D10 or later for SRX Series

Before you begin:

No special configuration beyond device initialization is required before configuring this feature.

Overview

In this example, you create a behavior aggregate (BA) classifier to classify traffic based on the IEEE 802.1p value of the packet and assign forwarding-class priority queue to the traffic. You then configure the scheduler map and set the priority for the traffic.

By default, the SRX5K-MPC supports eight queues. In this example, you are configuring eight queues.

You apply the BA classifier to the input interface and apply the scheduler map to the output interface.

Table 1 and Table 2 show forwarding class details with priority, assigned queue numbers, and allocated queue buffers used in this example.

Table 1: Forwarding Class Samples

Forwarding Class

Queue Number

BE

0

SIG

1

AF

2

Bronze-class

3

Silver-class

4

Gold-class

5

Control

6

VOIP

7

Table 2: Scheduler Samples

Scheduler

For CoS Traffic Type

Assigned Priority

Allocated Portion of Queue Buffer (Transmit Rate)

s-be

0

low

15

s-sig

1

low

15

s-af

2

medium-low

20

s-bronze

3

medium-low

20

s-silver

4

medium-high

10

s-gold

5

medium-high

10

s-nc

6

high

5

s-voip

7

high

5

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 configuration mode.

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 forwarding classes:

  1. Configure a classifier.

  2. Assign best-effort traffic to queue.

  3. Define mapping of forwarding classes to packet schedulers.

  4. Configure the CoS rewrite rules to map the forwarding class to the desired value for the 802.1p field.

  5. Configure eight packet schedulers with scheduling priority and transmission rates.

  6. Apply the classifier and rewrite rules to interfaces.

  7. Apply the scheduler-map “test” to an interface.

  8. Apply the shaping rates to control the maximum rate of traffic transmitted on an interface.

Results

From configuration mode, confirm your configuration by entering the show xxx command. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the device, enter commit from configuration mode.

Verification

Confirm that the configuration is working properly.

Verifying Class-of-Service Configuration

Purpose

Verify that CoS is configured.

Action

From operational mode, enter the show class-of-service classifier command.

Verifying the Number of Dedicated Queues Configured on MPC Interfaces

Purpose

Display the number of dedicated queue resources that are configured for the interfaces on a port.

Action

From operational mode, enter the show class-of-service interface command.