Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

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

date_range 19-Feb-21

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.

      content_copy zoom_out_map
      [edit]
      user@host# edit interfaces ct1-2/1/0
      
    2. Configure the channelized T1 IQ PIC as unpartitioned, clear channel.

      content_copy zoom_out_map
      [edit interfaces ct1-2/1/0]
      user@host# set no-partition interface-type t1
      
    3. Specify the logical interface to configure.

      content_copy zoom_out_map
      [edit interfaces]
      user@host# edit t1-2/1/0 unit 0
      
    4. Specify the IPv4 family and IP address

      content_copy zoom_out_map
      [edit interfaces ]
      user@host# set family inet address 10.40.1.1/30
      
  2. Configure traffic shaping by specifying the amount of bandwidth to be allocated to the logical interface.
    1. Specify the interface to configure.

      content_copy zoom_out_map
      [edit]
      user@host# edit class-of-service interfaces t1-2/1/0
      
    2. Specify the shaping rate for the interface.

      content_copy zoom_out_map
      [edit class-of-service interfaces t1-2/1/0]
      user@host# set shaping-rate 3000
      
  3. Verify the configuration.
    content_copy zoom_out_map
    [edit interfaces]
    user@ host# show
    
    ct1-2/1/0 {
        no-partition interface-type t1;
    }
    t1-2/1/0 {
        unit 0 {
            family inet {
                address 10.40.1.1/30;
            }
        }
    }
    
    content_copy zoom_out_map
    [edit class-of-service interfaces]
    user@ host# show
    
    t1-2/1/0 {
        shaping-rate 160k;
    }
    
  4. Save your configuration.
    content_copy zoom_out_map
    [edit]
    user@host# commit
    

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.

      content_copy zoom_out_map
      [edit]
      user@host# edit interfaces ce1-2/1/0
      
    2. Configure the channelized T1 IQ PIC as unpartitioned, clear channel.

      content_copy zoom_out_map
      [edit interfaces ce1-2/1/0]
      user@host# set no-partition interface-type e1
      
    3. Specify the logical interface to configure.

      content_copy zoom_out_map
      [edit interfaces]
      user@host# edit e1-2/1/0 unit 0
      
    4. Specify the IPv4 family and IP address

      content_copy zoom_out_map
      [edit interfaces ]
      user@host# set family inet address 10.40.1.1/30
      
  2. Configure traffic shaping by specifying the amount of bandwidth to be allocated to the logical interface.
    1. Specify the interface to configure.

      content_copy zoom_out_map
      [edit]
      user@host# edit class-of-service interfaces e1-2/1/0
      user@host#
      
    2. Specify the shaping rate for the interface.

      content_copy zoom_out_map
      [edit class-of-service interfaces e1-2/1/0]
      user@host# set shaping-rate 4000
      
  3. Verify the configuration.
    content_copy zoom_out_map
    [edit interfaces]
    user@ host# show
    
    ce1-2/1/0 {
        no-partition interface-type e1;
    }
    e1-2/1/0 unit 0 {
        unit 0 {
            family inet {
                address 10.40.1.1/30;
            }
        }
    }
    
    content_copy zoom_out_map
    [edit class-of-service interfaces]
    user@ host# show
    
    e1-2/1/0 {
        shaping-rate 160k;
    }
    
  4. Save your configuration.
    content_copy zoom_out_map
    [edit]
    user@host# commit
    

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.

      content_copy zoom_out_map
      [edit]
      user@host# edit interfaces ct1-0/0/9
      
    2. Configure the channelized T1 IQ PIC as unpartitioned, clear channel.

      content_copy zoom_out_map
      [edit interfaces ct1-2/1/0]
      user@host# set partition 1 timeslots 1-2 interface-type ds
      
  2. Configure the logical interface.
    1. Specify the logical interface (DS0) to configure.

      content_copy zoom_out_map
      [edit interfaces]
      user@host# edit ds-0/0/9:1
      
    2. Disable the sending of keepalives on the interface.

      content_copy zoom_out_map
      [edit interfaces ds-0/0/0:1]
      set no-keepalives
      
    3. Specify the IPv4 family and IP address for the logical interface.

      content_copy zoom_out_map
      [edit interfaces ds-0/0/0:1]
      user@host# set unit 0 family inet address 10.10.1.1/30
      
  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.

      content_copy zoom_out_map
      [edit]
      user@host# edit class-of-service interfaces ds-0/0/9:1
      
    2. Specify the name of the scheduler map to apply to the interface.

      content_copy zoom_out_map
      [edit class-of-service interfaces ds-0/0/9:1]
      user@host# set scheduler-map sched_port_1
      
    3. Specify the amount of bandwidth to allocate to the interface.

      content_copy zoom_out_map
      set shaping-rate 2000
      
  4. Verify the configuration.
    content_copy zoom_out_map
    [edit interfaces]
    user@ host# show
    
    ct1-0/0/9 {
        partition 1 timeslots 1-2 interface-type ds;
    }
    ds-0/0/9:1 {
        no-keepalives;
        unit 0 {
            family inet {
                address 10.10.1.1/30;
            }
        }
    }
    
    content_copy zoom_out_map
    [edit class-of-service interfaces]
    user@ host# show
    
    ds-0/0/0:1 {
        scheduler-map sched_port_1;
        shaping-rate 160k;
    }
    
  5. Save your configuration.
    content_copy zoom_out_map
    [edit]
    user@host# commit
    

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.

      content_copy zoom_out_map
      [edit]
      user@host# edit interfaces ce1-1/3/1
      
    2. Configure the channelized E1 IQ PIC as unpartitioned, clear channel.

      content_copy zoom_out_map
      [edit interfaces ce1-1/3/1]
      user@host# set partition 1 timeslots 1-4 interface-type ds
      user@host# set partition 2timeslots 5–6 interface-type ds
      
  2. Configure the first logical interface (DS0).
    1. Specify the logical interface to configure.

      content_copy zoom_out_map
      [edit interfaces]
      user@host# edit ds-1/3/1:1
      
    2. Disable the sending of keepalives on the interface.

      content_copy zoom_out_map
      [edit interfaces ds-1/3/1:1]
      set no-keepalives
      
    3. Specify the IPv4 family and IP address for the logical interface.

      content_copy zoom_out_map
      [edit interfaces ds-1/3/1:1]
      user@host# set unit 0 family inet address 10.10.1.1/30
      
  3. Configure the second logical interface (DS0).
    1. Specify the logical interface to configure.

      content_copy zoom_out_map
      [edit interfaces]
      user@host# edit ds-1/3/1:2
      
    2. Disable the sending of keepalives on the interface.

      content_copy zoom_out_map
      [edit interfaces ds-1/3/1:2]
      set no-keepalives
      
    3. Specify the IPv4 family and IP address for the logical interface.

      content_copy zoom_out_map
      [edit interfaces ds-1/3/1:2]
      user@host# set unit 0 family inet address 10.10.1.5/30
      
  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.

      content_copy zoom_out_map
      [edit]
      user@host# edit class-of-service interfaces ds-1/3/1:1
      
    2. Specify the name of the scheduler map to apply to the logical interface.

      content_copy zoom_out_map
      [edit class-of-service interfaces ds-1/3/1:1]
      user@host# set scheduler-map sched_port_1
      
    3. Specify the amount of bandwidth to allocate to the interface.

      content_copy zoom_out_map
      [edit class-of-service interfaces ds-1/3/1:1]
      set shaping-rate 1000
      
  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.

      content_copy zoom_out_map
      [edit]
      user@host# edit class-of-service interfaces ds-1/3/1:2
      
    2. Specify the name of the scheduler map to apply to the interface.

      content_copy zoom_out_map
      [edit class-of-service interfaces ds-1/3/1:2]
      user@host# set scheduler-map sched_port_1
      
    3. Specify the amount of bandwidth to allocate to the interface.

      content_copy zoom_out_map
      [edit class-of-service interfaces ds-1/3/1:2]
      set shaping-rate 1500
      
  6. Verify the configuration.
    content_copy zoom_out_map
    [edit interfaces]
    user@ host# show
    
    ce1-1/3/1 {
        partition 1 timeslots 1-4 interface-type ds;
        partition 2 timeslots 5-6 interface-type ds;
    }
    ds-1/3/1:1 {
        no-keepalives;
        unit 0 {
            family inet {
                address 10.10.1.1/30;
            }
        }
    }
    ds-1/3/1:2 {
        no-keepalives;
        unit 0 {
            family inet {
                address 10.10.1.5/30;
            }
        }
    }
    
    content_copy zoom_out_map
    [edit class-of-service interfaces]
    user@ host# show
    
    interfaces {
      ds-1/3/1:1 {
        scheduler-map sched_port_1;
        shaping-rate 1000;
      }
      ds-1/3/1:2 {
        scheduler-map sched_port_1;
        shaping-rate 1500;
      }
    }
  7. Save your configuration.
    content_copy zoom_out_map
    [edit]
    user@host# commit
    

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.

      content_copy zoom_out_map
      [edit]
      user@host# edit interfaces ct3-2/1/0
      
    2. Configure the interface as unpartitioned.

      content_copy zoom_out_map
      user@host# set no-partition
      
  2. Configure the channelized DS3 interface.
    1. Specify the interface name.

      content_copy zoom_out_map
      [edit interface]
      user@host# edit t3-2/1/0
      
    2. Specify the IPv4 family and IP address for the logical interface.

      content_copy zoom_out_map
      [edit interfaces t3-2/1/0]
      user@host# set unit 0 family inet address 10.40.1.1/30
      
  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.

      content_copy zoom_out_map
      [edit]
      user@host# edit class-of-service interfaces t3-2/1/0
      
    2. Specify the name of the scheduler map to apply to the interface.

      content_copy zoom_out_map
      [edit class-of-service interfaces t3-2/1/0]
      user@host# set scheduler-map sched_port_1
      
    3. Specify the amount of bandwidth to allocate to the interface.

      content_copy zoom_out_map
      [edit class-of-service interfaces t3-2/1/0]
      set shaping-rate 2500
      
  4. Verify the configuration.
    content_copy zoom_out_map
    [edit interfaces]
    user@ host# show
    
    ct3-2/1/0 {
      no-partition;
    }
    t3-2/1/0 {
       unit 0 {
         family inet {
           address 10.40.1.1/30;
         }
       }
    }
    
    content_copy zoom_out_map
    [edit class-of-service]
    
    user@ host# show
    interfaces {
      t3-2/1/0 {
        shaping-rate 2500;
        unit 0 {
          scheduler-map sched_port_1;
        }
      }
    }
  5. Save your configuration.
    content_copy zoom_out_map
    [edit]
    user@host# commit
    

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.

      content_copy zoom_out_map
      [edit]
      user@host# edit interfaces ct3-1/1/3
      
    2. Configure the interface as a partitioned T1 interface.

      content_copy zoom_out_map
      [edit interfaces ct3-1/1/3]
      user@host# set partition 1-3 interface-type t1
      
  2. Configure the first logical interface (T1 interface).
    1. Specify the logical interface name.

      content_copy zoom_out_map
      [edit interfaces]
      user@host# edit t1-1/1/3:1
      
    2. Configure T1-specific physical interface properties.

      content_copy zoom_out_map
      [edit interfaces t1-1/1/3:1]
      set t1-options timeslots 1-2
      
    3. Specify the IPv4 family and IP address for the logical interface.

      content_copy zoom_out_map
      [edit interfaces t1-1/1/3:1]
      user@host# set unit 0 family inet address 10.10.1.1/30
      
  3. Configure the second logical interface (T1 interface).
    1. Specify the logical interface name.

      content_copy zoom_out_map
      [edit interfaces]
      user@host# edit t1-1/1/3:2
      
    2. Configure T1-specific physical interface properties.

      content_copy zoom_out_map
      [edit interfaces t1-1/1/3:2]
      set t1-options timeslots 3–6
      
    3. Specify the IPv4 family and IP address for the logical interface.

      content_copy zoom_out_map
      [edit interfaces t1-1/1/3:2]
      user@host# set unit 0 family inet address 10.10.1.5/30
      
  4. Configure the third logical interface (T1 interface).
    1. Specify the logical interface name.

      content_copy zoom_out_map
      [edit interfaces]
      user@host# edit t1-1/1/3:3
      
    2. Configure T1-specific physical interface properties.

      content_copy zoom_out_map
      [edit interfaces t1-1/1/3:3]
      set t1-options timeslots 7–12
      
    3. Specify the IPv4 family and IP address for the logical interface.

      content_copy zoom_out_map
      [edit interfaces t1-1/1/3:3]
      user@host# set unit 0 family inet address 10.10.1.9/30
      
  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.

      content_copy zoom_out_map
      [edit]
      user@host# edit class-of-service 
      user@host# set interfaces t1-1/1/3:1 scheduler-map sched_port_1 shaping-rate 1200
      
    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.

      content_copy zoom_out_map
      [edit class-of-service]
      user@host# edit interfaces t1-1/1/3:2 scheduler-map sched_port_1 shaping-rate 1300
      
    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.

      content_copy zoom_out_map
      [edit class-of-service]
      user@host# edit interfaces t1-1/1/3:3 scheduler-map sched_port_1 shaping-rate 1400
      
  6. Verify the configuration.
    content_copy zoom_out_map
    [edit interfaces]
    user@ host# show
    
    ct3-1/1/3 {
        partition 1-3 interface-type t1;
    }
    t1-1/1/3:1 {
        t1-options {
            timeslots 1-2;
        }
        unit 0 {
            family inet {
                address 10.10.1.5/30;
            }
        }
    }
    t1-1/1/3:2 {
        t1-options {
            timeslots 3-6;
        }
        unit 0 {
            family inet {
                address 10.10.1.5/30;
            }
        }
    }
    t1-1/1/3:3 {
        t1-options {
            timeslots 7-12;
        }
        unit 0 {
            family inet {
                address 10.10.1.9/30;
            }
        }
    }
    
    content_copy zoom_out_map
    [edit class-of-service interfaces]
    user@ host# show
    
    t1-1/1/3:1 {
      scheduler-map sched_port_1;
      shaping-rate 1200;
    }
    t1-1/1/3:2 {
      scheduler-map sched_port_1;
      shaping-rate 1300;
    }
    t1-1/1/3:3 {
      scheduler-map sched_port_1;
      shaping-rate 1400;
    }
    }
  7. Save your configuration.
    content_copy zoom_out_map
    [edit]
    user@host# commit
    

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.

      content_copy zoom_out_map
      [edit]
      user@host# edit interfaces ct1-2/1/3
      
    2. Configure the interface as a partitioned, specify the timeslots for the interface, and specify the interface type.

      content_copy zoom_out_map
      [edit interfaces ct3-2/1/3]
      user@host# set partition 1 timeslots 1-4 interface-type ds
      
  2. Configure the DS0 interface.
    content_copy zoom_out_map
    [edit interfaces]
    user@host# set ds-2/1/3:1:1 unit 0 family inet address 10.20.144.1/30
    
  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.

      content_copy zoom_out_map
      [edit class-of-service]
      user@host# set interfaces ds-2/1/3:1:1 scheduler-map sched_port_1 shaping-rate 1100
      
  4. Verify the configuration.
    content_copy zoom_out_map
    [edit interfaces]
    user@ host# show
    
    ct3-2/1/3 {
    partition 1 interface-type ct1;
    }
    ct1-2/1/3:1 {
      partition 1 timeslots 1-4 interface-type ds;
    }
    ds-2/1/3:1:1 {
      unit 0 {
        family inet {
          address 10.20.144.1/30;
        }
      }
    }
    content_copy zoom_out_map
    [edit class-of-service interfaces]
    user@ host# show
    
    interfaces {
      ds-2/1/3:1:1 {
        scheduler-map sched_port_1;
        shaping-rate 1100;
      }
    }
  5. Save your configuration.
    content_copy zoom_out_map
    [edit]
    user@host# commit
    
footer-navigation