Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Applying Scheduler Maps and Shaping Rate to Physical Interfaces on IQ PICs

This topic describes how to configure and apply scheduler maps and shaping rates to physical interfaces on various types of IQ PICs.

You can specify a peak bandwidth rate (shaping rate) in bps, either as a complete decimal number or as a decimal number followed by the abbreviation k (1000), m (1,000,000), or g (1,000,000,000). For physical interfaces, the range is from 1000 through 6,400,000,000,000 bps. For the IQ2 Gigabit Ethernet PIC, the minimum is 80,000 bps, and for the IQ2 10 Gigabit Ethernet PIC, the minimum is 160,000 bps. (For logical interfaces, the range is 1000 through 32,000,000,000 bps.) The sum of the bandwidths you allocate to all physical interfaces on a PIC must not exceed the bandwidth of the PIC.

Note:

For MX Series routers, the shaping rate value for the physical interface at the [edit class-of-service interfaces interface-name] hierarchy level must be a minimum of 160 Kbps.

If you configure a shaping rate that exceeds the physical interface bandwidth, the new configuration is ignored, and the previous configuration remains in effect. For example, if you configure a shaping rate that is 80 percent of the physical interface bandwidth, then change the configuration to 120 percent of the physical interface bandwidth, the 80 percent setting remains in effect. This holds true unless the PIC is restarted, in which case the default bandwidth goes into effect. As stated previously, the default bandwidth is based on the channel bandwidth and the time slot allocation.

Optionally, you can instead configure scheduling and rate shaping on logical interfaces, as described in Applying Scheduler Maps and Shaping Rate to DLCIs and VLANs. In general, logical and physical interface traffic shaping is mutually exclusive. You can include the shaping-rate statement at the [edit class-of-service interfaces interface-name] hierarchy level or the [edit class-of-service interfaces interface-name unit logical-unit-number] hierarchy level, but not both. For Gigabit Ethernet IQ2 and IQ2E PICs, you can configure hierarchical traffic shaping, meaning the shaping is performed on both the physical interface and the logical interface. For more information, see Configuring Input Shaping Rates for Both Physical and Logical Interfaces.

For more information, see the following sections:

Examples: Applying a Shaping Rate

This topic shows you how to calculate shaping rates and provides two examples of how to configure and apply a shaping rate. It includes the following sections:

Shaping Rate Calculations

For shaping rate and WRR, the information included in the calculations varies by PIC type, as shown in Table 1.

Note:

The 10-port 10-Gigabit Oversubscribed Ethernet (OSE) PICs and Gigabit Ethernet IQ2 PICs are unique in supporting ingress scheduling and shaping. The calculations shown for 10-port 10-Gigabit OSE and Gigabit Ethernet IQ2 PICs apply to both ingress and egress scheduling and shaping. For other PICs, the calculations apply to egress scheduling and shaping only.

For more information, see CoS on Enhanced IQ2 PICs Overview.

Table 1: Shaping Rate and WRR Calculations by PIC Type

PIC Type

Platform

Shaping Rate and WRR Calculations Include

10-port 10-Gigabit OSE PIC

T Series Core Routers

For ingress and egress:

L3 header + L2 header + frame check sequence (FCS) + interpacket gap (IPG) + preamble

Gigabit Ethernet IQ2 PIC

All

For ingress and egress:

L3 header + L2 header + frame check sequence (FCS)

Gigabit Ethernet IQ PIC

All

L3 header + L2 header + FCS

IQ PIC with a SONET/SDH interface

All

L3 header+ L2 header + FCS

Example: Applying a Shaping Rate to a Clear-Channel T1 Interface on a Channelized T1 IQ PIC

To apply a shaping rate to a clear-channel T1 interface on a channelized T1 IQ PIC:

  1. Configure the physical and logical interfaces.
    1. Specify the physical interface to configure.

    2. Configure the channelized T1 IQ PIC as unpartitioned, clear channel.

    3. Specify the logical interface to configure.

    4. Specify the IPv4 family and IP address

  2. Configure traffic shaping by specifying the amount of bandwidth to be allocated to the logical interface.
    1. Specify the interface to configure.

    2. Specify the shaping rate for the interface.

  3. Verify the configuration.
  4. Save your configuration.

Example: Applying a Shaping Rate to a Clear-Channel E1 Interface on a Channelized E1 IQ PIC

To apply a shaping rate to a clear-channel E1 interface on a channelized E1 IQ PIC:

  1. Configure the physical and logical interfaces.
    1. Specify the physical interface to configure.

    2. Configure the channelized T1 IQ PIC as unpartitioned, clear channel.

    3. Specify the logical interface to configure.

    4. Specify the IPv4 family and IP address

  2. Configure traffic shaping by specifying the amount of bandwidth to be allocated to the logical interface.
    1. Specify the interface to configure.

    2. Specify the shaping rate for the interface.

  3. Verify the configuration.
  4. Save your configuration.

Examples: Applying a Scheduler Map and Shaping Rate to Physical Interfaces on IQ PICs

The following sections provide examples of how to configure and apply a scheduler map and shaping rate to various physical interface types.

The following examples are included:

Example: Applying a Scheduler Map and Shaping Rate to a DS0 Channel of a Channelized T1 Interface on a Channelized T1 IQ PIC

To apply a scheduler map and shaping rate to a clear-channel T1 interface on a channelized T1 IQ PIC:

