24-2
Catalyst 2940 Switch Software Configuration Guide
78-15507-02
Chapter24 Co nf iguring QoS
Understanding QoS
Figure24-1 QoS Classification Layers in Frames and Packets
All switches and routers that access the Internet rely on the class information to give the same forwarding
treatment to packets with the same class information and different treatment to packets with different
class information. The class information in the packet can be assigned by end hosts or by switches or
routers along the way, based on a configured policy, detailed examination of the packet, or both. Detailed
examination of the packet is expected to happen closer to the edg e of the networ k so that the c ore
switches and routers are not overloaded.
Switches and routers along the path can use the class information to limit the amount of resources
allocated per traffic class. The behavior of an individual device when handling traffic is called per-hop
behavior. If all devices along a path have a consistent per-hop behavior, you can construct an end-to-end
QoS solution.
Implementing QoS in your network can be a simple or complex task and d epend s o n th e QoS f eat ures
offered by your internetworking devices, the traffic types and patterns in your network, and t he
granularity of control that you need over incoming and outgoing traffic.
Queueing and Scheduling
The switch gives QoS-based 802.1P CoS values. QoS uses classification and scheduling to send network
traffic from the switch in a predictable manner. QoS classifies fram es by examinin g priority-index ed CoS
values in them and gives preference to higher-priority traffic such as telephone calls.

How Class of Service Works

Before you set up 802.1P CoS on a Catalyst 2940 switch that operates with the Cataly st 6000 family of
switches, refer to the Catalyst 6000 documentation. There are differences in the 802.1P implementation
that you should understand to ensure compatibility.

Port Priority

Frames received from users in the administratively-defined VLANs are classified or tagged for
transmission to other devices. Based on rules that you define, a unique identifier (the tag) is inserted in
each frame header before it is forwarded. The tag is examined and under stood b y each devi ce befo re an y
broadcasts or transmissions to other switches, routers, or end stations. When t he f rame rea ches th e l ast
switch or router, the tag is removed before the frame is sent to the target end station. VLANs that are
assigned on trunk or access ports without identification or a ta g ar e ca lled native or untagged frames.
For IEEE 802.1Q frames with tag information, the priority value from the header frame is used. For native
frames, the default priority of the input port is used.
98309
Encapsulated Packet
Layer 2
header IP header Data
Layer 2 802.1Q/P Frame
Preamble Start frame
delimiter DA SA Tag PT Data FCS
3 bits used for CoS (user priority)