Defining DiffServ
To use DiffServ for QoS, you must first define the following categories and their criteria:
- Class: Create a class and define class criteria (see Add and configure a DiffServ class or Add and configure an IPv6 DiffServ class).
- Policy: Create a policy, associate a class with the policy, and define policy attributes (see Add and configure a DiffServ policy).
- Service: Add a policy to an inbound interface (see Attach a DiffServ policy to an interface).
Note the following about the DiffServ process:
- Packets are filtered and processed based on defined criteria. The filtering criteria are defined by a class. The processing is defined by a policy’s attributes. Policy attributes can be defined on a per-class instance basis, and it is these attributes that are applied when a match occurs. When the policy is active, the actions taken depend on which class matches the packet.
- The configuration process begins with defining one or more match criteria for a class. Next, the class is added to a policy. Finally, the policy is added to an interface.
- Packet processing begins by testing the match criteria for a packet. Each match criterion within a class must evaluate to true for a packet to match that class. A policy is applied to a packet when a class match within that policy is found.