32 Chapter 2: End-to-End QoS: Quality of Service at Layer 3 and Layer 2
• LAN-to-WAN connections—When traffic is flowing from a LAN, where bandwidth
is typically at least 10 Mbps, to a WAN, where bandwidth is typically less than 10
Mbps, the possibility of congestion is very real.
• Aggregation—When several links are aggregated and their traffic transmitted over a
single link, the possibility exists that a situation may cause congestion. If ten 10-Mbps
links were being aggregated into a Gigabit Ethernet connection, congestion would not
be possible, because the single link’s bandwidth would exceed that of the aggregated
links. However, it is more common to see 24 or even 48 100-Mbps ports aggregated
into a single Gigabit Ethernet uplink. In this situation, the sum of traffic from the
aggregated links has the potential to exceed the capacity of the gigabit port.
• Speed mismatch—It is also possible to have congestion when traffic flows
downstream, from higher-speed aggregation links to lower-speed access links. For
example, traffic coming from the core of the network, through a Gigabit Ethernet link,
to a PC that is connected by a 100-Mbps connection may experience congestion. In
this example, the congestion point would occur at the 100-Mbps Ethernet port, as
traffic tries to egress that port toward the PC.
Congestion Management
QoS involves many components and features, but the component that is most typically
associated with the term QoS is congestion management. Congestion management is the
key component for QoS on Catalyst switches. The congestion management component of
QoS itself is made up of many different features in Cisco IOS and CatOS. All Catalyst
switches that support QoS features support congestion management or congestion
avoidance. The next section looks at these features in detail, but the purpose of this section
is to define congestion management, in general.
As the name implies, congestion management enables you to manage the congestion that
is experienced by packets at a given point in the network. Congestion management involves
three main steps:
1 Queues are created at the interface where congestion is expected. Depending on the
specific feature or mechanism being used to provide QoS and the platform on which
the QoS is being configured, there could be only two queues or there could be several
hundred (although there is currently no practical application for this many queues on
any Catalyst platform).
2 Packets (this could also be frames, but for the sake of simplicity, the word packets is
used) are then assigned to these queues, based on classification characteristics such as
DiffServ codepoint (DSCP) value. The classification of packets by characteristics is
typically user-defined, and packets are placed into queues by these predetermined
characteristics. Some examples of packet characteristics that are typically used in
classification are the values in the packet for IP precedence, DSCP, and Layer 2 class
of service (CoS). It is also common to use extended access lists to match packets based
on more complex criteria, such as port numbers.