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

How CoS Components Work

On a Services Router, you configure CoS functions using different components. These components are configured individually or in a combination to define particular CoS services. Figure 22 displays the relationship of different CoS components to each other and illustrates the sequence in which they interact. JUNOS CoS Components defines the components and explains their use.

Figure 22: Packet Flow through J-series CoS-Configurable Components

Image g016730.gif

Each box in Figure 22 represents a CoS component. The solid lines show the direction of packet flow in a router. The upper row indicates an incoming packet, and the lower row an outgoing packet. The dotted lines show the inputs and outputs of particular CoS components. For example, the forwarding class and loss priority are outputs of behavior aggregate classifiers and multifield classifiers and inputs for rewrite markers and schedulers.

Typically, only a combination of some components shown in Figure 22 (not all) is used to define a CoS service offering. For example, if a packet's class is determined by a behavior aggregate classifier, it is associated with a forwarding class and loss priority and does not need further classification by the multifield classifier.

CoS Process on Incoming Packets

Classifiers and policers perform the following operations on incoming packets:

  1. A classifier examines an incoming packet and assigns a forwarding class and loss priority to it.
  2. Based on the forwarding class, the packet is assigned to an outbound transmission queue.
  3. Input policers meter traffic to see if traffic flow exceeds its service level. Policers might discard, change the forwarding class and loss priority, or set the PLP bit of a packet. A packet for which the PLP bit is set has an increased probability of being dropped during congestion.

CoS Process on Outgoing Packets

The scheduler map and rewrite rules perform the following operations on outgoing packets:

  1. Scheduler maps are applied to interfaces and associate the outgoing packets with a scheduler and a forwarding class.
  2. The scheduler defines how the packet is treated in the output transmission queue based on the configured transmit rate, buffer size, priority, and drop profile.
  3. Output policers meter traffic and might change the forwarding class and loss priority of a packet if a traffic flow exceeds its service level.
  4. The rewrite rule writes information to the packet (for example, EXP or DSCP bits) according to the forwarding class and loss priority of the packet.

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