<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Global Knowledge Training Blog &#187; Quality of Service (QOS)</title>
	<atom:link href="http://globalknowledgeblog.com/category/technology/cisco/quality-of-service/feed/" rel="self" type="application/rss+xml" />
	<link>http://globalknowledgeblog.com</link>
	<description>Your Source for Technical, Professional, &#38; Leadership Training</description>
	<lastBuildDate>Thu, 17 May 2012 17:34:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Five Must-Have Technologies for 2012</title>
		<link>http://globalknowledgeblog.com/technology/unified-communications/five-must-have-technologies-for-2012/</link>
		<comments>http://globalknowledgeblog.com/technology/unified-communications/five-must-have-technologies-for-2012/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 13:23:00 +0000</pubDate>
		<dc:creator>Guest Authors</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[FIREWALL]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Routing & Switching]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unified Communications]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://globalknowledgeblog.com/?p=5040</guid>
		<description><![CDATA[Is your network ready for the New Year? In order to be fully prepared, your business may need these technologies to move forward:]]></description>
			<content:encoded><![CDATA[<p><a href="http://globalknowledgeblog.com/wp-content/uploads/2011/11/abstracteyes.jpg"><img class="alignright size-full wp-image-4976" title="abstracteyes" src="http://globalknowledgeblog.com/wp-content/uploads/2011/11/abstracteyes.jpg" alt="" width="300" height="300" /></a>Is your network ready for the New Year? In order to be fully prepared, your business may need these technologies to move forward:</p>
<ol start="1">
<li><strong>Reliable and secure Wi-Fi access.</strong> Smartphones, tablets, and wireless IP phones need the speed and stability of <a href="http://www.cisco.com/cisco/web/solutions/small_business/resource_center/articles/do_business_better/get_better_and_faster/index.html">Wireless-N</a> (802.11n) network access, as well as quality of service (QoS) support. <a href="http://www.cisco.com/en/US/products/ps11025/index.html">Some wireless routers</a> integrate security — such as VLANs, firewall, VPN, and security services — to increase and simplify your control.</li>
<li><strong>Power over Ethernet (PoE).</strong> PoE juices up a network in two ways: It gives you more flexibility locating wireless access points and other wired devices, and it adds more power per port to support higher-draw technologies such as Wireless-N.</li>
<li><strong>Stronger network security. </strong>Mobility, social networking, cloud services, and international hacking are growing. Is your security technology keeping pace? Essential technologies include content security, firewall, VPN, and VLANs. Integrated security solutions can increase application performance and give you better control.</li>
<li><strong>Collaborative communications.</strong> Businesses can reduce operating costs and raise productivity by through <a href="http://www.cisco.com/cisco/web/solutions/small_business/products/voice_conferencing/index.html">unified communications</a> and <a href="http://www.webex.com/" target="_blank">video and audio conferencing applications</a>. Collaboration technologies demand high-performance, high-availability connections and reliable, intuitive user devices, ranging from <a href="http://www.cisco.com/cisco/web/solutions/small_business/products/voice_conferencing/SPA_300/index.html">basic IP phones</a> to <a href="http://www.cisco.com/cisco/web/solutions/small_business/products/voice_conferencing/unified_ip_phones_7900_series/index.html">unified IP phones</a>.</li>
<li><strong>High-performance, high-availability connections.</strong> Businesses that use mobile devices, cloud applications, or IP voice or video require a fast and efficient traffic flow. If you want to optimize your traffic flow by investing in a new router or switch (or DNS server), it should include support for <strong><a href="http://www.cisco.com/cisco/web/solutions/small_business/resource_center/articles/do_business_better/transition_to_ipv6/index.html">IPv6.</a></strong><em></em></li>
</ol>
<p><em>Recreated with permission from <a href="http://www.cisco.com/cisco/web/solutions/small_business/resource_center/articles/do_business_better/top10trends/index.html" target="_blank">Cisco.com</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/unified-communications/five-must-have-technologies-for-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ASA Service Policies with Priority and Policing</title>
		<link>http://globalknowledgeblog.com/technology/cisco/asa-service-policies-with-priority-and-policing/</link>
		<comments>http://globalknowledgeblog.com/technology/cisco/asa-service-policies-with-priority-and-policing/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 19:50:06 +0000</pubDate>
		<dc:creator>Doug McKillip</dc:creator>
				<category><![CDATA[ASA Appliance]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASDM]]></category>
		<category><![CDATA[policies]]></category>

		<guid isPermaLink="false">http://globalknowledgeblog.com/?p=2534</guid>
		<description><![CDATA[As is sometimes the case, the idea for this article originated with a student question I received during one of the Securing Networks with ASA Fundamentals classes I have taught this summer. The course material mentions a simple scenario whereby IP Telephony traffic is given priority out of an interface to satisfy the Quality of [...]]]></description>
			<content:encoded><![CDATA[<p>As is sometimes the case, the idea for this article originated with a student question I received during one of the <a href="http://www.globalknowledge.com/training/course.asp?pageid=9&amp;courseid=11148&amp;catid=206&amp;country=United+States">Securing Networks with ASA Fundamentals</a> classes I have taught this summer. The course material mentions a simple scenario whereby IP Telephony traffic is given priority out of an interface to satisfy the Quality of Service (QoS) requirement for acceptable performance. The student asked something along the lines of</p>
<blockquote><p>“…suppose I wanted to prioritize two different traffic types…could I set limits as to the maximum bandwidth used by at least one of the flows?”</p></blockquote>
<p>Well, the answer to that question is a resounding “YES”.</p>
<p>As the screenshot below indicates, the QoS tab of the Service Policy Rule Wizard uses check boxes instead of radio buttons.  Radio buttons are “either-or” options vs. check boxes which are multi-option.</p>
<p style="text-align: center;">
<p>When the check box for <strong>Enable priority for this flow</strong> is marked, the pop-up warning that appears above is seen. Two interface configuration commands can be used to enable priority queuing:<em> queue-limit </em><em>&lt;num-packets&gt;</em> and <em>tx-ring-limit &lt;num-packets&gt;</em> where “num-packets” is the number of packets.</p>
<p>Beneath the priority checkbox, both input and output policing and default values are shown. Although priority queuing is only applicable to egress packets, policing can be done for both ingress and egress traffic. While the Committed Rate is left blank, we would expect the default behaviors of transmit when this configured value is obeyed and drop when this value is exceeded – and they are.</p>
<p>There is some interesting history behind the <strong>Burst Size</strong> parameter. For a number of years the VPN Concentrator had (past tense here since the product is EoS) been configurable for bandwidth management. The training associated with this product recommended that the instantaneous burst size be set to 1.5 times the committed rate in bytes/sec. As an example, if the committed rate was 56Kbps, the recommended burst size <em>was</em> (56000/8)*1.5 = 10,500 <strong>bytes</strong>.</p>
<p>Newer QoS literature (especially the Cisco Press book on this topic) has changed these recommendations. Cisco IOS<sup>®</sup> chooses a default value for the burst size, if omitted, to the value of CIR/32 (where CIR would be our Committed Rate) or 1500, whichever is larger. As we can see here, the ASA chooses 1500 which must be manually overridden regardless of the value entered above for the <strong>Committed Rate</strong>.</p>
<p><strong>References:</strong></p>
<p><a href="http://www.ciscopress.com/articles/article.asp?p=352991&amp;seqNum=9">Cisco IP Telephony — Weighted Random Early Detection</a></p>
<p><a href="http://www.cisco.com/en/US/docs/security/asdm/6_2/user/guide/svcrules.html">Configuring Service Policy Rules using ASDM6.2</a></p>
<p><strong>Related Courses:</strong></p>
<p><a title="ASAE - ASA Essentials Course" href="http://www.globalknowledge.com/training/course.asp?pageid=9&amp;courseid=15747&amp;catid=206&amp;country=United+States " target="_blank">ASAE — ASA Essentials</a></p>
]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/cisco/asa-service-policies-with-priority-and-policing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>QOS Bandwidth vs Bandwidth Remaining</title>
		<link>http://globalknowledgeblog.com/technology/unified-communications/qos-bandwidth-vs-bandwidth-remaining/</link>
		<comments>http://globalknowledgeblog.com/technology/unified-communications/qos-bandwidth-vs-bandwidth-remaining/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 13:45:32 +0000</pubDate>
		<dc:creator>Joe Parlas</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unified Communications]]></category>
		<category><![CDATA[bandwidth]]></category>

		<guid isPermaLink="false">http://ciscoblog.globalknowledge.com/?p=1468</guid>
		<description><![CDATA[There tends to be confusion on how Bandwidth (BW) versus Bandwidth Remaining is actually calculated, and which is best to use in defining bandwidth requirements within a CBWFQ system or LLQ. In order to clarify the differences, let’s look at a typical configuration which could easily explain how bandwidth is calculated; and then look what the [...]]]></description>
			<content:encoded><![CDATA[<p>There tends to be confusion on how <strong>Bandwidth </strong>(BW) versus <strong>Bandwidth Remaining </strong>is actually calculated, and which is best to use in defining bandwidth requirements within a CBWFQ system or LLQ. In order to clarify the differences, let’s look at a typical configuration which could easily explain how bandwidth is calculated; and then look what the total bandwidth that would be allocated when congestion begins outbound of the configured interface.</p>
<p><strong>BW percent example </strong></p>
<p>The mission-critical class gets a 200 Kbps bandwidth reservation since it is given a fixed sum guarantee of 20 percent.  20 percent of 1000k would be 200 kbps, so the voice priority class gets a maximum 200 kbps, mission critical receives 200 kpbs, the class interactive receives 100 kpbs and finally the class-default receives 250kpbs.</p>
<pre>policy-map egressclassvoip class mission-critical
bandwidth percent 20
class interactive
bandwidth percent 10
class class-default
bandwidth percent 25
!
int s0/0
bandwidth 1000
service-policy output egress</pre>
<p><strong>BW Remaining example </strong></p>
<p><span id="more-1468"></span>See how bandwidth will be calculated when assigning the bandwidth always based upon an remaining value.  Let’s consider the same example from above but change it from <strong>bandwidth percent</strong> to <strong><em>remaining </em>bandwidth percent</strong>:</p>
<pre>policy-map egress
classvoip
priority percent 20
class mission-critical
bandwidth remaining percent 20
class interactive
bandwidth remaining percent 10
class class-default
bandwidth remaining percent 70
!
int s0/0
bandwidth 1000
service-policy output egress</pre>
<p>Notice that the voice class still has a fixed sum guarantee of 20 percent of the interface configured bandwidth — .20 *  1000kpbs which is 200kpbs.</p>
<p>But now we have to calculate the max reserve bandwidth since this must deducted first before determining the bandwidth remaining.  As a reminder, the <strong>maximum reserved</strong> is how much you can ever reserve using the bandwidth or bandwidth percent statements. Cisco defines this formula as</p>
<p style="text-align: center;"><strong>Bandwidth available =<br /> Bandwidth fixed sum guarantees – Max Reserve (75% of bandwidth by default) </strong></p>
<p>Applying the formula to our example, we have 750Kpbs – 200 kpbs = 550kpbs.  Now the 550 kpbs will be divided out based upon the pre-defined percentages fore each class. Therefore, the Mission Critical class would receive (.20)(550 kpbs) = 110 kpbs, the class interactive will be 55 kpbs, and the class-default would receive 385 kpbs.</p>
<p>Also, if any class doesn’t use its full bandwidth allocation, the leftover will automatically be distributed to the other classes proportionally, based upon the configured percentages.</p>
<p><strong>Author: Joe Parlas</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/unified-communications/qos-bandwidth-vs-bandwidth-remaining/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quality of Service Part 14 – MQC Pop Quiz Answer</title>
		<link>http://globalknowledgeblog.com/technology/unified-communications/qos-14-mqc-pop-quiz-answer/</link>
		<comments>http://globalknowledgeblog.com/technology/unified-communications/qos-14-mqc-pop-quiz-answer/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 13:03:43 +0000</pubDate>
		<dc:creator>Paul Stryer</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unified Communications]]></category>

		<guid isPermaLink="false">http://ciscoblog.globalknowledge.com/?p=1229</guid>
		<description><![CDATA[Entry number 13 of this series offered a challenging pop quiz on how to configure QoS on a Cisco router using Modular QoS Command Line Interface (MQC) queuing mechanisms. Here is the pop quiz question with the answer in the CLI output below. Author: Paul Stryer On the HQ WAN router, configure the appropriate MQC [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/03/ex11.jpg"><img class="alignleft size-full wp-image-1225" title="ex1" src="http://globalknowledgeblog.com/wp-content/uploads/2010/03/ex11.jpg" alt="" width="304" height="270" /></a></p>
<p>Entry number 13 of this series offered a challenging pop quiz on how to configure QoS on a Cisco router using Modular QoS Command Line Interface (MQC) queuing mechanisms.</p>
<p>Here is the pop quiz question with the answer in the CLI output below.</p>
<p><strong>Author: Paul Stryer</strong></p>
<p>On the HQ WAN router, configure the appropriate MQC based queuing mechanism for the outbound traffic to the WAN s0/0, so that the following requirements will be met.</p>
<p>Only add the QoS commands to the below configuration, assume everything else needed for the network is finished or will be put in later.</p>
<ul>
<li>Class Map for voice that matches RTP, EF, CS3, and AF31</li>
<li>Class Map for Bulk that matches FTP, and aF11</li>
<li>Class map for Interactive that matches Citrix, and af21</li>
<li>Name the policy: qos-policy</li>
<li>Voice Traffic: 128 Kbps Maximum, use the IOS default burst values</li>
<li>Interactive Traffic: 30 Kbps minimum</li>
<li>Bulk Traffic: 24 Kbps minimum, also limit traffic to an average rate of 24 kbps by buffering excess traffic. Use the IOS default BC and BE</li>
<li>Class-Default: Weighted Fair Queue with no bandwidth guarantee</li>
</ul>
<p>Here is the basic configuration of the HQ router.</p>
<pre>HQ#sh run
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname HQ
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
ip cef
!
multilink bundle-name authenticated
!
archive
log config
hidekeys
!

<strong><span style="color: #ff0000;">class-map match-any bulk match protocol ftp match ip dscp af11 class-map match-any interactive match protocol citrix match ip dscp af21 class-map match-any voice match protocol rtp match ip dscp cs3  af31  ef ! policy-map qos-policy class voice priority 128 class interactive bandwidth 30 class bulk bandwidth 16 shape average 24000 class class-default fair-queue !</span></strong>
interface FastEthernet0/0
ip address 192.168.100.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
bandwidth 384
ip address 10.11.12.1 255.255.255.254
encapsulation ppp
clock rate 2000000
<strong><span style="color: #ff0000;">service-policy output qos-policy</span></strong>
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
ip http server
no ip http secure-server
!
control-plane
!
line con 0
line aux 0
line vty 0 4
!
webvpn cef
!
end</pre>
 <div class=’series_links’> </div><div class=’series_toc’><h3>QoS Series</h3><ul><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-1/' title='Quality of Service, Part 1'>Quality of Service, Part 1</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-qos-part-2/' title='Quality of Service (QoS) Part 2'>Quality of Service (QoS) Part 2</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-3/' title='Quality of Service, Part 3'>Quality of Service, Part 3</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-mechanisms/' title='QoS Part 4 – QoS Mechanisms'>QoS Part 4 – QoS Mechanisms</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-5-classification/' title='Quality of Service Part 5 – Classification'>Quality of Service Part 5 – Classification</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-6-marking/' title='Quality of Service, Part 6 – Marking'>Quality of Service, Part 6 – Marking</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-7-service-policy/' title='Quality of Service Part 7: Service Policy'>Quality of Service Part 7: Service Policy</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-8-congestion-management/' title='Quality of Service Part 8: Congestion Management'>Quality of Service Part 8: Congestion Management</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-9-%e2%80%93-fifo-queuing/' title='Quality of Service, Part 9 – FIFO Queuing'>Quality of Service, Part 9 – FIFO Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-10-%e2%80%93-weighted-fair-queuing/' title='Quality of Service, Part 10 – Weighted Fair Queuing'>Quality of Service, Part 10 – Weighted Fair Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-11-cbwfq/' title='Quality of Service, Part 11: CBWFQ'>Quality of Service, Part 11: CBWFQ</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-12-low-latency-queuing/' title='Quality of Service, Part 12 – Low Latency Queuing'>Quality of Service, Part 12 – Low Latency Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-13-%e2%80%93-mqc-pop-quiz/' title='Quality of Service Part 13 – MQC Pop Quiz'>Quality of Service Part 13 – MQC Pop Quiz</a></li><li>Quality of Service Part 14 – MQC Pop Quiz Answer</li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/unified-communications/qos-14-mqc-pop-quiz-answer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Defining QOS (Quality of Service)</title>
		<link>http://globalknowledgeblog.com/technology/unified-communications/defining-qos-quality-of-service/</link>
		<comments>http://globalknowledgeblog.com/technology/unified-communications/defining-qos-quality-of-service/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 12:39:54 +0000</pubDate>
		<dc:creator>Guest Authors</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[IT Basics]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unified Communications]]></category>

		<guid isPermaLink="false">http://ciscoblog.globalknowledge.com/?p=1385</guid>
		<description><![CDATA[Global Knowledge Course Director and Lab Topology Architect Joey DeWiele, a specialist in Unified Communications, defines QOS. [youtube=http://www.youtube.com/watch?v=HKWLrttpPOY]]]></description>
			<content:encoded><![CDATA[<p>Global Knowledge Course Director and Lab Topology Architect Joey DeWiele, a specialist in Unified Communications, defines QOS.</p>
<p>[youtube=http://www.youtube.com/watch?v=HKWLrttpPOY]</p>
]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/unified-communications/defining-qos-quality-of-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quality of Service Part 13 – MQC Pop Quiz</title>
		<link>http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-13-%e2%80%93-mqc-pop-quiz/</link>
		<comments>http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-13-%e2%80%93-mqc-pop-quiz/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 16:31:53 +0000</pubDate>
		<dc:creator>Paul Stryer</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unified Communications]]></category>

		<guid isPermaLink="false">http://ciscoblog.globalknowledge.com/?p=1222</guid>
		<description><![CDATA[The past 12 entries of this blog series have explored QoS theory and how to configure QoS on Cisco routers. By popular demand, I have created a pop quiz on how to configure QoS on a Cisco router using Modular QoS Command Line Interface (MQC) queuing mechanisms. Here is how the pop quiz will work. [...]]]></description>
			<content:encoded><![CDATA[<p>The past 12 entries of this blog series have explored QoS theory and how to configure QoS on Cisco routers. By popular demand, I have created a pop quiz on how to configure QoS on a Cisco router using Modular QoS Command Line Interface (MQC) queuing mechanisms.</p>
<p><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/03/ex11.jpg"><img class="alignleft size-full wp-image-1225" title="ex1" src="http://globalknowledgeblog.com/wp-content/uploads/2010/03/ex11.jpg" alt="" width="304" height="270" /></a>Here is how the pop quiz will work. The question will be posed in this entry, number 13 in the QoS series. You can post your answers in the comments section below this text. The answer to the question will be posted in entry number 14 of this QoS series.</p>
<p>Here is the pop quiz question – Good Luck!</p>
<p><strong>Author: Paul Stryer</strong></p>
<p><span id="more-1222"></span>On the HQ WAN router, configure the appropriate MQC based queuing mechanism for the outbound traffic to the WAN s0/0, so that the following requirements will be met.</p>
<p>Only add the QoS commands to the below configuration, assume everything else needed for the network is finished or will be put in later.</p>
<ul>
<li>Class Map for voice that matches RTP, EF, CS3, and AF31</li>
<li>Class Map for Bulk that matches FTP, and aF11</li>
<li>Class map for Interactive that matches Citrix, and af21</li>
<li>Name the policy: qos-policy</li>
<li>Voice Traffic: 128 Kbps Maximum, use the IOS default burst values</li>
<li>Interactive Traffic: 30 Kbps minimum</li>
<li>Bulk Traffic: 24 Kbps minimum, also limit traffic to an average rate of 24 kbps by buffering excess traffic. Use the IOS default BC and BE</li>
<li>Class-Default: Weighted Fair Queue with no bandwidth guarantee</li>
</ul>
<p>Here is the basic configuration of the HQ router.</p>
<pre>HQ#sh run
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname HQ
!
boot-start-marker
boot-end-marker
!
no aaa new-model
memory-size iomem 5
ip cef
!
multilink bundle-name authenticated
!
archive
log config
hidekeys
!
interface FastEthernet0/0
ip address 192.168.100.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0
bandwidth 384
ip address 10.11.12.1 255.255.255.254
encapsulation ppp
clock rate 2000000
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
clock rate 2000000
!
ip http server
no ip http secure-server
!
control-plane
!
line con 0
line aux 0
line vty 0 4
!
webvpn cef
!
end</pre>
 <div class=’series_links’> </div><div class=’series_toc’><h3>QoS Series</h3><ul><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-1/' title='Quality of Service, Part 1'>Quality of Service, Part 1</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-qos-part-2/' title='Quality of Service (QoS) Part 2'>Quality of Service (QoS) Part 2</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-3/' title='Quality of Service, Part 3'>Quality of Service, Part 3</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-mechanisms/' title='QoS Part 4 – QoS Mechanisms'>QoS Part 4 – QoS Mechanisms</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-5-classification/' title='Quality of Service Part 5 – Classification'>Quality of Service Part 5 – Classification</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-6-marking/' title='Quality of Service, Part 6 – Marking'>Quality of Service, Part 6 – Marking</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-7-service-policy/' title='Quality of Service Part 7: Service Policy'>Quality of Service Part 7: Service Policy</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-8-congestion-management/' title='Quality of Service Part 8: Congestion Management'>Quality of Service Part 8: Congestion Management</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-9-%e2%80%93-fifo-queuing/' title='Quality of Service, Part 9 – FIFO Queuing'>Quality of Service, Part 9 – FIFO Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-10-%e2%80%93-weighted-fair-queuing/' title='Quality of Service, Part 10 – Weighted Fair Queuing'>Quality of Service, Part 10 – Weighted Fair Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-11-cbwfq/' title='Quality of Service, Part 11: CBWFQ'>Quality of Service, Part 11: CBWFQ</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-12-low-latency-queuing/' title='Quality of Service, Part 12 – Low Latency Queuing'>Quality of Service, Part 12 – Low Latency Queuing</a></li><li>Quality of Service Part 13 – MQC Pop Quiz</li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-14-mqc-pop-quiz-answer/' title='Quality of Service Part 14 – MQC Pop Quiz Answer'>Quality of Service Part 14 – MQC Pop Quiz Answer</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-13-%e2%80%93-mqc-pop-quiz/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quality of Service, Part 12 – Low Latency Queuing</title>
		<link>http://globalknowledgeblog.com/technology/unified-communications/qos-12-low-latency-queuing/</link>
		<comments>http://globalknowledgeblog.com/technology/unified-communications/qos-12-low-latency-queuing/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 14:54:53 +0000</pubDate>
		<dc:creator>Paul Stryer</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unified Communications]]></category>

		<guid isPermaLink="false">http://ciscoblog.globalknowledge.com/?p=1142</guid>
		<description><![CDATA[Part 11 of this blog series looked at Class Based Weighted Fair Queuing. This blog will explore the next queue mechanism; Low Latency Queuing (LLQ). As seen in the previous section of this QoS series, CBWFQ provides user defined traffic classes allowing for more control and functionality than weighted Fair Queuing. CBWFQ uses matching criteria [...]]]></description>
			<content:encoded><![CDATA[<p>Part 11 of this blog series looked at Class Based Weighted Fair Queuing. This blog will explore the next queue mechanism; Low Latency Queuing (LLQ).</p>
<p><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/ss12.jpg"><img class="alignleft size-full wp-image-1145" title="ss1" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/ss12.jpg" alt="" width="317" height="190" /></a>As seen in the previous section of this QoS series, CBWFQ provides user defined traffic classes allowing for more control and functionality than weighted Fair Queuing. CBWFQ uses matching criteria obtained by Network Based Application Recognition (NBAR), or access control lists (ACLs). A queue is reserved for each class and matching traffic is directed to that queue.</p>
<p><strong>Low Latency Queuing</strong><br />
LLQ adds strict priority to the CBWFQ and allows delay sensitive data (Voice and Video) to be dequeued and sent before lower priority packets. This practice gives delay sensitive data preferential treatment over other traffic. To direct traffic to the LLQ, use the priority command for the class after the named class within a policy map is specified. Any class of traffic can be attached to a service policy, which uses priority scheduling, and that traffic can be prioritized over other class traffic.</p>
<p>When you specify the priority command for a class, it takes a bandwidth argument that gives maximum bandwidth in kilobits per second (kbps). Use this parameter to specify the maximum amount of bandwidth allocated for packets belonging to the class configured with the priority command. The bandwidth parameter both guarantees bandwidth to the priority class and restrains the flow of packets from the priority class.</p>
<p>Without Low Latency Queueing, CBWFQ provides weighted fair queuing based on defined classes with no strict priority queue available for real-time traffic. CBWFQ allows you to define traffic classes and then assign characteristics to that class. For CBWFQ all packets are serviced fairly based on weight; no class of packets may be granted strict priority. This scheme poses problems for voice traffic that is largely intolerant of delay, especially variation in delay. For voice traffic, variations in delay introduce irregularities of transmission manifesting as jitter in the heard conversation.</p>
<p><strong>LLQ Configuration </strong><br />
<a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code12.jpg"><img class="aligncenter size-full wp-image-1143" title="code1" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code12.jpg" alt="" width="264" height="475" /></a></p>
<p>In this configuration notice that the Class-Map VoIP sets the IP Precedence of 5, which sets all traffic with an IPP of 5 to this class. The priority command within the policy-map indicates the VoIP Class is a Priority Queue (PQ) and this traffic will get priority over other queues. In this example, the priority is set to 10% of the bandwidth for this traffic.</p>
<p><strong>Priority Bandwidth</strong> = Allocates a fixed amount of bandwidth to a class to ensure expedited forwarding.<br />
<strong>Priority Percent</strong> = Allocates a percentage of the configured or default interface bandwidth to ensure expedited forwarding.</p>
<p style="text-align: left;"><strong>LLQ Show Command</strong></p>
<p style="text-align: left;"><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code22.jpg"><img class="size-full wp-image-1144   aligncenter" title="code2" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code22.jpg" alt="" width="500" height="356" /></a></p>
<p><strong>Author: Paul Stryer</strong></p>
<p><strong>References</strong></p>
<ul>
<li><a href="http://www.cisco.com/en/US/docs/ios/qos/configuration/guide/12_4t/qos_12_4t_book.html" target="_blank">Cisco IOS Quality of Service Solutions Configuration Guide</a>, Release 12.4T</li>
<li><em>End-To-End QoS network Design</em>, by Tim Szigeti and Christina Hattingh – ISBN # 1–58705-176–1</li>
<li><a href="http://www.cisco.com/en/US/technologies/tk543/tk766/technologies_white_paper09186a00800a3e2f.html" target="_blank">DiffServ – The Scalable End-To-End QoS Model</a></li>
<li><a href="http://www.ietf.org/rfc/rfc1633.txt">Integrated Services Architecture</a></li>
<li><a href="http://www.ietf.org/rfc/rfc2474.txt" target="_blank">Definition of the Differentiated Services Field</a></li>
<li><a href="http://www.ietf.org/rfc/rfc2475.txt" target="_blank">An Architecture for Differentiated Services</a></li>
<li><a href="http://www.ietf.org/rfc/rfc1812.txt" target="_blank">Requirements for IP Version 4 Routers</a></li>
<li><a href="http://www.ietf.org/rfc/rfc3246.txt" target="_blank">An Expedited Forwarding PHB (Per-Hop Behavior)</a></li>
</ul>
 <div class=’series_links’> </div><div class=’series_toc’><h3>QoS Series</h3><ul><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-1/' title='Quality of Service, Part 1'>Quality of Service, Part 1</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-qos-part-2/' title='Quality of Service (QoS) Part 2'>Quality of Service (QoS) Part 2</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-3/' title='Quality of Service, Part 3'>Quality of Service, Part 3</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-mechanisms/' title='QoS Part 4 – QoS Mechanisms'>QoS Part 4 – QoS Mechanisms</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-5-classification/' title='Quality of Service Part 5 – Classification'>Quality of Service Part 5 – Classification</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-6-marking/' title='Quality of Service, Part 6 – Marking'>Quality of Service, Part 6 – Marking</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-7-service-policy/' title='Quality of Service Part 7: Service Policy'>Quality of Service Part 7: Service Policy</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-8-congestion-management/' title='Quality of Service Part 8: Congestion Management'>Quality of Service Part 8: Congestion Management</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-9-%e2%80%93-fifo-queuing/' title='Quality of Service, Part 9 – FIFO Queuing'>Quality of Service, Part 9 – FIFO Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-10-%e2%80%93-weighted-fair-queuing/' title='Quality of Service, Part 10 – Weighted Fair Queuing'>Quality of Service, Part 10 – Weighted Fair Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-11-cbwfq/' title='Quality of Service, Part 11: CBWFQ'>Quality of Service, Part 11: CBWFQ</a></li><li>Quality of Service, Part 12 – Low Latency Queuing</li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-13-%e2%80%93-mqc-pop-quiz/' title='Quality of Service Part 13 – MQC Pop Quiz'>Quality of Service Part 13 – MQC Pop Quiz</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-14-mqc-pop-quiz-answer/' title='Quality of Service Part 14 – MQC Pop Quiz Answer'>Quality of Service Part 14 – MQC Pop Quiz Answer</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/unified-communications/qos-12-low-latency-queuing/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Quality of Service, Part 11: CBWFQ</title>
		<link>http://globalknowledgeblog.com/technology/unified-communications/qos-11-cbwfq/</link>
		<comments>http://globalknowledgeblog.com/technology/unified-communications/qos-11-cbwfq/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 15:36:16 +0000</pubDate>
		<dc:creator>Paul Stryer</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unified Communications]]></category>

		<guid isPermaLink="false">http://ciscoblog.globalknowledge.com/?p=1125</guid>
		<description><![CDATA[Part 10 of this blog series looked at Weighted Fair Queuing, so now we move on to the next queue mechanism; Class Based Weighted Fair Queuing (CBWFQ). CBWFQ provides user defined traffic classes allowing for more control and functionality then weighted Fair Queuing. CBWFQ uses matching criteria obtained by Network Based Application Recognition (NBAR), or [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://globalknowledgeblog.com/?p=1118" target="_blank">Part 10</a> of this blog series looked at Weighted Fair Queuing, so now we move on to the next queue mechanism; Class Based Weighted Fair Queuing (CBWFQ).</p>
<p><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/ex1.jpg"><img class="alignleft size-full wp-image-1127" title="ex1" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/ex1.jpg" alt="" width="239" height="204" /></a>CBWFQ provides user defined traffic classes allowing for more control and functionality then weighted Fair Queuing. CBWFQ uses matching criteria obtained by Network Based Application Recognition (NBAR), or access control lists (ACLs). A queue is reserved for each class and matching traffic is directed to that queue.</p>
<p>Low Latency Queuing (LLQ) adds priority to the CBWFQ and allows delay sensitive data to be dequeued and sent before lower priority packets, giving delay sensitive data preferential treatment over other traffic. LLQ will be discussed in the next part of this QoS series.</p>
<p><strong>Class Based Weighted Fair Queuing</strong><br /> Once the packets have been matched and the class is defined, a characteristic is assigned to the class. The characteristics that are assigned are bandwidth, weight, and maximum packet limit. The bandwidth is the minimum bandwidth delivered to the class during congestion, and the maximum packets is how many packets are allowed to accumulate in the class queue before tail drops start happening to the worst finish time packets.</p>
<p>CBWFQ supports multiple class maps to classify traffic, with tail drop being the default dropping scheme. Weighted random early detection (WRED) can be used with CBWFQ to prevent class congestion. Guaranteed bandwidth is configured by weights and assigned to traffic classes. The following weights can be used to specify class weight. The reserve default is set to 75%, and must be within the allocated bandwidth. Single service policies cannot mix fixed bandwidth and bandwidth percentages commands.</p>
<ul>
<li>Bandwidth = This command allocates a fixed amount of bandwidth and the reserve bandwidth is subtracted from the available bandwidth of the interface where the service policy is used.</li>
<li>Bandwidth percent = This command is used to allocate a percentage of the default or available bandwidth of an interface.</li>
<li>Bandwidth remaining percent = This command allocates a portion of the unallocated bandwidth.</li>
</ul>
<p><strong><span id="more-1125"></span>CBWFQ Best Practice</strong><br /> Cisco has set a best practice called the 75% Rule to help guide the configuration of CBWFQ on Cisco routers. The network administrator configuring CBWFQ should add up the bandwidth requirements for each major application such as voice, video and data. This sum should represent the minimum bandwidth requirements for any given link. This bandwidth calculation should not exceed 75% of the total available bandwidth for the link or Committed Information Rate for Frame Relay and ATM. This rule allows 25% overhead for routing protocols, layer 2 keep-alives and class default traffic. The Max-rerserved bandwidth command can override the 75% limitation set by default for most interfaces, but is not recommend.</p>
<p><strong>CBWFQ Configuration</strong></p>
<p><strong><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code11.jpg"><img class="aligncenter size-full wp-image-1129" title="code1" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code11.jpg" alt="" width="500" height="293" /></a></strong></p>
<ul>
<li>Bandwidth = Sets a fixed amount of bandwidth in kbps</li>
<li>Bandwidth percent = Allocates a percentage of the bandwidth to a class based on the interface bandwidth</li>
<li>Bandwidth percent remaining = Allocates the percentage or remaining bandwidth to a class</li>
<li>Queue Limit = Maximum packets a queue can hold with the default being 64</li>
</ul>
<p><strong>CBWFQ Show Command</strong></p>
<p><strong><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code21.jpg"><img class="aligncenter size-full wp-image-1130" title="code2" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code21.jpg" alt="" width="500" height="264" /></a></strong></p>
<p>The next blog in this QoS series will discuss Low Latency queuing (LLQ).</p>
<p><strong>Author: Paul Stryer</strong></p>
<p><strong>References</strong></p>
<ul>
<li><a href="http://www.cisco.com/en/US/docs/ios/qos/configuration/guide/12_4t/qos_12_4t_book.html" target="_blank">Cisco IOS Quality of Service Solutions Configuration Guide</a>, Release 12.4T</li>
<li><em>End-To-End QoS network Design</em>, by Tim Szigeti and Christina Hattingh – ISBN # 1–58705-176–1</li>
<li><a href="http://www.cisco.com/en/US/technologies/tk543/tk766/technologies_white_paper09186a00800a3e2f.html" target="_blank">DiffServ – The Scalable End-To-End QoS Model</a></li>
<li><a href="http://www.ietf.org/rfc/rfc1633.txt">Integrated Services Architecture</a></li>
<li><a href="http://www.ietf.org/rfc/rfc2474.txt" target="_blank">Definition of the Differentiated Services Field</a></li>
<li><a href="http://www.ietf.org/rfc/rfc2475.txt" target="_blank">An Architecture for Differentiated Services</a></li>
<li><a href="http://www.ietf.org/rfc/rfc1812.txt" target="_blank">Requirements for IP Version 4 Routers</a></li>
<li><a href="http://www.ietf.org/rfc/rfc3246.txt" target="_blank">An Expedited Forwarding PHB (Per-Hop Behavior)</a></li>
</ul>
 <div class=’series_links’> </div><div class=’series_toc’><h3>QoS Series</h3><ul><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-1/' title='Quality of Service, Part 1'>Quality of Service, Part 1</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-qos-part-2/' title='Quality of Service (QoS) Part 2'>Quality of Service (QoS) Part 2</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-3/' title='Quality of Service, Part 3'>Quality of Service, Part 3</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-mechanisms/' title='QoS Part 4 – QoS Mechanisms'>QoS Part 4 – QoS Mechanisms</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-5-classification/' title='Quality of Service Part 5 – Classification'>Quality of Service Part 5 – Classification</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-6-marking/' title='Quality of Service, Part 6 – Marking'>Quality of Service, Part 6 – Marking</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-7-service-policy/' title='Quality of Service Part 7: Service Policy'>Quality of Service Part 7: Service Policy</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-8-congestion-management/' title='Quality of Service Part 8: Congestion Management'>Quality of Service Part 8: Congestion Management</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-9-%e2%80%93-fifo-queuing/' title='Quality of Service, Part 9 – FIFO Queuing'>Quality of Service, Part 9 – FIFO Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-10-%e2%80%93-weighted-fair-queuing/' title='Quality of Service, Part 10 – Weighted Fair Queuing'>Quality of Service, Part 10 – Weighted Fair Queuing</a></li><li>Quality of Service, Part 11: CBWFQ</li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-12-low-latency-queuing/' title='Quality of Service, Part 12 – Low Latency Queuing'>Quality of Service, Part 12 – Low Latency Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-13-%e2%80%93-mqc-pop-quiz/' title='Quality of Service Part 13 – MQC Pop Quiz'>Quality of Service Part 13 – MQC Pop Quiz</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-14-mqc-pop-quiz-answer/' title='Quality of Service Part 14 – MQC Pop Quiz Answer'>Quality of Service Part 14 – MQC Pop Quiz Answer</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/unified-communications/qos-11-cbwfq/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Quality of Service, Part 10 – Weighted Fair Queuing</title>
		<link>http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-10-%e2%80%93-weighted-fair-queuing/</link>
		<comments>http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-10-%e2%80%93-weighted-fair-queuing/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 15:36:45 +0000</pubDate>
		<dc:creator>Paul Stryer</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unified Communications]]></category>

		<guid isPermaLink="false">http://ciscoblog.globalknowledge.com/?p=1118</guid>
		<description><![CDATA[Last time we looked at First-In First-Out queue management, in this blog we’ll explore the next queue mechanism on our list: Weighted Fair Queuing (WFQ). WFQ is a flow-based queuing algorithm used in Quality of Service (QoS) that does two things simultaneously: It schedules interactive traffic to the front of the queue to reduce response [...]]]></description>
			<content:encoded><![CDATA[<p>Last time we looked at First-In First-Out queue management, in this blog we’ll explore the next queue mechanism on our list: Weighted Fair Queuing (WFQ).</p>
<p>WFQ is a flow-based queuing algorithm used in Quality of Service (QoS) that does two things simultaneously: It schedules interactive traffic to the front of the queue to reduce response time, and it fairly shares the remaining bandwidth between high bandwidth flows.</p>
<p>A stream of packets within a single session of a single application is known as flow or conversation. WFQ is a flow-based method that sends packets over the network and ensures packet transmission efficiency which is critical to the interactive traffic. This method automatically stabilizes network congestion between individual packet transmission flows. There are three types of WFQ:</p>
<ul>
<li>Flow based Weighted Fair Queuing</li>
<li>VIP distributed Weighted Fair Queuing</li>
<li>Class based Weighted Fair Queuing</li>
</ul>
<p>The WFQ method has the advantage of being fast, reliable and easy to implement. WFQ follows these main criteria:</p>
<ul>
<li>Dedicated queues for each flow (referred to as conversations), messages are sorted into conversations reducing starvation, delay, and jitter within the queue.</li>
<li>Allocating bandwidth fairly and accurately among all flows, reducing scheduling delay and guaranteeing service.</li>
<li>IP Precedence is used as weight when allocating bandwidth.</li>
</ul>
<p>Although bandwidth is allocated fairly among all flows, unfairness is reinstated by giving proportionately more bandwidth to flows with higher IP precedence or lower weight.</p>
<p>WFQ has to classify individual flows using the following information taken from the IP/TCP/UDP headers. These parameters are used as input for a hash algorithm that produces a fixed length number that is used as the index of the queue.</p>
<ul>
<li>Source IP address</li>
<li>Destination IP address</li>
<li>Protocol number to identify TCP or UDP</li>
<li>Type of service field</li>
<li>Source TCP/UDP port number</li>
<li>Destination TCP/UDP port number</li>
</ul>
<p><span id="more-1118"></span>There is a fixed number of per flow queues, and the hash algorithm translates flow parameters into a queue number. The number of dynamically allocated queues is based on the interface bandwidth configuration and can be configured in a range between 16 and 4096 in multiples of 2. Here is a list of default dynamic queues based on bandwidth.</p>
<p><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/grid1.jpg"><img class="aligncenter size-full wp-image-1119" title="grid1" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/grid1.jpg" alt="" width="267" height="182" /></a></p>
<p><strong>WFQ Insertion and Drop Policy</strong></p>
<p>WFQ uses two methods to drop packets, Early and Aggressive dropping. Early dropping is when the congestion discard threshold is reached and aggressive dropping is when the hold-queue out limit is reached. WFQ always drops<a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/flow.jpg"><img class="alignleft size-full wp-image-1120" title="flow" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/flow.jpg" alt="" width="331" height="195" /></a>packets of the most aggressive flows and uses the following two parameters to affect the way WFQ drops packets.</p>
<p>In this example, N is the number of packets in the WFQ system when the N-th packet arrives.</p>
<ul>
<li>Congestive discard Threshold (CDT) is used to start dropping packets of the most aggressive flows, even before the hold-queue limit is reached.</li>
<li>Hold-queue out limit (HQO) defines the maximum number of packets that can be in the WFQ system at any time.</li>
</ul>
<p><strong>WFQ Scheduling</strong></p>
<p>For scheduling purposes, in WFQ the length of the queue is not measured in packets but in the time it would take to transmit all the packets in the queue. WFQ adapts the number of flows and allocates equal amounts of bandwidth to each flow. Small packet flows which are usually interactive flows (voice and video) typically receive better service because they do not need a lot of bandwidth. They do need and receive low delay because smaller packets have a lower finish time.</p>
<p>Finish time is the sum of the current time and the time it takes to transmit the packet. Current time is zero if there are no packets in the queue. The first packet into this queue will have a finish time of current time + transmission time.</p>
<p>For example:</p>
<p style="padding-left: 30px;">Current time = 0ms (no packets in the queue)<br />
First packet = 100ms to transmit this packet<br />
Finish time = 0 + 100ms = 100ms</p>
<p style="padding-left: 30px;">Packet two comes into the queue<br />
Current time = 100ms<br />
2nd Packet = 20ms to transmit this packet<br />
Finish Time = 100ms + 20ms = 120ms</p>
<p>WFQ will place the packets into the hardware queue based on the finish time lowest to highest. The last piece is to use the finish time and the IP precedence to introduce the weight into the calculation of which queues will be serviced in which order.</p>
<p>The calculation to add weight is finish time divided by IP Precedence plus one (to prevent division by zero). In Cisco routers this calculation is done differently to decrease the load on the routers CPU. The Cisco router uses the packet size instead of the transmission time as they are proportional to each other. In addition, the packet size is not divided by IP Precedence; instead the packet size is multiplied by a fixed value (one value for each IP Precedence value). This is done because division is a CPU intensive operation in comparison to multiplication.</p>
<p><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/grid2.jpg"><img class="aligncenter size-full wp-image-1121" title="grid2" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/grid2.jpg" alt="" width="326" height="304" /></a></p>
<p><strong>Pros and Cons of WFQ</strong><br />
Pro</p>
<ul>
<li>Simple Configuration</li>
<li>Guarantees throughput to all flows</li>
<li>Drops packets of most aggressive flows</li>
<li>Supported on most Cisco platforms and all IOS versions</li>
</ul>
<p><strong>Con</strong></p>
<ul>
<li>Multiple flows can end up in one queue</li>
<li>Does not support the configuration of classifications</li>
<li>Cannot provide fixed bandwidth guarantees</li>
</ul>
<p><strong>WFQ Configuration</strong><br />
WFQ is enabled by default on all interfaces that have a default bandwidth of less than 2Mbps. Use the <strong>fair-queue</strong> command to enable WFQ on interfaces that do not have WFQ enabled.</p>
<pre>Router(config-if)# [cdt [dynamic-queues [reservable-queues]]]</pre>
<p>Congestive discard threshold (CDT) – Optional</p>
<ul>
<li>Number of packets allowed in the WFQ system before the router starts dropping new packets for the longest queue, with a value of 1 to 4096 (default 64)</li>
</ul>
<p>Dynamic-queues — Optional</p>
<ul>
<li>Number of dynamic queues, with values of 16,32,64,128,512,1024,2048,4096</li>
</ul>
<p>Reservable-queues — Optional<br />
• Number of reservable queues if the RSVP feature is configures on the interface, with values of 0 to 1000</p>
<pre>Router(config-if)# hold-queue max-limit out</pre>
<p>Hold-queue Max (HQO)</p>
<ul>
<li>Maximum number of packets that can be in all output queues on the interface at any time</li>
<li>Default is 1000</li>
</ul>
<p>In most cases the hold-queue limit will never be reached because the CDT will start dropping the most aggressive conversations.<strong> </strong></p>
<p><strong>WFQ Show Commands</strong></p>
<pre>Router#show interface interface</pre>
<p style="text-align: center;"><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code1.jpg"><img class="size-full wp-image-1122 aligncenter" title="code1" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code1.jpg" alt="" width="500" height="221" /></a></p>
<p>Output Queue</p>
<ul>
<li>0 packets in the WFQ system</li>
<li>1000 packets allowed in the WFQ system, set by the HQO</li>
<li>64 packets in anyone queue before CDT starts dropping aggressive flows</li>
<li>0 packets have been dropped</li>
</ul>
<p>Conversations</p>
<ul>
<li>0 active conversations</li>
<li>4 maximum number of concurrent conversations</li>
<li>256 total number of WFQ queues</li>
</ul>
<pre>Router#show queue interface-name interface-number</pre>
<p>Show queue displays the packets inside a queue for a particular interface</p>
<p><a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code2.jpg"><img class="aligncenter size-full wp-image-1123" title="code2" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/code2.jpg" alt="" width="500" height="239" /></a></p>
<ul>
<li>Depth = number of packets in the queue, the above example displays 1 packet</li>
<li>Weight = depending on the IOS version the weight is calculated by “IP Precedence + 1” or “32,384/(IP Precedence + 1), the above example displays 4096</li>
<li>Discards = represents drops due to CDT</li>
<li>Tail Drops = represents drops due to HQO</li>
</ul>
<p><strong>Summary</strong><br />
This blog discussed Weighted Fair Queuing, the next blog in this QoS series will discuss Class Based WFQ and Low Latency queuing (LLQ).</p>
<p><strong>Author: Paul Stryer</strong></p>
<p><strong>References</strong></p>
<ul>
<li><a href="http://www.cisco.com/en/US/docs/ios/qos/configuration/guide/12_4t/qos_12_4t_book.html" target="_blank">Cisco IOS Quality of Service Solutions Configuration Guide</a>, Release 12.4T</li>
<li><em>End-To-End QoS network Design</em>, by Tim Szigeti and Christina Hattingh – ISBN # 1–58705-176–1</li>
<li><a href="http://www.cisco.com/en/US/technologies/tk543/tk766/technologies_white_paper09186a00800a3e2f.html" target="_blank">DiffServ – The Scalable End-To-End QoS Model</a></li>
<li><a href="http://www.ietf.org/rfc/rfc1633.txt">Integrated Services Architecture</a></li>
<li><a href="http://www.ietf.org/rfc/rfc2474.txt" target="_blank">Definition of the Differentiated Services Field</a></li>
<li><a href="http://www.ietf.org/rfc/rfc2475.txt" target="_blank">An Architecture for Differentiated Services</a></li>
<li><a href="http://www.ietf.org/rfc/rfc1812.txt" target="_blank">Requirements for IP Version 4 Routers</a></li>
<li><a href="http://www.ietf.org/rfc/rfc3246.txt" target="_blank">An Expedited Forwarding PHB (Per-Hop Behavior)</a></li>
</ul>
 <div class=’series_links’> </div><div class=’series_toc’><h3>QoS Series</h3><ul><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-1/' title='Quality of Service, Part 1'>Quality of Service, Part 1</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-qos-part-2/' title='Quality of Service (QoS) Part 2'>Quality of Service (QoS) Part 2</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-3/' title='Quality of Service, Part 3'>Quality of Service, Part 3</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-mechanisms/' title='QoS Part 4 – QoS Mechanisms'>QoS Part 4 – QoS Mechanisms</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-5-classification/' title='Quality of Service Part 5 – Classification'>Quality of Service Part 5 – Classification</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-6-marking/' title='Quality of Service, Part 6 – Marking'>Quality of Service, Part 6 – Marking</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-7-service-policy/' title='Quality of Service Part 7: Service Policy'>Quality of Service Part 7: Service Policy</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-8-congestion-management/' title='Quality of Service Part 8: Congestion Management'>Quality of Service Part 8: Congestion Management</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-9-%e2%80%93-fifo-queuing/' title='Quality of Service, Part 9 – FIFO Queuing'>Quality of Service, Part 9 – FIFO Queuing</a></li><li>Quality of Service, Part 10 – Weighted Fair Queuing</li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-11-cbwfq/' title='Quality of Service, Part 11: CBWFQ'>Quality of Service, Part 11: CBWFQ</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-12-low-latency-queuing/' title='Quality of Service, Part 12 – Low Latency Queuing'>Quality of Service, Part 12 – Low Latency Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-13-%e2%80%93-mqc-pop-quiz/' title='Quality of Service Part 13 – MQC Pop Quiz'>Quality of Service Part 13 – MQC Pop Quiz</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-14-mqc-pop-quiz-answer/' title='Quality of Service Part 14 – MQC Pop Quiz Answer'>Quality of Service Part 14 – MQC Pop Quiz Answer</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-10-%e2%80%93-weighted-fair-queuing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quality of Service, Part 9 – FIFO Queuing</title>
		<link>http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-9-%e2%80%93-fifo-queuing/</link>
		<comments>http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-9-%e2%80%93-fifo-queuing/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 19:04:50 +0000</pubDate>
		<dc:creator>Paul Stryer</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Quality of Service (QOS)]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Unified Communications]]></category>

		<guid isPermaLink="false">http://ciscoblog.globalknowledge.com/?p=1114</guid>
		<description><![CDATA[In part 8 of this blog series congestion management and its four main queuing methods were explored. This post will look at the first of four queuing methods: First In First Out (FIFO) queuing. To refresh our memories, congestion can occur anywhere within a network, such as sections of the network that have speed mismatches, [...]]]></description>
			<content:encoded><![CDATA[<p>In <a href="http://globalknowledgeblog.com/technology/unified-communications/qos-part-8-congestion-management/" target="_blank">part 8</a> of this blog series congestion management and its four main queuing methods were explored. This post will look at the first of four queuing methods: First In First Out (FIFO) queuing.</p>
<p>To refresh our memories, congestion can occur anywhere within a network, such as sections of the network that have speed mismatches, aggregations points, or confluences. Queuing algorithms are used to manage congestion. There are many different algorithms to serve multiple needs. The ultimate goal is to provide bandwidth and delay guarantees in order to prioritize the network traffic.</p>
<p>Speed mismatches occur when traffic moves from one speed network (such as a 100Mbps LAN) to another network with a different speed (Such as a 10Mbps LAN). This could be a LAN-to-LAN or LAN-to-WAN mismatch; however, usually it is a high speed to a low speed connection.</p>
<p>Aggregation congestion occurs when multiple connections feed into one main connection. A typical situation would be when multiple remote sites connect into one central site. For example if you have twenty remote sites with 256K WAN links that all connect to the headquarters via a single T1 connection, it would be very easy for the T1 connection to become oversubscribed.</p>
<p><strong>Queuing Components</strong><br />
Queuing accommodates bursts on the router when the arrival rate of packets is greater than the departure rate. Two main reasons for bursts are the cause of queuing to be used:</p>
<ol>
<li>Input interface is faster than the output interface</li>
<li>Output interface is receiving packets coming in from multiple other interfaces</li>
</ol>
<p>Queuing is split into two parts:</p>
<ol>
<li><strong>Hardware queue: </strong>Uses FIFO , and is sometimes called the transmit queue (TxQ)</li>
<li><strong>Software queue: </strong>Schedules packets into the hardware queue based on the QoS settings</li>
</ol>
<p>A full hardware queue indicates interface congestion and software queuing is used to manage it. When a packet is being forwarded, the router will bypass the software queue if the hardware queue is not full.<br />
<a href="http://globalknowledgeblog.com/wp-content/uploads/2010/02/fifo.jpg"><img class="alignleft size-full wp-image-1115" title="fifo" src="http://globalknowledgeblog.com/wp-content/uploads/2010/02/fifo.jpg" alt="" width="288" height="141" /></a><strong>First In First Out(FIFO)  Queuing</strong></p>
<p>FIFO queuing algorithm is the simplest of the congestion management methods. All packets are treated equally, and placed into a single queue and serviced the order they were received. Hence the name FIRST-IN FIRST-OUT. FIFO queuing offers the following benefits:</p>
<ul>
<li>FIFO is supported on all Cisco Platforms</li>
<li>FIFO queuing is supported in all version of Cisco IOS</li>
<li>FIFO queuing places an extremely low load on the system when compared with other queuing mechanisms.</li>
<li>FIFO queuing is predictable, and delay is determined by the maximum depth of the queue.</li>
<li>FIFO queuing does not add significant queuing delay at each hop as long and the queue depth remains low.</li>
</ul>
<p>FIFO queuing also poses the following limitations:</p>
<ul>
<li>FIFO queuing is extremely unfair when an aggressive flow contests with a time sensitive flow. Aggressive flows send a large number of packets, many of which are dropped. Time sensitive flows send a modest number of packets and most are dropped due to the queue always being full of aggressive flow packets. This behavior is called starvation.</li>
<li>When the Queue is full, packets entering the queue have to wait longer. When the queue is not full, packets entering the queue do not have to wait as long as when the queue was full. Variation in delay is called Jitter.</li>
<li>A single FIFO queue does not allow routers to organize buffered packets and service one class of traffic differently from other classes of traffic.</li>
<li>During periods of congestion, FIFO queuing benefits UDP flows over TCP flows. When experiencing packet loss due to congestion, TCP based applications reduce their transmission rate. UDP based applications remain oblivious to packet loss and continue transmitting packets at their usual rate. Because TCP based applications slow their transmission rate to adapt to changing network conditions, FIFO queuing can result in increased delay, jitter, and a reduction in the amount of output bandwidth consumed byTCP applications.</li>
</ul>
<p><strong>Author: Paul Stryer</strong></p>
<p><strong>References</strong></p>
<ul>
<li><a href="http://www.cisco.com/en/US/docs/ios/qos/configuration/guide/12_4t/qos_12_4t_book.html" target="_blank">Cisco IOS Quality of Service Solutions Configuration Guide</a>, Release 12.4T</li>
<li><em>End-To-End QoS network Design</em>, by Tim Szigeti and Christina Hattingh – ISBN # 1–58705-176–1</li>
<li><a href="http://www.cisco.com/en/US/technologies/tk543/tk766/technologies_white_paper09186a00800a3e2f.html" target="_blank">DiffServ – The Scalable End-To-End QoS Model</a></li>
<li><a href="http://www.ietf.org/rfc/rfc1633.txt">Integrated Services Architecture</a></li>
<li><a href="http://www.ietf.org/rfc/rfc2474.txt" target="_blank">Definition of the Differentiated Services Field</a></li>
<li><a href="http://www.ietf.org/rfc/rfc2475.txt" target="_blank">An Architecture for Differentiated Services</a></li>
<li><a href="http://www.ietf.org/rfc/rfc1812.txt" target="_blank">Requirements for IP Version 4 Routers</a></li>
<li><a href="http://www.ietf.org/rfc/rfc3246.txt" target="_blank">An Expedited Forwarding PHB (Per-Hop Behavior)</a></li>
</ul>
 <div class=’series_links’> </div><div class=’series_toc’><h3>QoS Series</h3><ul><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-1/' title='Quality of Service, Part 1'>Quality of Service, Part 1</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-qos-part-2/' title='Quality of Service (QoS) Part 2'>Quality of Service (QoS) Part 2</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-3/' title='Quality of Service, Part 3'>Quality of Service, Part 3</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-mechanisms/' title='QoS Part 4 – QoS Mechanisms'>QoS Part 4 – QoS Mechanisms</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-5-classification/' title='Quality of Service Part 5 – Classification'>Quality of Service Part 5 – Classification</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-6-marking/' title='Quality of Service, Part 6 – Marking'>Quality of Service, Part 6 – Marking</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-7-service-policy/' title='Quality of Service Part 7: Service Policy'>Quality of Service Part 7: Service Policy</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-part-8-congestion-management/' title='Quality of Service Part 8: Congestion Management'>Quality of Service Part 8: Congestion Management</a></li><li>Quality of Service, Part 9 – FIFO Queuing</li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-10-%e2%80%93-weighted-fair-queuing/' title='Quality of Service, Part 10 – Weighted Fair Queuing'>Quality of Service, Part 10 – Weighted Fair Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-11-cbwfq/' title='Quality of Service, Part 11: CBWFQ'>Quality of Service, Part 11: CBWFQ</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-12-low-latency-queuing/' title='Quality of Service, Part 12 – Low Latency Queuing'>Quality of Service, Part 12 – Low Latency Queuing</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-13-%e2%80%93-mqc-pop-quiz/' title='Quality of Service Part 13 – MQC Pop Quiz'>Quality of Service Part 13 – MQC Pop Quiz</a></li><li><a href='http://globalknowledgeblog.com/technology/unified-communications/qos-14-mqc-pop-quiz-answer/' title='Quality of Service Part 14 – MQC Pop Quiz Answer'>Quality of Service Part 14 – MQC Pop Quiz Answer</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://globalknowledgeblog.com/technology/unified-communications/quality-of-service-part-9-%e2%80%93-fifo-queuing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

