ATM and Layer 3 Switch Router Software Configuration Guide, 12.1(12c)E1
Configuring the ATM Traffic-Shaping Carrier Module

Table of Contents

Configuring the ATM Traffic-Shaping Carrier Module
About the ATM Traffic-Shaping Carrier Module
Hardware and Software Restrictions
Configuring the ATM TSCAM
Configuring Maximum Thresholds
Displaying Traffic-Shaping Configurations
Traffic-shaping Granularity Tables

Configuring the ATM Traffic-Shaping Carrier Module


This chapter describes the features and configuration procedures for the ATM traffic-shaping carrier module (TSCAM). The TSCAM is available on the Catalyst 8510 MSR and the LightStream 1010 ATM switch routers.


Note   This chapter provides advanced configuration instructions for the Catalyst 8510 MSR and LightStream 1010 ATM switch routers. For complete descriptions of the commands mentioned in this chapter, refer to the ATM and Layer 3 Switch Router Command Reference publication.

This chapter includes the following sections:

About the ATM Traffic-Shaping Carrier Module

The ATM traffic-shaping carrier module (TSCAM) augments the current traffic-shaping capabilities for the Catalyst 8510 MSR and the LightStream 1010 ATM switch routers by providing variable bit rate (VBR) and best-effort traffic-shaping capabilities. The TSCAM shapes the streams of cells sent over virtual connections (VCs) so they conform to bandwidth parameters, and they do not exceed the expected flow into the network. The TSCAM does this by temporarily holding cells in buffers and dispersing them as bandwidth parameters allow on the outgoing connection. The TSCAM helps ensure that cells are not dropped if they exceed the maximum traffic-flow parameters established between private and public networks.

You can enable traffic shaping on subcard 0 of a slot that is equipped with the TSCAM. For OC-3, T1, E1, and DS3 port adapters, a maximum of four traffic classes can be shaped. For example, if only VBR traffic is shaped, traffic shaping for VBR can be configured on a maximum of four ports (each port shapes two classes). If VBR traffic and best-effort traffic is shaped, a maximum of two ports can be configured for traffic shaping. For OC-12 port adapters, only one traffic class can be shaped.


Note   Traffic-shaping configurations do not apply to regular virtual path (VP) tunnels defined on that interface, except in the case of unspecified bit rate (UBR) VP tunnels. For example, when best-effort traffic shaping is enabled on a physical interface, all the UBR VP tunnels defined on that interface are shaped to their peak cell rate (PCR), but individual VCs within those VP tunnels are not shaped.

The TSCAM schedules the traffic classes constant bit rate (CBR), VBR, and best effort in a strict priority in which CBR is the highest priority and best effort is the lowest priority. The best-effort traffic class includes UBR, available bit rate (ABR) and UBR+ service categories. When traffic shaping is disabled for all the traffic classes on a port, all the traffic from that port is switched unaltered as if it were a single connection at the highest priority.


Note   Traffic shaping in the TSCAM is disabled by default. Any changes to shaping configurations are supported across switch reloads only.

An example of how the ATM TSCAM might work in a network is shown in Figure 22-1. In this example, the TSCAM is in a Catalyst 8510 MSR switch router that is on the edge of a private enterprise network connected to a public ATM network. The TSCAM helps ensure that the maximum number of cells transmit through to the public network.


Figure 22-1   TSCAM on an Enterprise Private Network


ATM TSCAM Features

The ATM TSCAM offers the following benefits:

  • Traffic shaping for up to four ports on any combination of T1, E1, and DS3 ports
  • Traffic shaping for up to three ports on OC-3 ports
  • Traffic shaping for up to one OC-12 port
  • VC functionality for up to 32K VCs
  • An aggregate bandwidth of OC-12
  • Online insertion and removal (OIR)
  • Traffic shaping for VBR and best-effort traffic
  • Up to four TSCAMs in a chassis
  • Up to four ports 256K cell buffers share

Hardware and Software Restrictions

This section lists the hardware and software restrictions for the TSCAM.

Hardware Restrictions

