164
Chapter 4
Layer 2 Switching and the Spanning Tree Protocol (STP)
Store-and-Forward
Store-and-forward switching is one of three primary types of LAN switch-
ing. With the store-and-forward switching method, the LAN switch copies
the entire frame onto its onboard buffers and computes the cyclic redun-
dancy check (CRC). Because it copies the entire frame, latency through the
switch varies with frame length.
The frame is discarded if it contains a CRC error, if it's too short (less than
64 bytes including the CRC), or if it's too long (more than 1,518 bytes
including the CRC). If the frame doesn't contain any errors, the LAN switch
looks up the destination hardware address in its forwarding or switching
table and determines the outgoing interface. It then forwards the frame
toward its destination. This is the mode used by the Catalyst 5000 series
switches, and it cannot be modified on the switch.
Cut-Through (Real Time)
Cut-through switching is the other main type of LAN switching. With this
method, the LAN switch copies only the destination address (the first 6 bytes
following the preamble) onto its onboard buffers. It then looks up the hard-
ware destination address in the MAC switching table, determines the outgo-
ing interface, and forwards the frame toward its destination. A cut-through
switch provides reduced latency because it begins to forward the frame as
soon as it reads the destination address and determines the outgoing
interface.
Some switches can be configured to perform cut-through switching on a
per-port basis until a user-defined error threshold is reached. At that point,
they automatically change over to store-and-forward mode so they will stop
forwarding the errors. When the error rate on the port falls below the thresh-
old, the port automatically changes back to cut-through mode.
FragmentFree (Modified Cut-Through)
FragmentFree is a modified form of cut-through switching in which the
switch waits for the collision window (64 bytes) to pass before forwarding.
If a packet has an error, it almost always occurs within the first 64 bytes.
FragmentFree mode provides better error checking than the cut-through
mode, with practically no increase in latency. This is the default switching
method for the 1900 switches.
Copyright ©2000 SYBEX , Inc., Alameda, CA
www.sybex.com