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

How CoS Components Work

This section contains the following topics:

CoS Values and Aliases

Behavior aggregate classifiers use CoS values such as DiffServ code points (DSCPs), DSCP IPv6, IP precedence, IEEE 802.1 and MPLS experimental (EXP) bits to associate incoming packets with a particular CoS servicing level. On a Services Router, you can assign a meaningful name or alias to the CoS values and use this alias instead of bits when configuring CoS components. These aliases are not part of the specifications but are well-known through usage. For example, the alias for DSCP 101110 is widely accepted as ef (expedited forwarding). For information about defining CoS value aliases, see Configuring Class of Service.

Table 103 shows the CoS values and the associated well-known aliases.

Table 103: Well-Known CoS Aliases and CoS Values

CoS Value Type

Alias

CoS Value

DSCP and DSCP IPv6

ef

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

000000

cs1

001000

cs2

010000

cs3

011000

cs4

100000

cs5

101000

nc1/cs6

110000

nc2/cs7

111000

MPLS EXP

be

000

be1

001

ef

010

ef1

011

af11

100

af12

101

nc1/cs6

110

nc2/cs7

111

IEEE 802.1

be

000

be1

001

ef

010

ef1

011

af11

100

af12

101

nc1/cs6

110

nc2/cs7

111

IP precedence

be

000

be1

001

ef

010

ef1

011

af11

100

af12

101

nc1/cs6

110

nc2/cs7

111

Default Forwarding Class Queue Assignments

J-series Services Routers have eight queues built into the hardware. If a classifier does not assign a packet to any other queue, the packet is assigned by default to the class associated with queue 0.

By default, four queues are assigned to four forwarding classes. Table 104 shows the four default forwarding classes and queues that Juniper Networks classifiers assign to packets based on the CoS values in arriving packet headers. Queues 4 through 7 have no default assignments to forwarding classes. To use queues 4 through 7, you must create custom forwarding class names and assign them to the queues. For more information about how to assign queues to forwarding classes, see the Configuring Class of Service.

Table 104: Default Forwarding Class Queue Assignments

Forwarding Queue

Forwarding Class

Forwarding Class Description

Queue 0

best-effort (be)

The Services Router does not apply any special CoS handling to packets with 000000 in the DiffServ field, a backward compatibility feature. These packets are usually dropped under congested network conditions.

Queue 1

expedited-forwarding (ef)

The Services Router delivers assured bandwidth, low loss, low delay, and low delay variation (jitter) end-to-end for packets in this service class.

Routers accept excess traffic in this class, but in contrast to assured forwarding, out-of-profile expedited-forwarding packets can be forwarded out of sequence or dropped.

Queue 2

assured-forwarding (af)

The Services Router offers a high level of assurance that the packets are delivered as long as the packet flow from the customer stays within a certain service profile that you define.

The router accepts excess traffic, but applies a random early discard (RED) drop profile to decide if the excess packets are dropped and not forwarded.

Three drop probabilities (low, medium, and high) are defined for this service class.

Queue 3

network-control (nc)

The Services Router delivers packets in this service class with a low priority. (These packets are not delay sensitive.)

Typically, these packets represent routing protocol hello or keepalive messages. Because loss of these packets jeopardizes proper network operation, delay is preferable to discard.

Default Scheduler Settings

Each forwarding class has an associated scheduler priority. Only two forwarding classes, best-effort and network-control (queue 0 and queue 3), are used in the JUNOS default scheduler configuration.

By default, the best-effort forwarding class (queue 0) receives 95 percent, and the network-control (queue 3) receives 5 percent of the bandwidth and buffer space for the output link. The default drop profile causes the buffer to fill and then discard all packets until it again has space.

The expedited-forwarding and assured-forwarding classes have no schedulers, because by default no resources are assigned to queue 1 and queue 2. However, you can manually configure resources for expedited-forwarding and assured-forwarding.