The following hardware restrictions apply to the TSCAMs of the Catalyst 8510 MSR and LightStream 1010 ATM switch:

  • Although the TSCAM occupies one full slot on the switch router, the traffic-shaping functionality can only be applied to ports on subcard 0.
  • The TSCAM accommodates only OC-3, T1, E1, DS3, or OC-12 port adapters.
  • Only three traffic classes can be shaped on the OC-3 port adapter.
  • The TSCAM is not compatible with the FC-PCQ feature card.
  • Successive OIR operations must have a delay of 1 minute between them, especially reseating a TSCAM itself or reseating the port adapter in subslot 0 in the TSCAM.

Software Restrictions

The following software restrictions apply to the TSCAMs of the Catalyst 8510 MSR and LightStream 1010 switch routers:

  • Each TSCAM requires 2 MB of continuous main memory availability in the switch.
  • Well-known VCs on an interface that is enabled for VBR traffic shaping will be automatically shaped at the maximum cell rate of that interface. Changing shaping properties for these VCs is not allowed.
  • Any changes to the shaping configurations are supported across switch reloads.
  • Tag switching VCs and Multiprotocol Label Switching (MPLS) VCs are not currently supported.
  • The maximum rate to which a VC can be shaped on an OC-12 interface is 595,085 Kbps
  • The minimum rate that a VC can be shaped is as follows:
    • 36 Kbps for DS3, E3, T1, E1, and OC-3 interfaces
    • 145 Kbps for OC-12 interfaces
  • When VBR connections are shaped using sustainable cell rate (SCR), PCR, and maximum burst size (MBS), the burst tolerance computed always rounds up to the next higher value that conforms to the expression ((2n)-1). For example, if the burst tolerance calculated is 144, the actual burst tolerance used is 255 or ((28)-1).

Note    Burst tolerance is not applicable to the shaping of best-effort connections and the PCR-only mode of shaping for VBR connections.

  • Each TSCAM requires 2 MB of contiguous main memory availability in the system.
  • The maximum rate at which a VC can be shaped on an OC-12 interface is 595,085 Kbps.
  • The minimum rate at which a VC can be shaped to is as below :
    • 36 Kbps for DS3, E3, T1, and E1 interfaces
    • 37 Kbps for OC-3 Interfaces
    • 145 Kbps for OC-12 Interfaces.

About Interface Congestion Thresholds

A total of 256K cell buffers are available on the TSCAM. On an interface enabled for shaping, the number of available cell buffers is the same as the maximum threshold for that interface. Table 22-1 lists the maximum threshold values. These values are the defaults and depend on the number of interfaces configured for traffic shaping. The maximum congestion thresholds for interfaces are not configurable.

Table 22-1   Default Interface Maximum Thresholds

Number of
Shaped Interfaces
 
Maximum Cell Threshold for Unshaped Interfaces  Maximum Cell Threshold for Shaped Interfaces 

0

65536

0

1

2816

253952

2

4096

126976

3

4096

86016

4

0

65536

Configuring the ATM TSCAM

To configure traffic shaping on your ATM TSCAM, perform the following steps, beginning in global configuration mode:

  Command  Purpose 
Step 1 

Switch(config)# interface atm card/subcard/port

Switch(config-if)#

Selects the physical interface to be configured.

Step 2 

Switch(config-if)# atm traffic shaping enable {vbr [pcr-only] | best-effort}

Switch(config-if)# exit

Enables traffic shaping.

Step 3 

Switch# copy system:running-config nvram:startup-config

Copies the running configuration in system memory to the startup configuration stored in NVRAM.


Note   Any changes to the traffic-shaping configuration take effect upon saving the configurations to NVRAM and reloading the switch, or upon performing an OIR on the port adapter in subcard 0 of the ATM TSCAM.

Example

The following example shows how to enable VBR traffic shaping:

Switch# configure terminal 
Switch(config)# interface atm 4/0/0
Switch(config-if)# atm traffic shaping enable vbr
Switch(config-if)# end
Switch# copy system:running-config nvram:startup-config

Configuring Maximum Thresholds

The ATM TSCAM supports maximum thresholds for traffic class and for VCs. This section describes how to configure these thresholds.

Configuring Maximum Thresholds for Traffic Classes

To configure traffic class thresholds, perform the following steps, beginning in privileged EXEC mode:

  Command  Purpose 
Step 1 

Switch# show atm vc atm slot/subslot/port

Verifies that the VCs on the interface are in a down state.

Step 2 

Switch# configure terminal

Switch(config)#

Enters interface global configuration mode.

Step 3 

Switch(config)# interface atm slot/subslot/port

Switch(config-if)#

Enters interface configuration mode.

Step 4 

Switch(config-if)# shutdown

Disables the interface.

Step 5 

Switch(config-if)# atm traffic shaping thresholds class {best-effort | vbr} maximum percent

Sets traffic-shaping thresholds on an interface.

Step 6 

Switch(config-if)# no shutdown

Enables the interface.


Note   Prior to changing the traffic class maximum threshold configuration, you must disable the interface using the shutdown command. You do not have to disable the interface when configuring per-VC maximum thresholds.

Example

The following example shows how to configure a traffic-shaping threshold for a traffic class:

Switch# show atm vc interface atm 0/0/0
Interface         VPI  VCI   Type   X-Interface      X-VPI X-VCI Encap  Status 
ATM0/0/0          0    5     PVC    ATM0             0     49    QSAAL  DOWN
ATM0/0/0          0    16    PVC    ATM0             0     35    ILMI   DOWN
Switch# configure terminal
Switch(config)# interface atm 0/0/0
Switch(config-if)# shutdown 
Switch(config-if)# atm traffic shaping thresholds class vbr maximum 80
Switch(config-if)# no shutdown

Note   Class maximum thresholds are expressed as percentages of the interface maximum threshold values. To display interface maximum thresholds, enter the show atm interface resource atm slot/subslot/port in privileged EXEC mode.

Configuring Maximum Thresholds for VCs

To configure VC thresholds, perform the following steps, beginning in global configuration mode:

  Command  Purpose 
Step 1 

Switch(config)# interface atm slot/subslot/port

Switch(config-if)#

Enters interface configuration mode.

Step 2 

Switch(config-if)# atm traffic shaping thresholds vc {best-effort | vbr} maximum buffers

Sets traffic-shaping thresholds on an interface.


Note   New per-VC maximum thresholds only apply to new VCs created after making the threshold configuration changes. The new threshold configuration is not applied to the maximum threshold values of existing VCs.

Example

The following example shows how to configure traffic-shaping thresholds for VCs:

Switch(config)# interface atm 0/0/0
Switch(config-if)# atm traffic shaping thresholds vc vbr maximum 3000

Displaying Traffic-Shaping Configurations

To show the traffic-shaping configuration of the switch, use the following privileged EXEC commands:

Command  Purpose 

Switch# show atm traffic shaping slot slot

Verifies that traffic shaping is enabled on a slot.

Switch# show atm interface resource atm slot/subslot/port

Verifies the traffic-shaping threshold configurations.

Switch# show atm vc interface atm slot/subslot/port vpi vci

Displays traffic-shaping statistics.

Examples

The following example shows the configured ports on a Catalyst 8510 MSR switch router:

Switch# show atm traffic shaping slot 4
CATS Carrier Module State : ACTIVE
Shaper Configuration Status :
   Shapers In Use by Config : 3  Shapers Available for Config : 1
Shaper Hardware Status :
   Shaper 0 :  In Use - interface : atm 4/0/1 - Class : vbr
   Shaper 1 :  In Use - interface : atm 4/0/2 - Class : Best-Effort
   Shaper 2 :  Not In Use.
   Shaper 3 :  Not In Use.
Statistics :
   Total cell discards = 15, clp0 discards = 3,  clp1 discards = 12
   Free cell buffers = 203852
   cells queued for all ports = 58291

The following example shows the threshold values configured on a Catalyst 8510 MSR switch router:

Switch# show atm interface resource atm4/0/0
Resource Management configuration:
    Service Classes:
        Service Category map: c2 cbr, c2 vbr-rt, c3 vbr-nrt, c4 abr, c5 ubr
        Scheduling: RS c1 WRR c2, WRR c3, WRR c4, WRR c5
        WRR Weight: 15 c2, 2 c3, 2 c4, 2 c5
    Interface traffic-shaping Configuration:
        VBR Shaping : Enabled in Config - Enabled In hardware
        Best-Effort Shaping : Enabled in Config - Enabled In hardware
