83489-Stackwise WP 0321
83489-Stackwise WP 0321
This white paper provides an overview of the Cisco StackWise™ technology and
the specific mechanisms that it uses to create a unified, logical switching
architecture through the linkage of multiple, fixed configuration switches. This
paper focuses on the following critical aspects of the Cisco StackWise technology:
stacking interconnect behavior, stack creation and modification; Layer 2 and Layer
3 forwarding; and quality-of-service (QoS) mechanisms. The goal of the paper is to
help the reader understand how the Cisco StackWise technology delivers advanced
performance for voice, video, and gigabit Ethernet applications.
Figure 1
Each stack of Cisco Catalyst 3750 Series
Stack of Cisco Catalyst switches has a single IP address and is
3750 Series Switches
managed as a single object. This single IP
with StackWise
Technology management applies to activities such as
fault detection, virtual LAN (VLAN)
creation and modification, security, and
QoS controls. Each stack has only one
configuration file, which is distributed to
Cisco StackWise technology unites up to nine individual Cisco Catalyst 3750 switches into a single logical unit, using
special stack interconnect cables and stacking software. The stack behaves as a single switching unit that is managed
by a master switch elected from one of the member switches. The master switch automatically creates and updates
all the switching and optional routing tables. A working stack can accept new members or delete old ones without
service interruption.
Bidirectional Flow
To efficiently load balance the traffic, packets are allocated between two logical counter-rotating paths. Each
counter-rotating path supports 16-Gbps of traffic for a total of 32 Gbps. The egress queues calculate path usage to
ensure that the traffic load is equally partitioned.
Whenever a frame is ready for transmission onto the path, a calculation is made to see which path has the most
available bandwidth. The entire frame is then copied onto this half of the path. Traffic is serviced depending upon its
class of service (CoS) or differentiated services code point (DSCP) designation. Low latency traffic is given priority.
When a break is detected in a cable, the traffic immediately loops back across the single remaining 16-Gbps path to
continue forwarding.
Subsecond Failover
Within microseconds of a breakage of one part of the ring, all data is switched to the active half of the bidirectional
path (Figure 3).
Figure 3
Loopback After Cable Break
Loopbacks
The switches continually monitor the stack ports for activity and correct data transmission. If error conditions cross
a certain threshold, or there is insufficient electromagnetic contact of the cable with its port, the switch detecting this
then sends a message to its nearest neighbor opposite from the breakage. Both switches then divert all their traffic
onto the remaining good path.
The master switch acts as the primary point of contact for IP functions such as Telnet sessions, pings, command-line
interface (CLI), and routing information exchange. The master is responsible for downloading forwarding tables to
each of the subordinate switches. Multicast and unicast routing tasks are implemented from the master. QoS and
access control list (ACL) configuration information is distributed from the master to the subordinates. When a new
subordinate switch is added, or an existing switch removed, the master will issue a notification of this event and all
the subordinate switches will update their tables accordingly.
Subordinate switches wait to receive copies of the running configurations from the master, and begin start
transmitting data upon receipt of the most current information. This ensures that all the switches will use only the
most current information and that there is only one network topology used for forwarding decisions.
When one master switch becomes inactive and while a new master is elected, the stack continues to function. Layer
2 connectivity continues unaffected. The new master uses its hot standby unicast table to continue processing unicast
traffic. Multicast tables and routing tables are flushed and reloaded to avoid loops.
The Cisco StackWise technology uses an extremely efficient mechanism for transmitting unicast and multicast traffic.
Each data packet is put on the ring only once. This includes multicast packets. Each data packet has a 24-byte header
with an activity list for the packet as well as a QoS designator. The activity list specifies the port destination or
destinations and what should be done with the packet. In the case of multicast, the master switch identifies which of
the ports should receive a copy of the packets and adds a destination index for each port. One copy of the packet is
put on the ring. Each switch port that owns one of the destination index addresses then copies this packet. This
creates a much more efficient mechanism for the stack to receive and manage multicast information (Figure 4).
Figure 4
Comparison of Normal Multicast in Stackable Switches and Smart Multicast in Cisco Catalyst 3750 Series Switches Using Cisco
StackWise Technology
Source Destination
SA1 DA3 DA3 DA3
1 MiCast = 1 Packet
SA2 SA2
QoS Mechanisms
QoS provides granular control where the user meets the network. This is particularly important for networks
migrating to converged applications where differential treatment of information is essential. QoS is also necessary
for the migration to Gigabit Ethernet speeds, where congestion must be avoided.
When the queues are configured as shared, they are defined as a percentage. For example: queue one is 50 percent,
queue two is 30 percent, queue three is 20 percent, and queue four is 10 percent.
When queues are configured as shaped, they are defined in terms of bandwidth. For example: queue one is 10 Mb,
queue two is 40 Mb, queue three is 30 Mb, and queue four is 20 Mb. If one of the queues is not using all its allocated
bandwidth, the others can use that queue resource, if they are exceeding their limits. The sum of the bandwidth totals
cannot exceed the maximum line rate of the port.
Control traffic for the switch uses one of the four available queues. The network manager can configure which of the
queues is used to manage this traffic.
Individual queues can be configured to support either frame or byte count limits.
Figure 5 shows shaped and shared queues.
Figure 5
Comparison of Shaped and Shared Queues
Shared Queues
Q1
Q2
SRR t4 t3 t2 t1 t1 Output
Q3
ti
Q4
Time
Shaped Queues
Q1
Q2
SRR Output
Q3
Q4
Time
The Cisco StackWise technology supports granular jumbo frames up to 9 KB on the 10/100/1000 copper ports.
Smart VLANs
VLAN operation is the same as multicast operation. If the master detects information that is destined for multiple
VLANs, it creates one copy of the packet with many destination addresses. This enables the most effective use of the
switching backplane (Figure 6).
Figure 6
Smart VLAN Operations
Smart VLAN
DA3
1 VLAN = 1 Packet
Source Destination
SA1 DA1
DA3
DA2 DA1
SA1 VLAN 1
VLAN 2
Because all the ports in a stack behave as one logical unit, EtherChannel technology can operate across multiple,
physical devices in the stack. Cisco IOS Software can aggregate up to eight separate physical ports from any switches
in the stack into one logical channel uplink. Up to 12 EtherChannel groups are supported on a stack.
Management
Products using the Cisco StackWise™ technology can be managed by the CLI or by network management packages.
Cisco Cluster Management Suite (CMS) Software has been developed specifically for management of Cisco stackable
switches. Special wizards for stack units in Cisco CMS Software allow the network manager to configure all the ports
in a stack with the same profile. Predefined wizards for data, voice, video, multicast, security, and inter-VLAN routing
functions allow the network manager to set all the port configurations at once.
Summary
Cisco StackWise™ technology allows you to increase the resiliency and the versatility of your network edge to
accommodate evolution for speed and converged applications.
Cisco Systems has more than 200 offices in the following countries and regions. Addresses, phone numbers, and fax numbers are listed on the
Cisco Web site at www.cisco.com/go/offices
Argentina • Australia • Austria • Belgium • Brazil • Bulgaria • Canada • Chile • China PRC • Colombia • Costa Rica • Croatia
Czech Republic • Denmark • Dubai, UAE • Finland • France • Germany • Greece • Hong Kong SAR • Hungary • India • Indonesia • Ireland
Israel • Italy • Japan • Korea • Luxembourg • Malaysia • Mexico • The Netherlands • New Zealand • Norway • Peru • Philippines • Poland
Portugal • Puerto Rico • Romania • Russia • Saudi Arabia • Scotland • Singapore • Slovakia • Slovenia • South Africa • Spain • Sweden
S w i t z e r l a n d • Ta i w a n • T h a i l a n d • Tu r k e y • U k r a i n e • U n i t e d K i n g d o m • U n i t e d S t a t e s • Ve n e z u e l a • Vi e t n a m • Z i m b a b w e
All contents are Copyright © 1992–2003 Cisco Systems, Inc. All rights reserved. Catalyst, Cisco, Cisco IOS, Cisco Systems, the Cisco Systems logo, and EtherChannel are registered trademarks of Cisco Systems, Inc. and/or
its affiliates in the U.S. and certain other countries.
All other trademarks mentioned in this document or Web site are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company.
(0303R) WH/LW4341 0303