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

Assigning Forwarding Classes to Output Queues

You must assign the forwarding classes established by the mf-classifier multifield classifier to output queues. This example assigns output queues as shown in Table 195.

Table 195: Sample Output Queue Assignments for mf-classifier Forwarding Queues

mf-classifier Forwarding Class

For Traffic Type

Output Queue

be-class

Best-effort traffic

Queue 0

ef-class

Expedited forwarding traffic

Queue 1

af-class

Assured forwarding traffic

Queue 2

nc-class

Network control traffic

Queue 3

For multifield classifier details, see Configuring and Applying a Firewall Filter for a Multifield Classifier.

To assign forwarding classes to output queues:

  1. Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.
  2. Perform the configuration tasks described in Table 196.
  3. Go on to Configuring and Applying Rewrite Rules.

Table 196: Assigning Forwarding Classes to Output Queues

Task

J-Web Configuration Editor

CLI Configuration Editor

Navigate to the Class of service level in the configuration hierarchy.

  1. In the J-Web interface, select Configuration>View and Edit>Edit Configuration.
  2. Next to Class of service, click Configure or Edit.

From the [edit] hierarchy level, enter

edit class-of-service

Assign best-effort traffic to queue 0.

  1. Click Configure next to Forwarding classes.
  2. Click Add new entry next to Queue.
  3. In the Queue num box, type 0.
  4. In the Class name box, type the previously configured name of the best-effort class—be-class.
  5. Click OK.

Enter

set forwarding-classes queue 0 be-class

Assign expedited forwarding traffic to queue 1.

  1. Click Add new entry next to Queue.
  2. In the Queue num box, type 1.
  3. In the Class name box, type the previously configured name of the expedited forwarding class—ef-class.
  4. Click OK.

Enter

set forwarding-classes queue 1 ef-class

Assign assured forwarding traffic to queue 2.

  1. Click Add new entry next to Queue.
  2. In the Queue num box, type 2.
  3. In the Class name box, type the previously configured name of the assured forwarding class—af-class.
  4. Click OK.

Enter

set forwarding-classes queue 2 af-class

Assign network control traffic to queue 3.

  1. Click Add new entry next to Queue.
  2. In the Queue num box, type 3.
  3. In the Class name box, type the previously configured name of the network control forwarding class—nc-class.
  4. Click OK.

Enter

set forwarding-classes queue 3 nc-class

Configuring Forwarding Classes

To configure CoS forwarding classes on an SRX-series device, include the following statements at the [edit class-of-service] hierarchy level of the configuration:

[edit class-of-service]
forwarding-classes {
class class-name queue-num queue-number priority (high | low);
queue queue-number class-name priority (high | low);
}
interfaces {
interface-name {
unit logical-unit-number {
forwarding-class class-name;
}
}
}
restricted-queues {
forwarding-class class-name queue-number;
}

You cannot commit a configuration that assigns the same forwarding class to two different queues.

Assigning a Forwarding Class to an Interface

On an SRX-series device, you can configure fixed classification on a logical interface by specifying a forwarding class to be applied to all packets received by the logical interface, regardless of the packet contents.

To assign a forwarding class configuration to the input logical interface, include the forwarding-class statement at the [edit class-of-service interfaces interface-name unit logical-unit-number] hierarchy level:

[edit class-of-service interfaces interface-name unit logical-unit-number]
forwarding-class class-name;

You can include interface wildcards for interface-name and logical-unit-number.

In the following example, all packets coming into the device from the ge-3/0/0.0 interface are assigned to the assured-forwarding forwarding class:

[edit class-of-service]
interfaces {
ge-3/0/0 {
unit 0 {
forwarding-class assured-forwarding;
}
}
}

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