VBR Class MaxThreshold : 
 Configuration : 40%, Installed Cell Buffers : 47104
Best-Effort Class MaxThreshold : 
 Configuration : 60%, Installed Cell Buffers : 77824
Per-VC Queue Thresholds for VBR : 
 MaxThreshold : Configured = 512, Installed = 512
Per-VC Queue Thresholds for Best-Effort : 
 MaxThreshold : Configured = 1024, Installed = 1024
CAC Configuration to account for Framing Overhead : Disabled
    Pacing: disabled   0 Kbps rate configured, 0 Kbps rate installed
    overbooking :  disabled
Service Categories supported: cbr,vbr-rt,vbr-nrt,abr,ubr
    Link Distance: 0 kilometers
. . .
. . .
Resource Management state:
Traffic Shaper Interface MaxThreshold (in cell buffers) :
        Currently Installed : 65536,  Value on Next Reset : 65536
Traffic Shaper Interface queue cell count : 0
Available bit rates (in Kbps):
        147743 cbr RX, 147743 cbr TX, 147743 vbr RX, 147743 vbr TX,
        147743 abr RX, 147743 abr TX, 147743 ubr RX, 147743 ubr TX
    Allocated bit rates:
        0 cbr RX, 0 cbr TX, 0 vbr RX, 0 vbr TX,
        0 abr RX, 0 abr TX, 0 ubr RX, 0 ubr TX
    Best effort connections: 0 pvcs,  0 svcs

The following example shows the traffic-shaping statistics on a Catalyst 8510 MSR switch router:

switch# show atm vc interface atm 4/0/1 0 5
Interface: ATM4/0/1, Type: oc3suni 
VPI = 0  VCI = 5
Status: UP
Time-since-last-status-change: 00:00:25
Connection-type: PVC 
Cast-type: point-to-point
Packet-discard-option: enabled
Usage-Parameter-Control (UPC): pass
Wrr weight: 15
Number of OAM-configured connections: 0
OAM-configuration: disabled
OAM-states:  Not-applicable
Cross-connect-interface: ATM0, Type: ATM Swi/Proc 
Cross-connect-VPI = 0 
Cross-connect-VCI = 84
Cross-connect-UPC: pass
Cross-connect OAM-configuration: disabled
Cross-connect OAM-state:  Not-applicable
Encapsulation: AALQSAAL
Connection Priority: High
Threshold Group: 6, Cells queued: 0
Rx cells: 7, Tx cells: 5
Tx Clp0:5,  Tx Clp1: 0
Rx Clp0:7,  Rx Clp1: 0
Rx Upc Violations:0, Rx cell drops:0
Rx pkts:7, Rx pkt drops:0
Switch Tx Statistics :
     Tx Clp0 : 5,  Tx Clp1 : 0, TxCells : 5
Rx connection-traffic-table-index: 3
Rx service-category: VBR-RT (Realtime Variable Bit Rate)
Rx pcr-clp01: 424
Rx scr-clp01: 424
Rx mcr-clp01: none
Rx      cdvt: 1024 (from default for interface)
Rx       mbs: 50
Tx connection-traffic-table-index: 3
Tx service-category: VBR-RT (Realtime Variable Bit Rate)
Tx pcr-clp01: 424
Tx scr-clp01: 424
Tx mcr-clp01: none
Tx      cdvt: none
Tx       mbs: 50
Traffic Shaper Connection Identifier : 9
Traffic Shaper Connection Queue Cell Count : 1
AAL5 statistics:
Crc Errors:0, Sar Timeouts:0, OverSizedSDUs:0
BufSzOvfl:  Small:0, Medium:0, Big:0, VeryBig:0, Large:0

Traffic-shaping Granularity Tables

This section lists the following granularity tables for configuring traffic-shaping rates on ATM interfaces:

The tables display shaping rates in cells per second and can be used for configuring connection traffic table (CTT) rows. When configuring CTT rows, the traffic parameters are specified in kilobits per second (kbps). By referring to the values listed in the tables, you can choose the rate in cells per second that most closely matches the desired kbps rate for CTT rows.

