You configure behavior aggregate classifiers to classify packets that contain valid DSCPs to appropriate queues. Once configured, you must apply the behavior aggregate classifier to the correct interfaces.
The following example shows how to configure the DSCP behavior aggregate classifier ba-classifier as the default DSCP map, and apply it to the device's Gigabit Ethernet interface ge-0/0/0. The behavior aggregate classifier assigns loss priorities, as shown in Table 199, to incoming packets in the four forwarding classes.
Table 199: Sample ba-classifier Loss Priority Assignments
To configure and apply behavior aggregate classifiers for the device:
Table 200: Configuring and Applying Behavior Aggregate Classifiers
|
Task |
J-Web Configuration Editor |
CLI Configuration Editor |
|---|---|---|
|
Navigate to the Class of service level in the configuration hierarchy. |
|
From the [edit] hierarchy level, enter edit class-of-service |
|
Configure behavior aggregate classifiers for DiffServ CoS. |
|
Enter edit classifiers dscp ba-classifier set import default |
|
Configure a best-effort forwarding class classifier. |
|
Enter set forwarding-class be-class loss-priority high code-points 000001 |
|
Configure an expedited forwarding class classifier. |
|
Enter set forwarding-class ef-class loss-priority high code-points 101111 |
|
Configure an assured forwarding class classifier. |
|
Enter set forwarding-class af-class loss-priority high code-points 001100 |
|
Configure a network control class classifier. |
|
Enter set forwarding-class nc-class loss-priority high code-points 110001 |
|
Apply the behavior aggregate classifier to an interface. (See the interface naming conventions in Network Interface Naming.) |
|
From the [edit class of service] hierarchy level, enter set interfaces ge-0/0/0 unit 0 classifiers dscp ba-classifier |
When you configure classes and define classifiers, you can refer to the markers by alias names. You can configure user-defined classifiers in terms of alias names. If the value of an alias changes, it alters the behavior of any classifier that references it.
To define a code-point alias on an SRX-series device, include the code-point-aliases statement at the [edit class-of-service] hierarchy level:
- [edit class-of-service]
- code-point-aliases {
- (dscp |exp | ieee-802.1 | inet-precedence) {
- alias-name bits;
- }
- }
The CoS marker types are as follows:
For example, you can set up the following configuration:
- [edit class-of-service]
- code-point-aliases {
-
- dscp {
-
- my1 110001;
- my2 101110;
-
- be 000001;
- cs7 110000;
- }
- }
The sample configuration produces this mapping:
user@host>show class-of-service code-point-aliases
dscp
Alias Bit pattern ef/my2 101110 af11 001010 af12 001100 af13 001110 af21 010010 af22 010100 af23 010110 af31 011010 af32 011100 af33 011110 af41 100010 af42 100100 af43 100110 be 000001 cs1 001000 cs2 010000 cs3 011000 cs4 100000 cs5 101000 nc1/cs6/cs7 110000 nc2 111000 my1 110001
The following notes explain certain results in the mapping: