Being Politically Incorrect: Treating Special Traffic in a Special Way


The mission statement of QoS could read something like, "To categorize traffic and apply a policy to traffic categories, in accordance with a QoS policy." Specifically, there are three basic steps to QoS configuration:

Step 1.

Determine network performance requirements for various traffic types. For example, consider these design guidelines for voice, video, and data traffic:

  • Voice

    - No more than 150 ms of one-way delay

    - No more than 30 ms of jitter

    - No more than 1 percent packet loss

  • Video

    - No more than 150 ms of one-way delay for interactive video applications (for example, video conferencing)

    - No more than 30 ms of jitter

    - No more than 1 percent packet loss

  • Data

    Applications vary in their delay and loss requirements. Therefore, categorize data applications into predefined classes of traffic, where each class is configured with specific delay and loss characteristics.

Step 2.

Categorize traffic into specific categories. For example, you might have a category named "Low Delay," and you decide to place voice and video packets in that category. You might also have a "Low Priority" class, where you place traffic such as music downloads from the Internet. As a rule of thumb, Cisco recommends you create no more than ten classes of traffic.

Step 3.

Document your QoS policy, and make the policy available to your users. Then, for example, if a user complains that their network gaming applications are running slowly, you can point them to your corporate QoS policy, which describes how applications such as network gaming have best-effort treatment (that is, all other packet types take priority over these packet types).

Cisco allows you to fill your tool belt with multiple QoS tools (that is, QoS mechanisms). One goal of this chapter is to help you decide when to use one QoS tool versus another. All of the Cisco QoS features are categorized into one of three categories, as shown in Figure 6-2.

Figure 6-2. QoS Categories


The following is an explanation of these categories:

  • Best-Effort does not truly provide QoS. No reordering of packets occurs. Best-Effort uses the first-in, first-out (FIFO) queuing strategy, where packets are emptied from a queue (that is, a storage space on the router) in the same order they entered the queue.

  • Integrated Services (IntServ), often referred to as Hard QoS, can make strict bandwidth reservations. IntServ uses signaling among network devices to provide bandwidth reservations. Resource Reservation Protocol (RSVP) is an example of an IntServ approach to QoS. Because IntServ must be configured on every router along a packet's path, the main drawback of IntServ is its lack of scalability.

  • Differentiated Services (DiffServ), as the name suggests, differentiates between multiple traffic flows. Specifically, packets are marked, and routers and switches can then make decisions (for example, dropping or forwarding decisions) based on those markings. Because DiffServ does not make an explicit reservation, it is often called Soft QoS.

This chapter focuses on DiffServ, as opposed to IntServ or Best-Effort. Before examining the specific DiffServ QoS tools that can improve voice quality, first consider the following categories of QoS mechanisms:

  • Classification

  • Marking

  • Congestion management

  • Congestion avoidance

  • Policing and shaping

  • Link efficiency

Classification

Classification places traffic into different categories. Multiple characteristics can be used for classification. For example, point of presence 3 (POP3), Internet Message Access Protocol (IMAP), Simple Mail Transfer Protocol (SMTP), and Microsoft Exchange traffic could all be placed in an "EMAIL" class, while traffic entering the router on any serial interface could be placed in the "SERIAL" class. Classification does not, however, alter any bits in the frame or packet.

Marking

Marking manipulates bits within a frame, cell, or packet telling the network how to treat that traffic. Marking alone does not change how the network treats a packet. Other tools (for example, queuing tools) can, however, reference those markings and make forwarding or dropping decisions based on those markings.

Congestion Management

When you hear the term congestion management, think queuing. These concepts are one and the same. When an interface's output software queue contains packets, the interface's queuing strategy determines how the packets are emptied from the queue, as shown in Figure 6-3. For example, some traffic types can be given priority treatment (that is, sent out of the queue first), and bandwidth amounts can be made available for specific classes of traffic (for example, voice or video traffic).

Figure 6-3. Queuing


Congestion Avoidance

If an interface's output queue fills to capacity, newly arriving packets are discarded (that is, tail dropped), regardless of the priority assigned to the discarded packet. To prevent this behavior, Cisco employs a congestion avoidance technique called weighted random early detection (WRED). After the queue depth reaches a specific configurable level (that is, the minimum threshold) for a particular priority marking, WRED introduces the possibility of discard for packets with that priority marking. As the queue depth continues to increase, the possibility of discard increases until a configurable maximum threshold is reached. After the queue depth exceeds the maximum threshold for traffic with a specific priority, there is a 100 percent chance of discard for packets with that priority marking.

Policing and Shaping

Sometimes, instead of making a minimum amount of bandwidth available for specific traffic types, you might want to limit the available bandwidth. Both policing and shaping tools can accomplish this objective. Collectively, these tools are called traffic conditioners.

Policing can be used as packets go into or come out of a router, and policing typically discards packets exceeding the configured rate limit, which you can think of as a speed limit for particular traffic types. Because policing drops packets, resulting in retransmissions, policing is recommended for use on higher-speed interfaces (that is, greater than 2.048 Mbps).

Shaping buffers (that is, delays) traffic exceeding a configurable rate. Therefore, shaping is recommended for use on slower-speed interfaces (that is, equal to or less than 2.048 Mbps). Another distinction between shaping and policing is that policing can attempt to send packets exceeding a configured limit and mark those packets with a lower-priority marking.

Link Efficiency

To make the most of the limited bandwidth available on slower-speed links, you might choose to implement compression or Link Fragmentation and Interleaving (LFI), as illustrated in Figure 6-4. Using header compression on smaller packets, such as voice packets, can dramatically increase a link's available bandwidth.

Figure 6-4. Link Efficiency Mechanisms


LFI addresses the issue of serialization delay, which is the amount of time required for a packet to exit an interface. A large data packet, for example, on a slower-speed link (that is, less than 768 kbps) could create excessive delay for a voice packet, due to the time required for the data packet to exit the interface. LFI fragments large packets and interleaves smaller packets in amongst the fragments, reducing the serialization delay the smaller packets experience.




Voice over IP First-Step
Voice over IP First-Step
ISBN: 1587201569
EAN: 2147483647
Year: 2005
Pages: 138
Authors: Kevin Wallace

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net