For this procedure, you must also configure a scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

  1. Configure the physica interface.
    1. Specify the physical interface to configure.

    2. Configure the channelized T1 IQ PIC as unpartitioned, clear channel.

  2. Configure the logical interface.
    1. Specify the logical interface (DS0) to configure.

    2. Disable the sending of keepalives on the interface.

    3. Specify the IPv4 family and IP address for the logical interface.

  3. Apply the scheduler map and shaping rate to the interface.
    Note:

    Be sure you have previously configured the scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

    1. Specify the interface to configure.

    2. Specify the name of the scheduler map to apply to the interface.

    3. Specify the amount of bandwidth to allocate to the interface.

  4. Verify the configuration.
  5. Save your configuration.

Example: Applying a Scheduler Map and Shaping Rate to DS0 Channels of a Channelized E1 Interface on a Channelized E1 IQ PIC

To apply a scheduler map and shaping rate to a clear-channel E1 interface on a channelized E1 IQ PIC:

For this procedure, you must also configure a scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

  1. Configure the physical.
    1. Specify the physical interface to configure.

    2. Configure the channelized E1 IQ PIC as unpartitioned, clear channel.

  2. Configure the first logical interface (DS0).
    1. Specify the logical interface to configure.

    2. Disable the sending of keepalives on the interface.

    3. Specify the IPv4 family and IP address for the logical interface.

  3. Configure the second logical interface (DS0).
    1. Specify the logical interface to configure.

    2. Disable the sending of keepalives on the interface.

    3. Specify the IPv4 family and IP address for the logical interface.

  4. Apply the scheduler map and shaping rate to the first logical interface.
    Note:

    Be sure you have previously configured the scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

    1. Specify the logical interface to configure.

    2. Specify the name of the scheduler map to apply to the logical interface.

    3. Specify the amount of bandwidth to allocate to the interface.

  5. Apply the scheduler map and shaping rate to the second logical interface.
    Note:

    Be sure you have previously configured the scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

    1. Specify the logical interface on which you want to apply the scheduler.

    2. Specify the name of the scheduler map to apply to the interface.

    3. Specify the amount of bandwidth to allocate to the interface.

  6. Verify the configuration.
  7. Save your configuration.

Applying a Scheduler Map and Shaping Rate to a Clear-Channel T3 Interface on a Channelized DS3 IQ PIC

To apply a scheduler map and shaping rate to a clear-channel T3 interface on a channelized DS3 IQ PIC:

For this procedure, you must also configure a scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

  1. Configure the channelized T3 IQ interface.
    1. Specify the physical interface to configure.

    2. Configure the interface as unpartitioned.

  2. Configure the channelized DS3 interface.
    1. Specify the interface name.

    2. Specify the IPv4 family and IP address for the logical interface.

  3. Apply the scheduler map and shaping rate on the channelized DS3 interface.
    Note:

    Be sure you have previously configured the scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

    1. Specify the interface name.

    2. Specify the name of the scheduler map to apply to the interface.

    3. Specify the amount of bandwidth to allocate to the interface.

  4. Verify the configuration.
  5. Save your configuration.

Applying a Scheduler Map and Shaping Rate to Fractional T1 Interfaces on a Channelized DS3 IQ PIC

To apply a scheduler map and shaping rate to a fractional T1 interfaces on a channelized DS3 IQ PIC:

For this procedure, you must also configure a scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

  1. Configure the physical interface.
    1. Specify the name of the physical interface.

    2. Configure the interface as a partitioned T1 interface.

  2. Configure the first logical interface (T1 interface).
    1. Specify the logical interface name.

    2. Configure T1-specific physical interface properties.

    3. Specify the IPv4 family and IP address for the logical interface.

  3. Configure the second logical interface (T1 interface).
    1. Specify the logical interface name.

    2. Configure T1-specific physical interface properties.

    3. Specify the IPv4 family and IP address for the logical interface.

  4. Configure the third logical interface (T1 interface).
    1. Specify the logical interface name.

    2. Configure T1-specific physical interface properties.

    3. Specify the IPv4 family and IP address for the logical interface.

  5. Apply the scheduler map and shaping rate to the T1 logical interfaces.
    Note:

    Be sure you have previously configured the scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

    1. Configure the first interface by specifying the interface name, appying the scheduler map to the interface, and specifying the amount of bandwidth to allocate to the interface.

    2. Configure the second interface by specifying the interface name, appying the scheduler map to the interface, and specifying the amount of bandwidth to allocate to the interface.

    3. Configure the third interface by specifying the interface name, appying the scheduler map to the interface, and specifying the amount of bandwidth to allocate to the interface.

  6. Verify the configuration.
  7. Save your configuration.

Applying a Scheduler Map and Shaping Rate to a DS0 Channel of a T1 Interface in a Channelized T3 Interface on a Channelized DS3 IQ PIC

To apply a scheduler map and shaping rate to a DS0 Channel of a T1 Interface in a Channelized T3 Channelized DS3 IQ PIC:

For this procedure, you must also configure a scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

  1. Configure the physical interface.
    1. Specify the name of the physical interface.

    2. Configure the interface as a partitioned, specify the timeslots for the interface, and specify the interface type.

  2. Configure the DS0 interface.
  3. Apply the scheduler map and shaping rate to the logical interface.
    Note:

    Be sure you have previously configured the scheduler map. For details on configuring the scheduler map, see Configuring Scheduler Maps.

    1. Configure the interface by specifying the interface name, applying the scheduler map to the interface, and specifying the amount of bandwidth to allocate to the interface.

  4. Verify the configuration.
  5. Save your configuration.