The default scheduler settings are automatically included in the configuration, but they do not appear in the output of the show class-of-service command.

[edit class-of-service]
schedulers {
network-control {
transmit-rate percent 5;
buffer-size percent 5;
priority low;
drop-profile-map loss-priority any protocol any drop-profile terminal;
}
best-effort {
transmit-rate percent 95;
buffer-size percent 95;
priority low;
drop-profile-map loss-priority any protocol any drop-profile terminal;
}
}
drop-profiles {
terminal {
fill-level 100 drop-probability 100;
}
}

You can modify the default settings through configuration. For instructions, see Configuring Class of Service.

Default Behavior Aggregate Classifiers

Table 105 shows the forwarding class and packet loss priority (PLP) that are assigned by default to each well-known DSCP. Although several DSCPs map to the expedited-forwarding (ef) and assured-forwarding (af) classes, by default no resources are assigned to these forwarding classes. All af classes other than af1x are mapped to best-effort, because RFC 2597, Assured Forwarding PHB Group, prohibits a node from aggregating classes. Assignment to best-effort implies that the node does not support that class.

You can modify the default settings through configuration. For instructions, see Configuring Class of Service.

Table 105: Default Behavior Aggregate Classification

DSCP and DSCP IPv6 Alias

Forwarding Class

Packet Loss Priority (PLP)

ef

expedited-forwarding

low

af11

assured-forwarding

low

af12

assured-forwarding

high

af13

assured-forwarding

high

af21

best-effort

low

af22

best-effort

low

af23

best-effort

low

af31

best-effort

low

af32

best-effort

low

af33

best-effort

low

af41

best-effort

low

af42

best-effort

low

af43

best-effort

low

be

best-effort

low

cs1

best-effort

low

cs2

best-effort

low

cs3

best-effort

low

cs4

best-effort

low

cs5

best-effort

low

nc1/cs6

network-control

low

nc2/cs7

network-control

low

other

best-effort

low

CoS Value Rewrites

Typically, a router rewrites CoS values in outgoing packets on the outbound interfaces of an edge router. The marker rewrites the CoS values to meet the policies of the targeted peer. It reads the current forwarding class and loss priority information associated with the packet, locates the chosen CoS value from a table, and writes this CoS value into the packet header.

For instructions for configuring rewrite rules, see Configuring and Applying Rewrite Rules .

Sample Behavior Aggregate Classification

Table 106 shows the router forwarding classes associated with each well-known DSCP code point and the resources assigned to their output queues for a sample DiffServ CoS implementation. This example assigns expedited forwarding to queue 1 and a subset of the assured forwarding classes (af1x) to queue 2, and distributes resources among all four forwarding classes.

Other DiffServ-based implementations are possible. For configuration information, see Configuring Class of Service.

Table 106: Sample Behavior Aggregate Classification Forwarding Classes and Queues

DSCP and DSCP IPv6 Alias

DSCP and DSCP IPv6 Bits

Forwarding Class

PLP

Queue

ef

101110

expedited-forwarding

low

1

af11

001010

assured-forwarding

low

2

af12

001100

assured-forwarding

high

2

af13

001110

assured-forwarding

high

2

af21

010010

best-effort

low

0

af22

010100

best-effort

low

0

af23

010110

best-effort

low

0

af31

011010

best-effort

low

0

af32

011100

best-effort

low

0

af33

011110

best-effort

low

0

af41

100010

best-effort

low

0

af42

100100

best-effort

low

0

af43

100110

best-effort

low

0

be

000000

best-effort

low

0

cs1

0010000

best-effort

low

0

cs2

010000

best-effort

low

0

cs3

011000

best-effort

low

0

cs4

100000

best-effort

low

0

cs5

101000

best-effort

low

0

nc1/cs6

110000

network-control

low

3

nc2/cs7

111000

network-control

low

3

other

best-effort

low

0


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