<?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>Aaron&#039;s Worthless Words &#187; voip</title>
	<atom:link href="http://aconaway.com/tag/voip/feed/" rel="self" type="application/rss+xml" />
	<link>http://aconaway.com</link>
	<description>Not something you want to hear</description>
	<lastBuildDate>Wed, 08 Sep 2010 14:39:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>ONT Notes &#8211; AutoQoS</title>
		<link>http://aconaway.com/2010/02/10/ont-notes-autoqos/</link>
		<comments>http://aconaway.com/2010/02/10/ont-notes-autoqos/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 23:02:04 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[ccnp]]></category>
		<category><![CDATA[ont]]></category>
		<category><![CDATA[642-845]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[autoqos]]></category>
		<category><![CDATA[campus]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[policing]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[qos]]></category>
		<category><![CDATA[shaping]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[voice]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=484</guid>
		<description><![CDATA[Here are some more notes from my ONT studies.  AutoQoS seems to be pretty straightforward.]]></description>
			<content:encoded><![CDATA[<ul>
<li>AutoQoS benefits
<ul>
<li>Automates QoS for most deployments</li>
<li>Protects business-critical apps to maximize availability</li>
<li>Simplifies QoS deployments</li>
<li>Reduces configuration errors</li>
<li>Cheaper, faster, and simpler deployments</li>
<li>Follows DiffServ</li>
<li>Allows complete control over QoS configs</li>
<li>Allows modification of auto-generated configs</li>
</ul>
</li>
<li>AutoQoS phases of evolution
<ul>
<li>AutoQoS VOIP &#8211; Early version that configures the basics without discovery</li>
<li>AutoQoS for Enterprise &#8211; Second version that only runs on routers and uses two-step process
<ul>
<li>Autodiscovery using NBAR</li>
<li>Generation of class maps</li>
</ul>
</li>
</ul>
</li>
<li>AutoQoS key elements
<ul>
<li>Application classification</li>
<li>Policy generation</li>
<li>Configuration</li>
<li>Monitoring and reporting</li>
<li>Consistency</li>
</ul>
</li>
<li>Interfaces that you can configure AutoQoS on
<ul>
<li>Serial ifs with PPP and HDLC</li>
<li>FR point-to-point subifs (NOT multipoint)</li>
<li>ATM point-to-point subifs</li>
<li>FR-to-ATM links</li>
</ul>
</li>
<li>Prerequsites
<ul>
<li>No Qos policy already configured on if</li>
<li>CEF enabled on if</li>
<li>Correct bandwidth configured on if</li>
<li>IP address on low-speed if</li>
</ul>
</li>
<li>Configuring AutoQoS Enterprise on a router (NOT a switch)
<ul>
<li><strong>auto qos discovery</strong> &#8211; begins discovery process</li>
<li><strong>auto qos</strong> &#8211; generates and applies MQC-based policies</li>
</ul>
</li>
<li>Configuring AutoQoS VOIP
<ul>
<li><strong>auto qos voip [ trust | cisco-phone ]</strong></li>
</ul>
</li>
<li>Verifying AutoQoS on router
<ul>
<li><strong>show auto discovery qos</strong> &#8211; get autodiscovery results</li>
<li><strong>show auto qos</strong> &#8211; examine configuration generated
<ul>
<li>Number of classes</li>
<li>Classification options</li>
<li>Marking options</li>
<li>Queuing mechanisms</li>
<li>Other QoS mechanisms</li>
<li>If, subif, PVC where policy is applied</li>
</ul>
</li>
<li><strong>show policy-map interface</strong> &#8211; look at if stats</li>
</ul>
</li>
<li>Verify AutoQoS VOIP
<ul>
<li><strong>show auto qos</strong></li>
<li><strong>show policy-map interface</strong></li>
<li><strong>show mls qos maps</strong> &#8211; shows CoS to DSCP mappings</li>
</ul>
</li>
<li>Possible issues with AutoQoS
<ul>
<li>Too many traffic classes &#8211; manually consolidate some</li>
<li>Configuration doesn&#8217;t change &#8211; rerun AutoQoS</li>
<li>Configuration may not fit your situation &#8211; fine-tune it by hand</li>
</ul>
</li>
<li>Fine-tuning AutoQoS
<ul>
<li>Use QPM</li>
<li>CLI</li>
<li>copy policy into editor, change, reapply</li>
</ul>
</li>
<li>AutoQoS can match on characteristics besides ACLs and NBAR
<ul>
<li><strong>match input interface</strong></li>
<li><strong>match cos</strong></li>
<li><strong>match ip precedence</strong></li>
<li><strong>match ip dscp</strong></li>
<li><strong>match ip rtp</strong></li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2010/02/10/ont-notes-autoqos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ONT Notes &#8211; Pre-classify and End-to-end QoS</title>
		<link>http://aconaway.com/2010/02/03/ont-notes-pre-classify-and-end-to-end-qos/</link>
		<comments>http://aconaway.com/2010/02/03/ont-notes-pre-classify-and-end-to-end-qos/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 03:13:53 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[ccnp]]></category>
		<category><![CDATA[ont]]></category>
		<category><![CDATA[642-845]]></category>
		<category><![CDATA[campus]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[control plane]]></category>
		<category><![CDATA[copp]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[physical]]></category>
		<category><![CDATA[policing]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[pre-classify]]></category>
		<category><![CDATA[qos]]></category>
		<category><![CDATA[shaping]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[tunnel]]></category>
		<category><![CDATA[voice]]></category>
		<category><![CDATA[voip]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=482</guid>
		<description><![CDATA[Here are some more ONT notes.  We study pre-classifying and end-to-end QoS this time.]]></description>
			<content:encoded><![CDATA[<ul>
<li>VPNs (Didn&#8217;t ISCW cover this?)
<ul>
<li>Provide
<ul>
<li>Confidentiality</li>
<li>Integrity</li>
<li>Authentication</li>
</ul>
</li>
<li>Types
<ul>
<li>Remote-access
<ul>
<li>Client-initiated</li>
<li>NAS-initiated</li>
</ul>
</li>
<li>Site-to-site
<ul>
<li>LAN-to-LAN</li>
<li>Extranet</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>L3 Tunneling protocols
<ul>
<li>GRE</li>
<li>IPSec</li>
</ul>
</li>
<li>Pre-classify allows traffic to be classified before being sent across a tunnel or crypto-ed.
<ul>
<li><em>qos pre-classify</em></li>
<li>Provides a view into the original IP headers</li>
<li>To classify on pre-tunnel header, apply the policy to the tunnel interface WITHOUT pre-classify.</li>
<li>To classify on post-tunnel header, apply the policy to the physical interface WITHOUT pre-classify.</li>
<li>To classify on pre-tunnel header, apply the policy to the physical interface WITH pre-classify.</li>
</ul>
</li>
<li>SLA &#8211; agreement with provider to guarantee QoS mechanisms across their network based on your markings.
<ul>
<li>Assures availability, loss, throughput, delay, and jitter.</li>
</ul>
</li>
<li>End-to-end QoS
<ul>
<li>To be effective, each hop in the path must have QoS configured similarly.</li>
<li>Necessary in three locations
<ul>
<li>Campus &#8211; within the customer network</li>
<li>The edges &#8211; customer facing the provider, provider facing customer</li>
<li>On the provider network</li>
</ul>
</li>
</ul>
</li>
<li>QoS tasks
<ul>
<li>Campus access switches
<ul>
<li>Speed/duplex settings</li>
<li>Classification</li>
<li>Trust</li>
<li>Phone/access switch configs</li>
<li>Multiple queues on switch ports, including priority for VOIP</li>
</ul>
</li>
<li>Campus distribution
<ul>
<li>L3 policing and marking</li>
<li>Multiple queues on switch ports, including priority for VOIP</li>
<li>WRED</li>
</ul>
</li>
<li>WAN edge
<ul>
<li>SLA definitions</li>
<li>LLQ</li>
<li>LFI</li>
<li>WRED</li>
<li>Shaping</li>
</ul>
</li>
<li>Provider cloud
<ul>
<li>Capacity planning</li>
<li>PHB</li>
<li>LLQ</li>
<li>WRED</li>
</ul>
</li>
</ul>
</li>
<li>Enterprise campus QoS implementation
<ul>
<li>Implement multiple queues to avoid congestion</li>
<li>Assign VOIP and video to highest priority queue</li>
<li>Esablish trust boundaries</li>
<li>Use policing to rate-limit excess traffic</li>
<li>Use hardware QoS when possible</li>
</ul>
</li>
<li>Control Plane Policing (CoPP)
<ul>
<li>Applies QoS policy to traffic destined for the router
<ul>
<li>Routing protocols</li>
<li>Management protocols</li>
</ul>
</li>
<li>Can be used to avoid DOS attacks</li>
<li>Applied to <em>control-plane</em> in global config</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2010/02/03/ont-notes-pre-classify-and-end-to-end-qos/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ONT Notes &#8211; Congestion Avoidance, Policing, Shaping, and Link Efficiency</title>
		<link>http://aconaway.com/2010/02/02/ont-notes-congestion-avoidance-policing-shaping-and-link-efficiency/</link>
		<comments>http://aconaway.com/2010/02/02/ont-notes-congestion-avoidance-policing-shaping-and-link-efficiency/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 03:09:47 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[ccnp]]></category>
		<category><![CDATA[ont]]></category>
		<category><![CDATA[642-845]]></category>
		<category><![CDATA[bucket]]></category>
		<category><![CDATA[cbwfq]]></category>
		<category><![CDATA[cbwred]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[compression]]></category>
		<category><![CDATA[fifo]]></category>
		<category><![CDATA[fragmentation]]></category>
		<category><![CDATA[interleaving]]></category>
		<category><![CDATA[policing]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[qos]]></category>
		<category><![CDATA[queueing]]></category>
		<category><![CDATA[queuing]]></category>
		<category><![CDATA[red]]></category>
		<category><![CDATA[shaping]]></category>
		<category><![CDATA[tail drop]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[token]]></category>
		<category><![CDATA[voice]]></category>
		<category><![CDATA[voip]]></category>
		<category><![CDATA[wfq]]></category>
		<category><![CDATA[wred]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=477</guid>
		<description><![CDATA[Here's another set of notes from my ONT studies.]]></description>
			<content:encoded><![CDATA[<ul>
<li>Tail drop drawbacks
<ul>
<li>TCP synchronization &#8211; Dropping TCP packets from different flows can cause them all to window down and back up again at the same time in cycles.</li>
<li>TCP starvation &#8211; Non-TCP or aggressive flows can starve everyone else out when TCP throttles back.</li>
<li>No differentiated drop &#8211; Tail drop doesn&#8217;t care who you are, so you get dropped if the queue is full.</li>
</ul>
</li>
<li>RED &#8211; Random Early Detection
<ul>
<li>Avoids tail drop by randomly dropping packets from the queue before it gets full</li>
<li>Only dropped TCP flows slow down instead of everyone who has sent a packet since the queue filled</li>
<li>Queues are smaller.</li>
<li>Link utilization is more efficient</li>
<li>Configured with
<ul>
<li>Minimum threshold &#8211; start dropping when the queue is this size</li>
<li>Maximum threshold &#8211; if the queue is this big, start tail dropping</li>
<li>Mark probability denominator (MPD) &#8211; 1/MPD is the ratio of packets to drop when between the thresholds</li>
</ul>
</li>
</ul>
</li>
<li>WRED &#8211; Weighted RED
<ul>
<li>Based on IP precedence or DSCP values</li>
<li>Less-important packets are dropped more aggressively than important packets</li>
<li>Applied to an interface, VC or a class within a policy map</li>
</ul>
</li>
<li>CBWRED &#8211; Class based WRED
<ul>
<li>Configured with CBWFQ</li>
</ul>
</li>
<li>Policing
<ul>
<li>Limits subrate bandwidth (give you 100kbps on a T1)</li>
<li>Limits traffic of certain applications</li>
<li>Any traffic that exceeds police is dropped or re-classified; it&#8217;s a hard limit</li>
<li>Inbound or outbound</li>
</ul>
</li>
<li>Shaping
<ul>
<li>Sets a limit but buffers any in excess</li>
<li>Requires memory to store the buffer</li>
<li>Buffers = delay and/or jitter</li>
<li>Outbound only</li>
<li>Can respond to network signals like BECNs and FECNs</li>
</ul>
</li>
<li>Token and bucket
<ul>
<li>The queue is a bucket; if a byte of data needs to be sent, it needs a token.</li>
<li>If there are enough tokens, the traffic is considered conforming.</li>
<li>If there aren&#8217;t enough tokens, the traffic is considered exceeding, which triggers the drop (policing), re-classify (policing), or buffer (shaping).</li>
</ul>
</li>
<li>Frame relay traffic shaping (FRTS)
<ul>
<li>Only controls frame relay traffic</li>
<li>Applied on subif or DLCI</li>
<li>Support fragmentation and interleaving</li>
<li>Reacts to FECNs and BECNs</li>
</ul>
</li>
<li>Compression
<ul>
<li>Removed redundancy and patterns in data</li>
<li>Less data = less latency</li>
<li>Hardware compression or hardware-assisted compression does not involve the main CPU</li>
<li>Software compression does</li>
<li>Payload compression</li>
<li>Header compression</li>
</ul>
</li>
<li>Link fragmentation and interleaving
<ul>
<li>Small data might be waiting for larger data pieces to finish sending</li>
<li>Chunks data into smaller fragments so they don&#8217;t have to wait</li>
<li>Interleaving shuffles flows in the Tx queue</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2010/02/02/ont-notes-congestion-avoidance-policing-shaping-and-link-efficiency/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ONT Notes &#8211; Queuing</title>
		<link>http://aconaway.com/2010/01/23/ont-notes-queuing/</link>
		<comments>http://aconaway.com/2010/01/23/ont-notes-queuing/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 04:22:06 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[642-845]]></category>
		<category><![CDATA[cbwfq]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[classification]]></category>
		<category><![CDATA[diffserv]]></category>
		<category><![CDATA[fifo]]></category>
		<category><![CDATA[llq]]></category>
		<category><![CDATA[marking]]></category>
		<category><![CDATA[ont]]></category>
		<category><![CDATA[policing]]></category>
		<category><![CDATA[pq]]></category>
		<category><![CDATA[qos]]></category>
		<category><![CDATA[queueing]]></category>
		<category><![CDATA[queuing]]></category>
		<category><![CDATA[round robin]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[voice]]></category>
		<category><![CDATA[voip]]></category>
		<category><![CDATA[wfq]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=452</guid>
		<description><![CDATA[Here are some more notes from my studies.  Of course, no one cares about them but me, but it&#8217;s my blog.  I’m sure someone will find it useful.  Please help to correct dumbass mistakes. Congestion Speed mismatch &#8211; traffic leaves a lower-bandwidth interface than the one it came in on Aggregation problem &#8211; lots of [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some more notes from my studies.  Of course, no one cares about them but me, but it&#8217;s my blog.  I’m sure someone will find it useful.  Please help to correct dumbass mistakes.</p>
<ul>
<li>Congestion
<ul>
<li>Speed mismatch &#8211; traffic leaves a lower-bandwidth interface than the one it came in on</li>
<li>Aggregation problem &#8211; lots of links with one egress of equal bandwidth</li>
<li>Confluence problem &#8211; a bunch of traffic needs to egress out of the same interface</li>
</ul>
</li>
<li>Queuing
<ul>
<li>Transmit queue (TxQ) &#8211; hardware queue; there&#8217;s only one you can&#8217;t touch</li>
<li>Software queue &#8211; where packets wait to be sent; there are many queue-types that you modified to police traffic</li>
</ul>
</li>
<li>FIFO
<ul>
<li>If I beat you to the router, I leave the router first.</li>
<li>Possible long delays, jitter, and starvation</li>
</ul>
</li>
<li>Priority queuing (PQ)
<ul>
<li>Four queues
<ul>
<li>High-priority</li>
<li>Medium-priority</li>
<li>Normal-priority</li>
<li>Low-priority</li>
</ul>
</li>
<li>Scheduler starts from high and work to low</li>
<li>When the high queue is empty, it processes a packet from medium, then starts all over</li>
<li>Can you say starvation?</li>
</ul>
</li>
<li>Round robin queuing (RR)
<ul>
<li>One packet from this queue, one from the next, etc., then start over again</li>
</ul>
</li>
<li>Custom queuing (CQ)
<ul>
<li>Weighted round robin</li>
<li>Queues are given weights (bandwidth guarantees)</li>
</ul>
</li>
<li>Weighted Fair Queuing (WFQ)
<ul>
<li>Default queuing on slow links ( &lt; E1 )</li>
<li>Divides traffic into flows</li>
<li>Equal bandwidth is given to each flow</li>
<li>Provides faster scheduling to low-volume flows</li>
<li>Provides more bandwidth to higher-priority flows</li>
<li>Flows identified by a hash
<ul>
<li>Source IP</li>
<li>Destination IP</li>
<li>Protocol number</li>
<li>ToS</li>
<li>Source port</li>
<li>Destination port</li>
</ul>
</li>
<li>Each unique has is a new flow</li>
<li>No way to allocate bandwidth among the flows</li>
<li>By default, up to 256 queues are made, but that is changeable to a power of 2 between 16 and 4096</li>
<li>If the max number of flows is reached, queues are reused for other flows</li>
<li>If a queue is full, a packet may be dropped.</li>
<li>WFQ early dropping drops packets when the queue reaches the congestive discard threshold (CDT)</li>
<li>Advantages
<ul>
<li>Simple configuration</li>
<li>No starvation</li>
<li>Guarantee processing of all flows</li>
<li>Drops packets from big-hitter flows</li>
<li>Faster service no low-hitters (interactive) flows</li>
<li>Standard on (nearly) all IOS devices</li>
</ul>
</li>
<li>Disadvantages
<ul>
<li>Classification and scheduling are not configurable</li>
<li>Only on slow links</li>
<li>No guarantee of bandwidth or delay</li>
</ul>
</li>
</ul>
</li>
<li>Class-based Weighted Fair Queuing (CBWFQ)
<ul>
<li>User-defined queues for flexibility</li>
<li>Configured with class-maps via MQC</li>
<li>Weights are calculated based on values give in class-map
<ul>
<li>Bandwidth &#8211; guarantee this much bandwidth</li>
<li>Bandwidth percent &#8211; give me this much of the available bandwidth</li>
<li>Bandwidth remaining percent</li>
</ul>
</li>
<li>Advantages
<ul>
<li>User-defined traffic classes</li>
<li>Each queue gets its own bandwidth</li>
<li>Scalability</li>
</ul>
</li>
<li>Disadvantages
<ul>
<li>No delay guarantee (not good for real-time application like voice)</li>
</ul>
</li>
<li>Configuring
<ul>
<blockquote>
<pre>class-map TESTCM1
 match access-group 100
!
class-map TESTCM2
 match access-group 200
!
policy-map TESTPM
 class TESTCM1
  bandwidth 64
 class TESTCM2
  bandwidth 128</pre>
</blockquote>
</ul>
</li>
</ul>
</li>
<li>Low-latency Queuing
<ul>
<li>Includes strict priority queue for delay-sensitive data</li>
<li>Strict priority queue is policed to avoid starvation of other queues</li>
<li>Configured the same way as normal CBWFQ, but with the <em>priority</em> keyword</li>
<li>This configuration makes <em>TESTCM2</em> a priority queue</li>
<blockquote>
<pre>class-map TESTCM1
 match access-group 100
!
class-map TESTCM2
 match access-group 200
!
policy-map TESTPM
 class TESTCM1
  bandwidth 64
 class TESTCM2
  priority bandwidth 128</pre>
</blockquote>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2010/01/23/ont-notes-queuing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ONT Notes – Classification, Marking, and NBAR</title>
		<link>http://aconaway.com/2010/01/22/ont-notes-classification-marking-and-nbar/</link>
		<comments>http://aconaway.com/2010/01/22/ont-notes-classification-marking-and-nbar/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 16:32:58 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[642-845]]></category>
		<category><![CDATA[autoqos]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[classification]]></category>
		<category><![CDATA[diffserv]]></category>
		<category><![CDATA[dscp]]></category>
		<category><![CDATA[marking]]></category>
		<category><![CDATA[ont]]></category>
		<category><![CDATA[policing]]></category>
		<category><![CDATA[qos]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[voice]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=441</guid>
		<description><![CDATA[Here&#8217;s another set of notes from my ONT studies.  I&#8217;m sure someone will find it useful.  Please help to correct dumbass mistakes. Classification is done with traffic desriptors Ingress interface CoS value on ISL or 802.1P frames Source/destination IP address IP Precedence or DSCP value MPLS EXP Application type Layer 3 QoS Type of Service [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another set of notes from my ONT studies.  I&#8217;m sure someone will find it useful.  Please help to correct dumbass mistakes.</p>
<ul>
<li>Classification is done with traffic desriptors
<ul>
<li>Ingress interface</li>
<li>CoS value on ISL or 802.1P frames</li>
<li>Source/destination IP address</li>
<li>IP Precedence or DSCP value</li>
<li>MPLS EXP</li>
<li>Application type</li>
</ul>
</li>
<li>Layer 3 QoS
<ul>
<li>Type of Service (ToS) is 8-bit field.</li>
<li>First 3 bits of ToS are the IP precedence.</li>
<li>First 6 bits of ToS are the DSCP value.</li>
<li>Last 2 bits of ToS are explicit congestion notification (ECN).</li>
</ul>
</li>
<li>Layer 2 QoS
<ul>
<li>Ethernet
<ul>
<li>Class of Service (CoS)</li>
<li>On 802.1P frame</li>
<li>3-bit priority (PRI) field
<ul>
<li>000 &#8211; Routine &#8211; Best-effort</li>
<li>001 &#8211; Priority &#8211; Medium priority</li>
<li>010 &#8211; Immediate &#8211; High priority</li>
<li>011 &#8211; Flash &#8211; Call signaling</li>
<li>100 &#8211; Flash-Override &#8211; Video conferencing</li>
<li>101 &#8211; Critical &#8211; Voice bearer</li>
<li>110 &#8211; Internet &#8211; Reserved</li>
<li>111 &#8211; Network &#8211; Reserved</li>
</ul>
</li>
</ul>
</li>
<li>Frame Relay
<ul>
<li>1-bit discard eligible (DE) field</li>
</ul>
</li>
<li>ATM
<ul>
<li>1-bit cell loss priority (CLP) field</li>
</ul>
</li>
<li>MPLS (layer 2 1/2)
<ul>
<li>3-bit experimental (EXP) field</li>
<li>By default, the 3 most significant ToS bits (IP Precedence bits) are copied to EXP</li>
</ul>
</li>
</ul>
</li>
<li>Per-hop Behavior (PHB)
<ul>
<li>&#8220;an externally observable fowarding behavior of a network node toward a group of IP packets that have the same DSCP value&#8221;</li>
<li>In other words, treat packets with the same DSCP value in the same manner &#8211; scheduling, queuing, policing, etc.</li>
<li>Behavior aggregate (BA) is a group of packets with the same DSCP value</li>
</ul>
</li>
<li>DSCP
<ul>
<li>DSCP is chopped up into 4 PHBs
<ul>
<li>Class selector PHB &#8211; (000) old IP precedence compatibility</li>
<li>Default PHB &#8211; (000) best effort</li>
<li>Assured forwarding (AF) PHB &#8211; (001, 010, 011, 100) guarantee bandwidth
<ul>
<li>Provides 4 queues for 4 classes of traffic (AF1-4)</li>
<li>Also specifies drop preference (ex., AF41, A13) where second number is preference (higher is more probable to be dropped)</li>
<li>Each queue must have (W)RED to avoid drops</li>
<li>No queue is any better than the other</li>
<li>Backward compatible with IP precedence</li>
</ul>
</li>
</ul>
</li>
</ul>
<ul>
<li>
<ul>
<li>Expedited forwarding (EF) PHB &#8211; (101) low delay
<ul>
<li>Minimum delay</li>
<li>Bandwidth guarantee</li>
<li>Policing</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
<li>Trust boundaries
<ul>
<li>Establish DSCP values as close to the source as possible
<ul>
<li>On the device (IP phone), access switch, or distribution switch</li>
<li>The core should never assign DSCP values</li>
</ul>
</li>
<li>Only trust DSCP values from devices you trust</li>
<li>Examine and rewrite values from untrust sources</li>
</ul>
</li>
<li>Network-based Application Recognition (NBAR)
<ul>
<li>Protocol discovery &#8211; discovers what protocols you&#8217;re running on your network</li>
<li>Traffic statistics collection &#8211; keeps tracks of stats on each protocol</li>
<li>Traffic classification &#8211; NBAR protocols can be used in <em>class-maps</em> to define traffic to be services</li>
<li>Packet description language models (PDLMs) &#8211; table of what protocols NBAR recognizes</li>
<li>Limitations
<ul>
<li>Doesn&#8217;t work on EtherChannel interfaces</li>
<li>Only handles 24 URLs, hosts, or MIME types</li>
<li>Only analyzes first 400 bytes of the packets</li>
<li>Requires CEF</li>
<li>Doesn&#8217;t work on HTTPS, multicasts, or fragments</li>
<li>Ignored traffic destined for the router itself</li>
</ul>
</li>
<li>NBAR commands
<ul>
<li>Router(config)# <strong>ip nbar pdlm </strong><em>pdlm-name</em> : Update the PDLM table</li>
<li>Router(config)# <strong>ip nbar port-map </strong><em>protocol-name</em><em></em><strong> [tcp|udp] </strong><em>port-number</em> : Adds an entry to the PDLM table</li>
<li>Router# <strong>show ip nbar port-map</strong> <em>protocol-name</em> : Shows what&#8217;s in the PDLM table</li>
<li>Router# <strong>show ip nbar protocol-discovery</strong> : Shows what&#8217;s been discovered</li>
<li>Router(config-cmap)# <strong>match protocol</strong> <em>name </em>: a class-map match for an NBAR-discovered protocol</li>
</ul>
</li>
<li>Special protocol matching
<ul>
<li>Can match beyond the port number with deep packet inspection</li>
<li>Matches HTTP hostname, URL, or MIME type</li>
<li>Matches fast-track P2P</li>
<li>Matches RTP content</li>
</ul>
</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2010/01/22/ont-notes-classification-marking-and-nbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ONT Notes &#8211; Intro to QoS</title>
		<link>http://aconaway.com/2010/01/20/ont-notes-intro-to-qos/</link>
		<comments>http://aconaway.com/2010/01/20/ont-notes-intro-to-qos/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 03:21:40 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[642-845]]></category>
		<category><![CDATA[autoqos]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[diffserv]]></category>
		<category><![CDATA[intserv]]></category>
		<category><![CDATA[ont]]></category>
		<category><![CDATA[qos]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[voice]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=436</guid>
		<description><![CDATA[I&#8217;ll try to keep it a little shorter this time. Major issues for converged enterprise networks Available bandwidth: competition among applications Fixes Increase bandwidth: More power! Properly queue based on classification and marking: QoS Compress: cRTP, TCP header compression, etc. Delay: Lead time to get a packet to the destination Types of delay Processing delay: [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ll try to keep it a little shorter this time.</p>
<p><strong>Major issues for converged enterprise networks</strong></p>
<ul>
<li>Available bandwidth: competition among applications
<ul>
<li>Fixes
<ul>
<li>Increase bandwidth: More power!</li>
<li>Properly queue based on classification and marking: QoS</li>
<li>Compress: cRTP, TCP header compression, etc.</li>
</ul>
</li>
</ul>
</li>
<li>Delay: Lead time to get a packet to the destination
<ul>
<li>Types of delay
<ul>
<li>Processing delay: routing, switch delay</li>
<li>Queuing delay: how long a frame stays in an output queue</li>
<li>Serialization delay:  how long to put the frame on the wire</li>
<li>Propagation delay: the time to cross the physical medium</li>
</ul>
</li>
</ul>
</li>
<li>Jitter (delay variation): Variation is the delay
<ul>
<li>Different delays mean different arrival times</li>
<li>De-jitter buffers save up packets to reduce jitter (like the old CD writers)</li>
<li>Fixes
<ul>
<li>More bandwidth</li>
<li>Prioritize sensitive data and forward first</li>
<li>Remark (reclassify) packets based on sensitivity</li>
<li>Enable L2 payload compression: make sure compression delay isn&#8217;t worse than the jitter</li>
<li>Use header compression</li>
</ul>
</li>
</ul>
</li>
<li>Packet loss: Packets are lost in the network somewhere
<ul>
<li>Fixes
<ul>
<li>More bandwidth</li>
<li>Increase buffers space: more room for the queue on the interface</li>
<li>Provide guaranteed bandwidth: Queuing and QoS</li>
<li>Congestion avoidance
<ul>
<li>Random Early Detection (RED) and weighted RED (WRED) drop packets before the queue is full</li>
<li>Selective dropping is better than FIFO or LIFO dropping</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><strong>QoS History</strong></p>
<ul>
<li>Priority queuing: gives certain data the right-of-way for transmission</li>
<li>Weighted Fair Queuing (WFQ): prevents small packets from waiting too long for big packets</li>
<li>RTP priority queuing: Gives voice packets the right-of-way</li>
<li>CAC: Makes sure we don&#8217;t fill up the queue or pipe with voice traffic</li>
</ul>
<p><strong>Implementing QoS</strong></p>
<ul>
<li>Step 1: Identify traffic types and requirements
<ul>
<li>Network audit</li>
<li>Business audit</li>
<li>Define bandwidth requirements for each class found</li>
</ul>
</li>
<li>Step 2: Classify the traffic
<ul>
<li>Common classes
<ul>
<li>VOIP</li>
<li>Mission-critical</li>
<li>Signal traffic: for VOIP</li>
<li>Transactional application: SAP, ERP</li>
<li>Best-effort: Everything else</li>
<li>Scavenger: Crap you don&#8217;t care about like P2P and your boss&#8217;s email</li>
</ul>
</li>
</ul>
</li>
<li>Step 3: Define policies for each class
<ul>
<li>Tasks for each class
<ul>
<li>Set max bandwidth</li>
<li>Set min bandwidth</li>
<li>Assign relative priorities</li>
<li>Apply congestion avoidance, congestion management, etc.</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><strong>QoS Models</strong></p>
<ul>
<li>Best-effort: no QoS
<ul>
<li>Scalable</li>
<li>Easy</li>
<li>No service guarantee: doesn&#8217;t care what you&#8217;re trying to do</li>
<li>No service differentiation: all traffic is equal</li>
</ul>
</li>
<li>Integrated Service (IntServ)
<ul>
<li>Hard-QoS</li>
<li>Uses RSVP to guarantee bandwidth through the entire path</li>
<li>Requires
<ul>
<li>Admission control</li>
<li>Classification</li>
<li>Polices the traffic (ceiling)</li>
<li>Queuing</li>
<li>Scheduling</li>
</ul>
</li>
<li>Advantages
<ul>
<li>End-to-end resource admission control</li>
<li>Per-request policy admission control</li>
<li>Signaling of dynamic ports</li>
</ul>
</li>
<li>Disadvantages
<ul>
<li>Continuous signaling</li>
<li>Not scalable</li>
</ul>
</li>
</ul>
</li>
<li>Differentiated Services (DiffServ)
<ul>
<li>Soft-QoS</li>
<li>Configured on each hop</li>
<li>Traffic is classified</li>
<li>Enforces different treatment on different classes</li>
<li>Defined based on business requirements</li>
<li>Benefits
<ul>
<li>Scalable</li>
<li>Supports lots of service levels</li>
</ul>
</li>
<li>Drawbacks
<ul>
<li>No absolute guarantee of service</li>
<li>Complex configuration throughout network</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><strong>QoS Implementation Methods</strong></p>
<ul>
<li>CLI
<ul>
<li>Old school</li>
<li>Not used any more</li>
</ul>
</li>
<li>Modules QoS CLI (MQC)
<ul>
<li>Step 1: <em>class-map</em></li>
<li>Step 2: <em>policy-map</em></li>
<li>Step 3: <em>service-policy</em></li>
</ul>
</li>
<li>AutoQoS
<ul>
<li>Automatically generates classes and policies based on traffic it sees</li>
<li>Super-simple</li>
<li>Requires CEF, NBAR, and correct bandwidth statements</li>
</ul>
</li>
<li>SDM QoS Wizard
<ul>
<li>Next, next, next</li>
<li>Can be used to implement, monitor, or troubleshoot QoS</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2010/01/20/ont-notes-intro-to-qos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ONT Notes &#8211; VOIP Networks</title>
		<link>http://aconaway.com/2010/01/10/ont-notes-voip-networks/</link>
		<comments>http://aconaway.com/2010/01/10/ont-notes-voip-networks/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 19:16:53 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[642-845]]></category>
		<category><![CDATA[analog]]></category>
		<category><![CDATA[ccnp]]></category>
		<category><![CDATA[certification]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[conversion]]></category>
		<category><![CDATA[digital]]></category>
		<category><![CDATA[ont]]></category>
		<category><![CDATA[test]]></category>
		<category><![CDATA[voice]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=417</guid>
		<description><![CDATA[Here are some of the notes I&#8217;ve been taking while reading over the ONT book. I hope it benefits somebody.  Feel free to correct any stupid mistakes as a paraphrase to avoid a lawsuit. There&#8217;s way too much info here.  I&#8217;ll refine the process a little better for the next topics. Benefits of Packet Telephony [...]]]></description>
			<content:encoded><![CDATA[<p>Here are some of the notes I&#8217;ve been taking while reading over the ONT book.  I hope it benefits somebody.  Feel free to correct any stupid mistakes as a paraphrase to avoid a lawsuit.</p>
<p>There&#8217;s way too much info here.  I&#8217;ll refine the process a little better for the next topics.</p>
<p><strong>Benefits of Packet Telephony Networks</strong></p>
<ul>
<li>More efficient use of bandwidth and equipment &#8211; Packet telephony networks don&#8217;t dedicate channels or a static bandwidth to a call; it&#8217;s just another network application.</li>
<li>Consolidate network expense &#8211; The common infrastructure (IP-based networks) keeps you from having to support another distinct network for voice like in traditional PBX implementations.</li>
<li>Improved employee productivity &#8211; The phone can be used for more than just phone calls by utilizing the XML interface to run applications or provide content from the network.</li>
<li>Access to new communications devices &#8211; IP phones can communicate with computers, network gear, PDAs, etc., and not just the PBX.</li>
</ul>
<p><strong>Packet Telephony Components</strong></p>
<ul>
<li>Phones &#8211; These include analog phone, digital phones, IP phones, softphones, etc.</li>
<li>Gateways &#8211; These devices connect the different devices that cannot access the IP network.  For example, making a 911 call from your IP phone requires a gateway that switches and converts your VOIP conversation to the PSTN.</li>
<li>Gatekeepers &#8211; These are devices that handle call routing (resolving an IP to an extension/phone number) and call admission control (CAC, grants permission to make the call).</li>
<li>Multipoint control units (MCUs) &#8211; These are conference bridges that connect a bunch of streams together and present it to all participants.  Some can do video as well.</li>
<li>Call agents &#8211; These are devices used in a centralized model that handle the call routing, address translation, call setup, call maintenance, and call termination.</li>
<li>Application and database servers &#8211; These provide required and optional services to the packet telephony network and include TFTP servers for configuration and OS download and XML servers for application use.</li>
<li>Digital signal processors (DSPs) &#8211; These guys converts signals from one form to another.  They convert analog to digital signals, digital to packetized data in the form of a codec, from codec to codec, etc.</li>
</ul>
<p><strong>Analog Interfaces</strong></p>
<ul>
<li>Foreign Exchange Office (FXO) &#8211; These are interfaces that expect to connect to a CO or equivalent.  You connect these to your wall jack to get access to the PSTN.</li>
<li>Foreign Exchange Station (FXS) &#8211; You connect your analog devices (phones, modems, faxes, etc.) to these guys to get dial tone.</li>
<li>Ear and Mouth (E&amp;M) &#8211; These are the old-school way to connect PBXes together.</li>
</ul>
<p><strong>Digital Interfaces</strong></p>
<ul>
<li>Basic Rate ISDN (BRI) &#8211; These give you 2 64kbps channels (bearer channels) to run voice over.  It also includes a 16kbps D (delta) channel with 48kbps of framing overhead to give you 192kbps.</li>
</ul>
<ul>
<li>T1 (North America) &#8211; This is a channelized T1 or a Primary Rate ISDN (PRI).
<ul>
<li>Common Channel Signaling (CCS) &#8211; The D channel is dedicated to signaling, giving you 23 64kbps channels.</li>
<li>Channel Associated Signaling (CAS)  &#8211; There is no D channel, but every bearer channel dedicates a few data bits for its own signaling.</li>
</ul>
</li>
</ul>
<ul>
<li>
<ul>
<li>E1 (North America) &#8211; This is a channelized E1 or a Primary Rate ISDN (PRI).
<ul>
<li>Common Channel Signaling (CCS) &#8211; The D channel is dedicated to signaling, giving you 30 64kbps channels.</li>
<li>Channel Associated Signaling (CAS)  &#8211; There is still a dedicated D channel, so you still have 30 64kbps channels to use.</li>
</ul>
</li>
</ul>
</li>
</ul>
<p><strong>VOIP Signaling</strong></p>
<ul>
<li>H323. &#8211; ITU Standard that uses a whole mess of RFCs; distributed model</li>
<li>Media Gateway Control Protocol (MGCP) &#8211; IETF RFC 3435; centralized model</li>
<li>Session Initiation Protocol (SIP) &#8211; IETF standard; distributed model</li>
</ul>
<p><strong>Phone Call Stages</strong></p>
<ul>
<li>Call setup &#8211; connects the call between the endpoints
<ul>
<li>Call routing &#8211; figures out where the call is going</li>
<li>CAC (optional) &#8211; Do you have enough resources (i.e., an available channel or bandwidth) to make the call?</li>
<li>Call negotiation &#8211; negotiates the source and destination IPs, source and destination UDP ports, and codec.</li>
</ul>
</li>
<li>Call maintenance &#8211; collects call statistics for on-demand or historical use</li>
<li>Call teardown &#8211; hanging up and terminating the connection</li>
</ul>
<p><strong>Digitizing Analog Signals</strong></p>
<ul>
<li>Sampling &#8211; Periodic capturing and recording of voice resulting in a pulse amplitude modulation (PAM) signal</li>
<li>Quantization &#8211; Assigning numerical values to the PAM signal</li>
<li>Encoding &#8211; Converting the quantization to binary</li>
<li>Compression (optional) &#8211; compressing the binary stream</li>
<li>Pulse code modulation (PCM) converts analog to digital, but it doesn&#8217;t use compression.  It takes 8000 samples per second and converts each sample to an 8-bit number, giving 64kbps of capacity.</li>
</ul>
<p><strong>Digital to Analog</strong></p>
<ul>
<li>Decompression (optional)</li>
<li>Decoding and filtering &#8211; binary is converted back to a PAM signal; filtering removes any noise from the conversion</li>
<li>Reconstructing the analog signal</li>
</ul>
<p><strong>The Nyquist Theorem</strong></p>
<ul>
<li>The number of samples required to accurately encode (and decode) a signal is twice the highest frequency of the signal.</li>
<li>Since telephone lines can only transmit up to 3400 Hz (4000 Hz for simplicity), the sample rate should be 8000 samples/second.</li>
</ul>
<p><strong>Measuring Compression Qualities<br />
</strong></p>
<ul>
<li>Mean opinion score (MOS) &#8211; ITU standard technique for measuring quality of codec; subjective score from 1 to 5</li>
<li>Perceptual speech quality measurement (PSQM) &#8211; Another ITU standard technique for measuring quality of codec; test equipment score from 0. to 6.5</li>
<li>Perceptual analysis measurement system (PAMS) &#8211; Developed by BT; predictive system</li>
<li>Perceptual evaluation of speech quality (PESQ) &#8211; Another ITU standard; combines PSQM and PAMS; objective measurement of factors including subjective values</li>
</ul>
<p><strong>Digital Signal Processors (DSPs)</strong></p>
<ul>
<li>Provide 3 major services &#8211; voice termination, transcoding, conferencing</li>
<li>Also performs compression (codec), echo cancellation, voice activity detection (VAD), comfort noise generation (CNG), and jitter handling</li>
<li>Conferencing among participants with the same codec is called a single-mode conference.</li>
<li>Conferencing among participants with different codecs is called a mixed-mode conference.</li>
</ul>
<p><strong>Protocols</strong></p>
<ul>
<li>VOIP calls run over Real Time Protocol (RTP).</li>
<li>RTP provides sequence reordering, time-stamping, and multiplexing</li>
<li>Rides on UDP ports 16384-32767</li>
<li>Voice does not need the reliability (retransmission) of TCP since retransmitted data is no longer useful (I already said that).</li>
<li>VOIP packets headers:
<ul>
<li>IP &#8211; 20 bytes</li>
<li>UDP &#8211; 8 bytes</li>
<li>RTP &#8211; 12 bytes</li>
<li>L2 headers vary depending on technology (Ethernet = 12 bytes, MPLS, etc.)</li>
</ul>
</li>
<li>2 10-ms packages are usually in one packet (20ms of voice)</li>
<li>G.711 (64kbps) produces 160 bytes from 20 ms of voice.</li>
<li>G.729 (8kbps) produces 20 bytes from 20 ms of voice.</li>
</ul>
<p><strong>cRTP</strong></p>
<ul>
<li>Compressed RTP (cRTP) reduces the headers</li>
<li>After the first packet lands, the IP, UDP, and RTP headers won&#8217;t change, so why send them again?</li>
<li>The headers are reduced to a hash.</li>
<li>cRTP reduces the headers to 4 bytes with a UDP checksum and 2 bytes without a UDP checksum.</li>
<li>Slow links only</li>
<li>Processing overhead</li>
<li>Finite delay in packetization</li>
</ul>
<p><strong>Packet Size Effect on Bandwidth<br />
</strong></p>
<ul>
<li>The size of a voice frame depends on:
<ul>
<li>Packet rate and packetization size &#8211; rate is inversely proporational to size</li>
<li>IP overhead &#8211; RTP, UDP, IP, cRTP overhead</li>
<li>L2 overhead -</li>
<li>Tunneling overhead &#8211; IPSec, GRP, MPLS, etc.</li>
</ul>
</li>
<li>Codecs have different bandwidth
<ul>
<li>G.711 (PCM) &#8211; 8000 samples per second @ 8 bits per sample = 64 kbps</li>
<li>G.726 (Adaptive Differencial PCM &#8211; ADPCM) &#8211; Variable bit rate of 32 kbps, 24 kbps, or 16 kbps</li>
<li>G.722 (Wideband Speech Encoding) &#8211; 2 subbands using modified ADPCM of 64 kpbs, 56kbps, or 48 kbps</li>
<li>G.728</li>
<li>G.729 &#8211; 10 samples per 10-bit code = 8 kbps</li>
</ul>
</li>
</ul>
<p><strong>Calculating Total Bandwidth</strong></p>
<ul>
<li>Step 1 &#8211; Determine codec and packetization period: What does the codec require in bandwidth?  How many samples per packet (usually 2)?</li>
<li>Step 2 &#8211; Determine link-specific overhead:  Encapsulation?  cRTP?</li>
<li>Step 3 &#8211; Calculate packetization size:  Size of voice payload; codec bandwidth * packetization period / 8 = voice payload in bytes</li>
<li>Step 4 &#8211; Calculate total frame size: IP + UDP + RTP + Tunneling + data link + packetization size</li>
<li>Step 5 &#8211; Calculate packet rate: 1 / packetization period (ex., 20ms packetization period is 1/0.020 = 50 packets per second)</li>
<li>Step 6 &#8211; Calculate total bandwidth:  Total frame size * packet rate</li>
</ul>
<p><strong>VAD and Bandwidth</strong></p>
<ul>
<li>Common for 1/3 of conversation to be silence</li>
<li>VAD bandwidth savings depends on:
<ul>
<li>Type of audio: regular phone call (two-way), conf call (one-way), music on hold (MOH)</li>
<li>Background noise: noise may be detected as voice</li>
<li>Other factors:  language, culture may influence amount of silence</li>
</ul>
</li>
</ul>
<p><strong>Enterprise VOIP Implementations</strong></p>
<ul>
<li>Consists of gateways, gatekeepers, Cisco Unified CallManagers (CCM), Cisco IP Phones</li>
<li>Routers can provide the voice gateway function by connecting the IP network to the WAN (and other gateways), PSTN, PBXes, etc.</li>
<li>Survivable Remote Site Telephony (SRST) allows local calling and use of PSTN while services are down</li>
</ul>
<p><strong>Functions of CCM</strong></p>
<ul>
<li>Call processing &#8211; routing, signaling, accounting</li>
<li>Dial plan administration -  call routing</li>
<li>Signaling and device control &#8211; configuration and instruction in case of events</li>
<li>Phone feature administration &#8211; button programming, profiles, etc.</li>
<li>Directory and XML</li>
<li>API for interface &#8211; allows custom programming for IP phones</li>
</ul>
<p><strong>Enterprise Deployment Models</strong></p>
<ul>
<li>Single-site: You have one site, and everything is there.</li>
<li>Multisite with centralized call processing: You have multiple sites, but the main site has the CCM cluster.</li>
<li>Multisite with distributed call processing: You have multiple sites, and each site has its own CCM cluster.</li>
<li>Clustering over WAN: You have multiple sites, and each site has a part of one big CCM cluster.</li>
</ul>
<p><strong>IOS Voice Commands</strong></p>
<blockquote>
<pre>----- R1 -----
! FXS on 1/1/2
Dial-peer voice 1 POTS
 destination-pattern 120
 port 1/1/2

! Extension 230 is on R2
Dial-peer voice 2 R2
 destination-pattern 230
 session target ipv4:10.1.1.2

----- R2 -----
! FXS on 2/2/1
Dial-peer voice 1 POTS
 destination-pattern 230
 port 2/2/1

! Extension
Dial-peer voice 2 R2
 destination-pattern 120
 session target ipv4:10.1.1.1</pre>
</blockquote>
<p><strong>Call Admission Control (CAC)</strong></p>
<ul>
<li>QoS can guarantee bandwidth but can only reserve so much (say, for 2 simultaneous calls).</li>
<li>CAC make sure that resources are available (denies a new call if 2 calls are already placed).</li>
<li>Dropped packets affect every call &#8211; not just the new ones</li>
</ul>
<p>&#8212;&#8211;</p>
<p>Additional Reading</p>
<ol>
<li><a title="Wikipedia's Sources for H.323" href="http://en.wikipedia.org/wiki/H.323#References">H.323 Sources on Wikipedia</a></li>
<li><a title="IETF RFC 3435" href="http://tools.ietf.org/html/rfc3435">MGCP &#8211; RFC 3435</a></li>
<li><a title="IETF RFC 3261" href="http://tools.ietf.org/html/rfc3261">SIP &#8211; RFC 3261</a></li>
<li><a title="Nyquist Theorem" href="http://en.wikipedia.org/wiki/Nyquist%E2%80%93Shannon_sampling_theorem">Nyquist Theorem on Wikipedia</a></li>
<li><a title="MPLS on Wikipedia" href="http://en.wikipedia.org/wiki/Multiprotocol_Label_Switching#How_MPLS_works">MPLS on Wikipedia</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2010/01/10/ont-notes-voip-networks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco IP Phone Videos at Blindhog.net</title>
		<link>http://aconaway.com/2008/05/08/cisco-ip-phone-videos/</link>
		<comments>http://aconaway.com/2008/05/08/cisco-ip-phone-videos/#comments</comments>
		<pubDate>Thu, 08 May 2008 18:45:48 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://aconaway.com/2008/05/08/cisco-ip-phone-videos/</guid>
		<description><![CDATA[Josh over at Blindhog.net has an article linking to a bunch of Cisco IP Phone videos &#8212; from the 7906 to the 7975. These are Cisco videos and a good place to start if you don&#8217;t know anything about their IP phones.]]></description>
			<content:encoded><![CDATA[<p>Josh over at <a href="http://blindhog.net" title="Blindhog.net -- Main">Blindhog.net</a> has an article linking to <a href="http://www.blindhog.net/cisco-ip-phone-video-tutorials/" title="Blindhog.net -- Cisco IP Phone Videos">a bunch of Cisco IP Phone videos</a> &#8212; from the 7906 to the 7975.  These are Cisco videos and a good place to start if you don&#8217;t know anything about their IP phones.</p>
]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2008/05/08/cisco-ip-phone-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
