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


Scheduler Profiles

The egress line module scheduler is an HRR scheduler. Figure 10 is an example of a QoS scheduler's hierarchy.


Figure 10: QoS Scheduler Hierarchy

As shown in Figure 10, the queues feeding a physical port are organized in a hierarchy. At each level in the hierarchy, the scheduler uses shaping rates, hierarchical or assured rates, and relative weights to determine the allocated bandwidth:

The scheduler supports hierarchical and static assured rates, relative weights, and shaping rates on all three levels of the hierarchy: first-level node, second-level node, and queue. The bandwidth delivered from a given node or queue is a function of the shaping rate and either the assured rate or relative weight:

The static assured rate specifies the desired bandwidth. This rate is guaranteed until the bandwidth becomes oversubscribed.

For example, if Node A is configured to receive 40 Mbps and Node B receives 20 Mbps, any available bandwidth above the subscribed total of 60 Mbps would be allocated to the two nodes at the same 2-to-1 ratio. Similarly, if the bandwidth were oversubscribed and only 30 Mbps were available, this amount would also be allocated to the two nodes at the 2-to-1 ratio, with Node A getting 20 Mbps and Node B getting 10 Mbps.

NOTE: For E-series ASIC modules, strict priority is supported only for a single first-level scheduler node.


Hierarchical Assured Rate

The JUNOSe hierarchical assured rate (HAR) feature provides a more powerful and efficient method of configuring assured rates than static assured rates.

When you use static assured rates, a queue is guaranteed to receive its assured rate only when its parent node is configured with an assured rate that equals the sum of all its child assured rates. Therefore, to ensure that a queue receives its specified assured rate, you must frequently recalculate the assured rates on all parent nodes in the queue's hierarchy. This recalculation is necessary because of the number of scheduler nodes and queues that may be dynamically created or deleted through applications such as bandwidth-on-demand. Eventually, this complicated manual recalculation process becomes unreasonable and virtually impossible.

HAR replaces the manual recalculation process by directing the router to dynamically calculate the assured rate for a scheduler node based on the sum of the assured rates of all its child nodes and queues. For example, you might use HAR to increase the effective weight of an ATM-VC scheduler node when a video queue is created, and to later restore the effective rate of the node when the video queue is deleted.

HAR is applicable only to level 1 and level 2 scheduler nodes, and is not applicable to queues or ports. When you configure HAR, the changes take place immediately. When you disable HAR, the scheduler node's previous weight is restored.

Figure 11 shows an application of HAR for VC nodes. In the example, VCs, which are configured for HAR, are stacked over virtual path (VP) nodes. The VP nodes are in turn stacked over an OC-3 ATM port. Each VC has a best-effort data queue, which currently has an assured rate of 20 Kbps. The VCs share equal portions of their parent VP's bandwidth. However, when the video queue is added to VC2, HAR enables VC2's share of the VP bandwidth to increase in proportion to the 1-Mbps video queue that was created. The bandwidth of sibling VC nodes, which have only a data queue, is decreased in equal proportions.


Figure 11: Hierarchical Assured Rate

Configuring Scheduler Profiles

To configure a scheduler profile, perform the following steps:

  1. Create a scheduler profile, and enter Scheduler Profile Configuration mode.
  2. host1(config)#scheduler-profile sp-1mbs
    
    host1(config-scheduler-profile)#
    
    
    
  3. (Optional) Set the shaping rate of the scheduler node or queue in bits per second.
  4. host1(config-scheduler-profile)#shaping-rate 128000
    
    
    
  5. (Optional) Set the effective weight of the scheduler node or queue; you can set the HRR weight, a static assured rate, or an HAR.
  6. host1(config-scheduler-profile)#assured-rate 56000
    
    
    
  7. (Optional) Set strict-priority scheduling.
  8. host1(config-scheduler-profile)#strict-priority
    
    
    

    NOTE: If you configured traffic shaping through traffic shape profiles in JUNOSe releases before 4.0, traffic shaping is replaced with the rate-shaping feature, which is configured when you configure a scheduler profile.

assured-rate

scheduler-profile

shaping-rate

strict-priority

weight


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