Classification and Marking

  • In networking, QoS classification and marking are the foundations of traffic prioritization. Classification helps you identify and group different types of traffic. Marking assigns values that determine how the network treats that traffic.

    Classification is the process of identifying and organizing traffic into distinct classes.

    For example, you might decide:

    • "This traffic is critical for our business."

    • "This traffic is not urgent and can wait."

    • "This traffic is unrelated to business operations and should have the lowest priority."

    In our example, traffic is divided into four classes:

    Diagram showing QoS classification process, where incoming traffic on interface G0/0 is categorized into Real-Time, Business Critical, Best Effort, and Scavenger classes based on priority.

    Figure 1 – Traffic Classification

    The diagram below shows how traffic coming into interface G0/0 is sorted by priority:

    • Real-Time: Ensures smooth delivery of Voice over IP (VoIP) and video traffic.

    • Business Critical: Prioritizes essential business services like server or application traffic.

    • Best Effort: Handles standard traffic without any special priority, such as web browsing or emails.

    • Scavenger: Low-priority traffic, typically entertainment or non-business-related activities.

    Classifying traffic helps manage the network better. It makes sure important operations come first. This way, less critical tasks won't impact them.

    Why close to the source? Classifying and marking traffic near the source helps prioritize it correctly when it enters the network. This avoids unnecessary delays or mismanagement of resources further along the packet's journey.

    How to Classify Traffic

    Traffic classification can be achieved using various methods. Here are the two most common approaches:

    Diagram showing IOS traffic classification methods, with two main approaches: ACL (Access Control Lists) and NBAR (Network-Based Application Recognition).

    Figure 2 – IOS Methods of Traffic Classification

    Using ACLs (Access Control Lists):

    • ACLs define rules to identify specific types of traffic on a network device.

    • For instance, you could create an ACL to classify traffic originating from a subnet hosting critical servers, ensuring that this traffic receives higher priority.

    Using NBAR (Network-Based Application Recognition):

    • NBAR employs deep packet inspection to identify traffic by applications, protocols, or services.

    • This method is particularly useful when traffic patterns are complex or involve a variety of applications.

    Answer the question below