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.
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
- Example: Applying a Shaping Rate to a Clear-Channel T1 Interface on a Channelized T1 IQ PIC
- Example: Applying a Shaping Rate to a Clear-Channel E1 Interface on a Channelized E1 IQ PIC
Shaping Rate Calculations
For shaping rate and WRR, the information included in the calculations varies by PIC type, as shown in Table 1.
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.
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:
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:
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
- Example: Applying a Scheduler Map and Shaping Rate to DS0 Channels of a Channelized E1 Interface on a Channelized E1 IQ PIC
- Applying a Scheduler Map and Shaping Rate to a Clear-Channel T3 Interface on a Channelized DS3 IQ PIC
- Applying a Scheduler Map and Shaping Rate to Fractional T1 Interfaces on a Channelized DS3 IQ PIC
- 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
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.
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.
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.
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.
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.