Two granularity tables represent each interface type. For example, Table 22-2 shows rates for best-effort connections and variable bit rate (VBR) connections using PCR-only mode. Table 22-3 shows rates for VBR connections shaped using their PCR, SCR, and MBS parameters (the default VBR shaping mode). The DS3, E3, E1, and T1 interfaces share the same values and are therefore represented in the same granularity tables.

The resource management software uses the following algorithm to convert the rates given in kbps to cells per second. You can also use the algorithm as a guideline for determining the kbps value that must be configured for the CTT rows.

In the following expression, kbps_val represents a rate specified in units of kbps and cps_val is the cell per second equivalent of the specified kbps_val. Also, the following expressions use integer division and the operator % represents modulus operations.

intermediate=(kbps_val * 125);
if ((intermediate % 53) !=0)
cps_val = (intermediate / 53) + 1;
else
cps_val = (intermediate / 53);

Note   Observed traffic-shaping rates may vary as much as 2% from the values listed in these tables.

Table 22-2 shows the DS3, E3, E1, and T1 rates for best-effort connections and VBR connections when shaped using PCR-only mode.

Table 22-2   Best-Effort and VBR Shaping (PCR-Only Mode) Rates for DS3, E3, E1, and T1 (Cells Per Second)

105510

105439

104946

104458

103974

103495

103021

102550

102084

101622

101164

100711

100261

99815

99374

98936

98502

98072

97646

97223

96804

96388

95976

95568

95163

94762

94363

93969

93577

93189

92804

92422

92043

91667

91295

90925

90558

90195

89834

89476

89121

88769

88419

88073

87728

87387

87048

86712

86379

86048

85719

85394

85070

84749

84430

84114

83800

83489

83180

82873

82568

82266

81965

81667

81371

81078

80786

80496

80209

79924

79640

79359

79079

78802

78526

78253

77981

77711

77443

77177

76913

76650

76390

76131

75873

75618

75364

75112

74862

74613

74366

74121

73877

73634

73394

73155

72917

72681

72447

72214

71982

71752

71524

71297

71071

70847

70624

70403

70183

69964

69747

69531

69316

69103

68891

68681

68471

68263

68056

67851

67646

67443

67241

67040

66841

66643

66445

66249

66055

65861

65668

65477

65286

65097

64909

64722

64536

64351

64167

63984

63803

63622

63442

63264

63086

62909

62733

62559

62385

62212

62040

61869

61699

61530

61362

61195

61029

60863

60699

60535

60372

60211

60050

59889

59730

59572

59414

59257

59101

58946

58792

58639

58486

58334

58183

58032

57883

57734

57586

57439

57292

57146

57001

56857

56714

56571

56429

56287

56146

56006

55867

55728

55591

55453

55317

55181

55046

54911

54777

54644

54511

54379

54248

54117

53987

53857

53729

53600

53473

53346

53219

53094

52968

52844

52720

52596

52473

52351

52229

52108

51987

51867

51748

51629

51511

51393

51275

51159

51042

50927

50811

50697

50582

50469

50356

50243

50131

50019

49908

49797

49687

49577

49468

49360

49251

49144

49036

48929

48823

48717

48612

48507

48402

48298

48194

48091

47988

47886

47784

47683

47582

47481

47381

47281

47182

47083

46985

46886

46789

46691

46595

46498

46402

46306

46211

46116

46022

45928

45834

45741

45648

45555

45463

45371

45279

45188

45098

45007

44917

44828

44738

44649

44561

44473

44385

44297

44210

44123

44037

43950

43864

43779

43694

43609

43524

43440

43356

43273

43190

43107

43024

42942

42860

42778

42697

42616

42535

42455

42375

42295

42215

42136

42057

41979

41900

41822

41745

41667

41590

41513

41437

41360

41284

41209

41133

41058

40983

40908

40834

40760

40686

40612

40539

40466

40393

40321

40248

40176

40105

40033

39962

39891

39820

39750

39680

39610

39540

39470

39401

39332

39263

39195

39127

39059

38991

38923

38856

38789