<?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>CCNP Recertification &#187; Switching</title>
	<atom:link href="http://ccnprecertification.com/category/switching/feed/" rel="self" type="application/rss+xml" />
	<link>http://ccnprecertification.com</link>
	<description>Study notes for the Cisco CCNP exam</description>
	<lastBuildDate>Mon, 25 Jan 2010 15:26:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using a 3750 to test cables</title>
		<link>http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/</link>
		<comments>http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 05:15:18 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/</guid>
		<description><![CDATA[The 3750 (and it would appear, the 3560s, 4500s, and 6500s) have an integrated Time Domain Reflector which is used to test cables associated with a port. http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_25_see/command/reference/cli3.html#wp2168243 Today I was troubleshooting a problem at a newly renovated remote office with an IP phone that would power up but not boot. After swapping cables and [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/">Using a 3750 to test cables</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The 3750 (and it would appear, the 3560s, 4500s, and 6500s) have an integrated Time Domain Reflector which is used to test cables associated with a port.</p>
<p>http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_25_see/command/reference/cli3.html#wp2168243</p>
<p>Today I was troubleshooting a problem at a newly renovated remote office with an IP phone that would power up but not boot.  After swapping cables and phones, I remembered the TDR and tried it out:</p>
<pre><code>Switch# test cable-diagnostics tdr interface g1/0/14
TDR test started on interface Gi1/0/14
A TDR test can take a few seconds to run on an interface
Use 'show cable-diagnostics tdr' to read the TDR results.
Switch#show cable-diagnostics tdr  interface gigabitEthernet 1/0/14
TDR test last run on: March 04 22:31:09

Interface Speed Local pair Pair length        Remote pair Pair status
--------- ----- ---------- ------------------ ----------- --------------------
Gi1/0/14  auto  Pair A     19   +/- 4  meters N/A         Open
                Pair B     4    +/- 4  meters N/A         Open
                Pair C     20   +/- 4  meters N/A         Open
                Pair D     20   +/- 4  meters N/A         Open
</pre>
<p></code></p>
<p>Looks like a problem on Pair B!  You should have heard the suprise from the (telecom) guy on the other end of the line when I finally said "looks like a problem in the cabling, get the contractor to check pair B.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/">Using a 3750 to test cables</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2007/12/21/using-a-3750-to-test-cables/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Passed BCMSN</title>
		<link>http://ccnprecertification.com/2006/08/17/passed-bcmsn/</link>
		<comments>http://ccnprecertification.com/2006/08/17/passed-bcmsn/#comments</comments>
		<pubDate>Thu, 17 Aug 2006 18:52:46 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/2006/08/17/passed-bcmsn/</guid>
		<description><![CDATA[I just got back from passing 642-811. Even though I ended up with a 962 the number of questions that I thought &#8220;I think that&#8217;s the right answer&#8221; would have made me think my score would have been lower (though as I go back and check, it looks like I was right on most) Compared [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2006/08/17/passed-bcmsn/">Passed BCMSN</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I just got back from passing 642-811.  Even though I ended up with a 962 the number of questions that I thought &#8220;I think that&#8217;s the right answer&#8221; would have made me think my score would have been lower (though as I go back and check, it looks like I was right on most)</p>
<p>Compared with the previous incarnation, this one is far more in depth &#8212; more analysis of spanning trees, in depth question on multicast, HSRP, GLBP.  Several questions where you were given some show commands or debugs and asked to interpret what&#8217;s going on.  The simulations were very straightforward.<br />
<span id="more-80"></span><br />
I mostly used the new <a href="http://www.ciscopress.com/bookstore/product.asp?isbn=1587052199&#038;rl=1">CCNP Self-Study: Building Cisco Multilayer Switched Networks (BCMSN), 3rd Edition</a> (ISBN 1-58705-219-9)and some reading on cisco.com (and on the job experience, of course).  I also flipped through the corresponding exam prep guide by Cisco Press, though it turned out to be the second edition which older.</p>
<p>Cisco Press generally puts out two books for each exam, one is the exam certification guide that is focused on the exam.  The other is the foundation guide, which is basically the course notes that have been expanded into a book, and is what I used.</p>
<p>In this case, the exam prep guide was older and had some topics that were no longer valid, and were missing some content.  The foundation book was far more in depth on all the right topics.</p>
<p>I found the foundation guide to be well written, though when I was reading docs on STP on CCO I found them to be nearly identical to the book.  In most cases the book had done a good job of distilling the online content, though I remember one case where the online version had a worked out example for 802.1s/w that clarified a doubt I had.</p>
<p>All in all I&#8217;m happy with my results.  The book I used did a good job of guiding me through the topics that I don&#8217;t have experience in, and even pointed out a couple of things in the areas that I work with daily.  If I had to go back I&#8217;d have studied more on MST and multicast, which seemed to be the areas that I had the most problems.</p>
<p>I saved a <a href="http://del.icio.us/SeanW/bcmsn">lot of links</a> that might prove helpful.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2006/08/17/passed-bcmsn/">Passed BCMSN</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2006/08/17/passed-bcmsn/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multicast &#8211; PIM implementation and testing with MRM</title>
		<link>http://ccnprecertification.com/2006/07/11/multicast-pim-implementation-and-testing-with-mrm/</link>
		<comments>http://ccnprecertification.com/2006/07/11/multicast-pim-implementation-and-testing-with-mrm/#comments</comments>
		<pubDate>Tue, 11 Jul 2006 16:19:09 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Routing]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/2006/07/11/multicast-pim-implementation-and-testing-with-mrm/</guid>
		<description><![CDATA[Implementation of multicast, at least for the purposes of the CCNP BCMSN exam, is pretty simple. Cisco has the Multicast Quick-Start Configuration Guide which goes over many different ways of doing it. The exam seems to only care about Protocol Independent Multicast (PIM), which uses the router&#8217;s routing table to determine whether or not a [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2006/07/11/multicast-pim-implementation-and-testing-with-mrm/">Multicast &#8211; PIM implementation and testing with MRM</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Implementation of multicast, at least for the purposes of the CCNP BCMSN exam, is pretty simple.  Cisco has the <a href="http://www.cisco.com/en/US/tech/tk828/technologies_tech_note09186a0080094821.shtml">Multicast Quick-Start Configuration Guide</a> which goes over many different ways of doing it.</p>
<p>The exam seems to only care about Protocol Independent Multicast (PIM), which uses the router&#8217;s routing table to determine whether or not a multicast packet is to be forwarded.  When packet is received on an interface the router looks at the route back to the source.  If the interface the packet was received on is the same as the one it would use to send a response, the <b>reverse path forwarding</b> test is sucessful and the packet is forwarded.</p>
<p>PIM operates in two modes, sparse and dense.  In sparse mode it is assumed that most people don&#8217;t care about the stream and therefore the router must explicity add branches to the multicast tree.  In dense mode it is assumed that there are a lot of listeners, and it is the obligation of the router to prune.  This is handled through IGMP which is another article.</p>
<p>Consider the following network:<br />
<a class="imagelink" href="http://ccnprecertification.com/wp-content/uploads/2006/07/multicast1.jpg" title="multicast1.jpg"><img id="image77" src="http://ccnprecertification.com/wp-content/uploads/2006/07/multicast1.jpg" alt="multicast1.jpg" height="51" width="128" /></a></p>
<p>R5 has its E0 interface shut down so that the serial link is used.</p>
<p>I set up everything in PIM dense mode, meaning I needed only</p>
<pre><code>ip pim dense-mode</pre>
<p></code></p>
<p>on every interface.</p>
<p>From R0</p>
<pre><code>
r0#show ip pim neighbor
PIM Neighbor Table
Neighbor          Interface                Uptime/Expires    Ver   DR
Address                                                            Prio/Mode
2.2.2.1           Multilink1               1d02h/00:01:43    v2    1 / S
10.50.0.3         Ethernet0                1d02h/00:01:24    v2    1 / DR S
</pre>
<p></code></p>
<p>the output of that shows two PIM adjacencies, one out the multilink (R1) and one on the Ethernet (R3).  Under the "Mode" column, S means "state refresh capable" and DR means that the router is the designated router for the segment.</p>
<p>To test multicast, I used <a href="http://www.cisco.com/en/US/products/sw/iosswrel/ps1835/products_configuration_guide_chapter09186a00800ca79a.html">Multicast Routing Monitor</a> to generate traffic:</p>
<pre><code>
r1#show run int mu1
Building configuration...

Current configuration : 138 bytes
!
interface Multilink1
 ip address 2.2.2.1 255.255.255.252
 ip pim sparse-mode
 ip mrm test-sender
 ppp multilink
 multilink-group 1
end
</pre>
<p></code><br />
R0:</p>
<pre><code>
ip mrm manager test1
 manager Ethernet0 group 239.1.1.1
 senders 1
 receivers 2 sender-list 1
access-list 1 permit 2.2.2.1
access-list 2 permit 5.5.5.5
access-list 2 permit 10.50.0.3
r3#show run int e0
Building configuration...

Current configuration : 111 bytes
!
interface Ethernet0
 ip address 10.50.0.3 255.255.255.0
 ip pim sparse-dense-mode
 ip mrm test-receiver
end
</pre>
<p></code></p>
<p>A similar receiver exists on R5's loop0.</p>
<p>The mrm tester on R0 sets up a multicast stream from 2.2.2.1 to 5.5.5.5 and 10.50.0.3 using multicast group 239.1.1.1:</p>
<pre><code>
r0#show ip mrm manager
Manager:test1/10.50.0.1 is not running
  Beacon interval/holdtime/ttl:60/86400/32
  Group:239.1.1.1, UDP port test-packet/status-report:16384/65535
  Test senders:
    2.2.2.1
  Test receivers:
    5.5.5.5                  10.50.0.3
</pre>
<p></code></p>
<p>Finally, the test can be started:</p>
<pre><code>
r0#mrm test1 start
r0#
1d03h: IP MRM test 'test1' starts ......
1d03h: IP MRM status report -- Test:test1  Receiver:10.50.0.3
1d03h:   Sender:2.2.2.1          Pkt Loss:1(4%)  Ehsr:8
1d03h: IP MRM status report -- Test:test1  Receiver:5.5.5.5
1d03h:   Sender:2.2.2.1          Pkt Loss:5(20%)  Ehsr:0
1d03h: IP MRM status report -- Test:test1  Receiver:10.50.0.3
1d03h:   Sender:2.2.2.1          Pkt Loss:1(4%)  Ehsr:8
1d03h: IP MRM status report -- Test:test1  Receiver:5.5.5.5
1d03h:   Sender:2.2.2.1          Pkt Loss:5(20%)  Ehsr:0
1d03h: IP MRM status report -- Test:test1  Receiver:5.5.5.5
1d03h:   Sender:2.2.2.1          Pkt Loss:15(60%)  Ehsr:0
1d03h: IP MRM status report -- Test:test1  Receiver:5.5.5.5
1d03h:   Sender:2.2.2.1          Pkt Loss:20(80%)  Ehsr:0
1d03h: IP MRM status report -- Test:test1  Receiver:5.5.5.5
1d03h:   Sender:2.2.2.1          Pkt Loss:25(100%)  Ehsr:0
1d03h: IP MRM status report -- Test:test1  Receiver:5.5.5.5
1d03h:   Sender:2.2.2.1          Pkt Loss:25(100%)  Ehsr:0
</pre>
<p></code></p>
<p>I see a bit of loss at the beginning, but after that it stops:</p>
<pre><code>
r0#show ip mrm manager
Manager:test1/10.50.0.1 is running, expire:23:56:53
  Beacon interval/holdtime/ttl:60/86400/32
  Group:239.1.1.1, UDP port test-packet/status-report:16384/65535
  Test senders:
    2.2.2.1          /Ack
  Test receivers:
    5.5.5.5          /Ack    10.50.0.3        /Ack
</pre>
<p></code></p>
<p>From R5, looking at the multicast route:</p>
<pre><code>
r5#show ip mroute 239.1.1.1
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report, Z - Multicast Tunnel
       Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 239.1.1.1), 00:06:43/stopped, RP 10.50.0.3, flags: SJPC
  Incoming interface: Ethernet0, RPF nbr 10.50.0.3
  Outgoing interface list: Null

(2.2.2.1, 239.1.1.1), 00:06:43/00:02:54, flags: PTX
  Incoming interface: Ethernet0, RPF nbr 10.50.0.1
  Outgoing interface list: Null
r0#show ip mroute 239.1.1.1
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 239.1.1.1), 01:27:52/stopped, RP 10.50.0.3, flags: SJCF
  Incoming interface: Ethernet0, RPF nbr 10.50.0.3
  Outgoing interface list:
    Multilink1, Forward/Dense, 01:27:52/00:00:00

(2.2.2.1, 239.1.1.1), 01:27:52/00:02:51, flags: FT
  Incoming interface: Multilink1, RPF nbr 0.0.0.0
  Outgoing interface list:
    Ethernet0, Forward/Dense, 00:05:32/00:00:00, A

r3#show ip mroute 239.1.1.1
IP Multicast Routing Table
Flags: D - Dense, S - Sparse, B - Bidir Group, s - SSM Group, C - Connected,
       L - Local, P - Pruned, R - RP-bit set, F - Register flag,
       T - SPT-bit set, J - Join SPT, M - MSDP created entry,
       X - Proxy Join Timer Running, A - Candidate for MSDP Advertisement,
       U - URD, I - Received Source Specific Host Report,
       Z - Multicast Tunnel, z - MDT-data group sender,
       Y - Joined MDT-data group, y - Sending to MDT-data group
Outgoing interface flags: H - Hardware switched, A - Assert winner
 Timers: Uptime/Expires
 Interface state: Interface, Next-Hop or VCD, State/Mode

(*, 239.1.1.1), 01:28:24/00:03:25, RP 10.50.0.3, flags: SJCL
  Incoming interface: Null, RPF nbr 0.0.0.0
  Outgoing interface list:
    Ethernet0, Forward/Sparse-Dense, 01:28:23/00:03:25

(2.2.2.1, 239.1.1.1), 01:28:24/00:02:59, flags: PLT
  Incoming interface: Ethernet0, RPF nbr 10.50.0.1
  Outgoing interface list: Null
</pre>
<p></code></p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2006/07/11/multicast-pim-implementation-and-testing-with-mrm/">Multicast &#8211; PIM implementation and testing with MRM</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2006/07/11/multicast-pim-implementation-and-testing-with-mrm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Multicast</title>
		<link>http://ccnprecertification.com/2006/07/10/multicast/</link>
		<comments>http://ccnprecertification.com/2006/07/10/multicast/#comments</comments>
		<pubDate>Mon, 10 Jul 2006 15:43:53 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/2006/07/10/multicast/</guid>
		<description><![CDATA[I labbed up some Multicast stuff a while ago and only now am sitting down to write it. I&#8217;d like to write BCMSN by the end of the month because I&#8217;m taking two weeks off at the beginning of August where I won&#8217;t be near the Internet (or my routers) too often. What is multicast? [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2006/07/10/multicast/">Multicast</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I labbed up some Multicast stuff a while ago and only now am sitting down to write it.  I&#8217;d like to write BCMSN by the end of the month because I&#8217;m taking two weeks off at the beginning of August where I won&#8217;t be near the Internet (or my routers) too often.</p>
<h2>What is multicast?</h2>
<p><b>Multicast</b> is &#8220;one to many&#8221;, rather than &#8220;one to one&#8221; for unicast, and &#8220;one to all&#8221; for broadcast.  The basic premise is that one host sends a packet to a <b>multicast group</b>, and only people interested get the traffic.  The trick here is how to serve traffic to interested people while not flooding the network unnecessarily.</p>
<p>&#8220;Unnecessarily&#8221; means that the network doesn&#8217;t have to carry the traffic multiple times.  If a multicast stream goes to 5 people, only one copy is sent.  Routers and switches replicate the traffic as necessary, ensuring that traffic is kept to a minimum.</p>
<h2>Multicast addressing</h2>
<p>Multicast uses the class D address space, from 224.0.0.0 to 239.255.255.255.  224.0.0.0/24 is reserved for local LAN use (ie traffic that shouldn&#8217;t cross a router), 224.0.1.0/24 is for network control, and 239.0.0.0/8 is the &#8220;Administratively Scoped&#8221;, ie local use block.  There are some other designations, but those are the main ones.</p>
<p>A host sends a packet <strong>to</strong> a multicast address, and never from.  However there must be a layer 2 address to send the traffic to, one that must be recognized as a multicast and treated appropriately.</p>
<p>The IP multicast address consists of 28 bits.  The ethernet multicast consists of 23.  Thus, 5 bits are ignored, leading to 32 IP multicast addresses corresponding to each MAC address.</p>
<p>To convert from IP to MAC, simply take the 23 lower order bits of the IP address and prepend 01.00.5e.  So, 224.0.0.1 becomes 0100.5e00.0001.  The easiest way (that I can think of is)</p>
<p>- write down 0100.5e and ignore the first (from the left) octet of the IP address<br />
- If the second octet of the IP is > 128, then subtract 128 from it (to compensate for the ignored 24th bit)<br />
- convert the three octets to hex and copy into the MAC address</p>
<p>Likewise, to go from MAC to IP</p>
<p>- Drop the 0100.5e<br />
- Convert each pair of nybbles left into decimal<br />
- The valid multicast groups are then {224-239}.{x1,y1}.x2.x3 where y1 = the first decimal number + 128</p>
<p>ie</p>
<p>0100.5e10.7101 becomes 0&#215;10, 0&#215;71, 0&#215;01 which is 16 113 1</p>
<p>Valid multicast addresses are then 224.16.113.1, 224.144.113.1, 225.16.113.1, and so forth.</p>
<p>Next up is some sample PIM configuration and how to test multicast.  I&#8217;m not sure how detailed the exam gets, from what I&#8217;ve heard it&#8217;s pretty light, focusing mostly on the above.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2006/07/10/multicast/">Multicast</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2006/07/10/multicast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hardware priority queues on Catalyst switches</title>
		<link>http://ccnprecertification.com/2006/06/08/hardware-priority-queues-on-catalyst-switches/</link>
		<comments>http://ccnprecertification.com/2006/06/08/hardware-priority-queues-on-catalyst-switches/#comments</comments>
		<pubDate>Fri, 09 Jun 2006 03:36:23 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://ccnprecertification.com/2006/06/08/hardware-priority-queues-on-catalyst-switches/</guid>
		<description><![CDATA[Just a note while I come up for air&#8230; On most switches with a hardware priority queue (egress expedite queue) like the 3550, it&#8217;s statically assigned to queue 4 (on switches with 4 queues). Some switches like the 4500s let you switch the queue, but generally it&#8217;s on silicon so you&#8217;re stuck. No problem. However, [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2006/06/08/hardware-priority-queues-on-catalyst-switches/">Hardware priority queues on Catalyst switches</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Just a note while I come up for air&#8230;</p>
<p>On most switches with a hardware priority queue (egress expedite queue) like the 3550, it&#8217;s statically assigned to queue 4 (on switches with 4 queues).  Some switches like the 4500s let you switch the queue, but generally it&#8217;s on silicon so you&#8217;re stuck.  No problem.</p>
<p>However, on the 3560 it&#8217;s queue 1.  Luckily the commands are different (wrr-queue vs srr-queue) but it&#8217;s not exactly obvious that the pq isn&#8217;t in the same place.  </p>
<p>I haven&#8217;t checked the 3750 series, I suspect they&#8217;ll also be on queue 1.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2006/06/08/hardware-priority-queues-on-catalyst-switches/">Hardware priority queues on Catalyst switches</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2006/06/08/hardware-priority-queues-on-catalyst-switches/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spanning Tree Protocol</title>
		<link>http://ccnprecertification.com/2004/07/27/spanning-tree-protocol/</link>
		<comments>http://ccnprecertification.com/2004/07/27/spanning-tree-protocol/#comments</comments>
		<pubDate>Tue, 27 Jul 2004 14:06:53 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://ertw.com/ccnp/?p=23</guid>
		<description><![CDATA[The Spanning Tree Protocol (STP) exists to build a loop free path on layer two. The exam outline has the following items related to STP: Explain the operation and purpose of the Spanning-Tree Protocol (STP) on a switched network Enable Spanning Tree on ports and VLANs Configure Spanning Tree parameters including: port priority, VLAN priority, [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2004/07/27/spanning-tree-protocol/">Spanning Tree Protocol</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The <b>Spanning Tree Protocol</b> (<b>STP</b>) exists to build a loop free path on layer two.</p>
<p>The <a href="http://www.cisco.com/warp/public/10/wwtraining/certprog/testing/current_exams/642-891.html">exam outline</a> has the following items related to STP:</p>
<ol>
<li>Explain the operation and purpose of the Spanning-Tree Protocol (STP) on a switched network</p>
<li>Enable Spanning Tree on ports and VLANs
<li>Configure Spanning Tree parameters including: port priority, VLAN priority, root bridge, BPDU guard, PortFast amd UplinkFast
<li>Tune and troubleshoot spanning-tree protocol on a multilayer switched network to enhance network performance, prevent network loops, and minimize downtime
</ol>
<h2>The example</h2>
<p>The network that I&#8217;ll be demonstrating STP on is below:</p>
<p><a href="http://ccnprecertification.com/archives/stp.html"><img src="http://ccnprecertification.com/archives/stp-thumb.jpg" width="80" height="41" border="0" /></a></p>
<p>All the switches are redundantly connected, forming a <b>loop</b>.  Consider the case where a host on switch 1 sends a packet to a host on another switch.  S1 does not have the packet in its <b>CAM table</b> (a mapping of MAC addresses to ports), so it <b>floods</b> the packet to all connected ports, ie S2 and S3.</p>
<p>S2 and S3 are in the same situation, not knowing where the packet is to go.  They flood the packet to all the ports (except the one it came in, of course).  S2 sends it to S3, S3 sends it to S2.  Neither knows where it is, so they both send to S1.  A loop is formed, the packets continue to flood, and the results aren&#8217;t pretty.  This is why IP has a <b>Time To Live</b> field.</p>
<p>The solution to the problem is to artificially induce a break in the network to stop the loop.  The problem, though, is that this must be done deterministically, since switches don&#8217;t share the entire topology.  That is, each switch must know if it has to shut down a port.  If they were to accidentally shut down the wrong port, the network would be broken.  STP&#8217;s job is to come up with the loop free topology, and allow each switch to make the decision as to if it needs to shut any ports down.</p>
<h2>Spanning Tree Algorithm</h2>
<p>The first step is for all nodes on the network to elect a <b>Root Bridge</b>.  The root bridge forms the basis for all the calculations.  The &#8220;Tree&#8221; from Spanning Tree implies a tree structure, the root bridge is the root (bottom) of the tree.</p>
<p>Each switch periodically sends out <b>Bridge Protocol Data Units</b>, or <b>BPDU</b>s.  Each BPDU includes the <b>bridge ID</b> (a two byte priority combined with the 6 byte MAC address) of both the device that the sender thinks is the root bridge, and that of the sender, the id of the port that sent the BPDU, and the path cost from the sender to the root bridge.</p>
<p>Upon receiving a BPDU, the switch examines the bridge ID of the root bridge that it received from the neighbour, and that of itself.  The <i>lowest bridge ID wins</i>.  If the received bridge id is lower, the switch sets the known root bridge ID to the received one and continues on.  If not, the other switch will learn about it when it gets the next BPDU.  BPDUs are not passed through the switch, they are regenerated by each switch using the latest information.</p>
<p>Each switch starts off assuming it is the root bridge, and sets the root bridge ID to the default priority (32768, or 0xF0) and its MAC address.  Note that if two priorities are equal, it is the lowest MAC address that wins.</p>
<p>In the network above, all switches send out BPDUs saying they are the root bridge.  Assuming priorities are the same, S3 will receive BPDUs from S1 and S2, and choose S1 as the root bridge.  The next time it sends out BPDUs, it will say that the root bridge is S1.  Likewise, S2 will figure S1 as the root bridge.  S1 will see the BPDUs from S2 and S3 but not change its perception of the network.</p>
<p>Once a root bridge is elected, each non root switch figures out which port is closest to the root bridge by looking at the cost field in the BPDU (assuming multiple paths to the root are found).  When a BPDU comes in to a switch, it adds the local cost of the link to the received value.  BPDUs coming from the root bridge will have a value of 0.  The port with the lowest cost wins, or in the case of a tie, the lowest port id.</p>
<p>The following table summarizes the costs:</p>
<table>
<tr>
<th>Link speed</th>
<th>New cost</th>
<th>Old Cost</th>
</tr>
<tr>
<td>10G</td>
<td>2</td>
<td>1</td>
</tr>
<tr>
<td>1G</td>
<td>4</td>
<td>1</td>
</tr>
<tr>
<td>100M</td>
<td>19</td>
<td>10</td>
</tr>
<tr>
<td>10M</td>
<td>100</td>
<td>100</td>
</tr>
</table>
<p>The old specification was based on 1Gbit/sec, so anyhting higher had the same cost.  The new spec uses arbitrary numbers.</p>
<p>In the example above, assuming all ports are 100Mbit, S1 will advertise a cost of 0 to S2 and S3&#8242;s Fa0/1 interfaces.  S2 will advertise a cost of 19 (0 + the received link cost of 19) to S3, and S3 will advertise 19 to S2.  They will both choose Fa0/1 as the root port because the cost is only 19, as opposed to 38 by choosing Fa0/2.</p>
<p>The next step is to calculate the designated port.  Each segment needs a designated port.  The picture above has three segments, ie the links between each switch.  By default, the root bridge&#8217;s ports are all designated ports, so that one is easy.  The only one up in the air is the S2-S3 link.</p>
<p>First, the root path cost is evaluated.  Both have a cost of 38 to the root, so that&#8217;s a tie.  The bridge ID is examined, meaning S2&#8242;s Fa0/2 is the designated port for the segment.  If this were a tie (ie two links to the same switch), the lowest port ID would have been chosen.</p>
<p>At this point, anything that is not a root port or a designated port is blocked.  S3&#8242;s Fa0/2 blocks (ie doesn&#8217;t send or receive packets), breaking the loop in the network.</p>
<h2>The whole process brought together</h2>
<p>Now that the process of building the tree is out of the way, the actual operation of STP differs slightly.</p>
<p>First the concept of port states must be introduced.  A port moves through various states and behaves differently at each step. </p>
<p>A port starts off as <b>blocking</b>, meaning it listens only for BPDUs to understand the topology, and does not send anything.  From blocking, it moves to <b>listening</b>, where it participates in the BPDU process.  Here the root bridge election happens, and the spanning tree is built.  From here, it goes to <b>learning</b> (assuming the port wasn&#8217;t blocked for loop avoidance purposes).  In learning state, it builds the MAC/CAM table based on what it hears (though it doesn&#8217;t pass any frames).  After learning, the port is in <b>forwarding</b> mode where it works like normal.</p>
<p>BPDUs are sent out every two seconds using a multicast frame.  BPDUs are only sent out on designated ports.  In reality, there are two types of BPDUs, <b>configuration BPDU</b>s and <b>topology change notification</b> (TCN) BPDUs.  The root bridge constantly sends out the configuration BPDUs out the designated ports, and not out the root port (ie not toward the root).</p>
<p>If an event happens (ie a link state or port mode changes), the switch starts sending TCNs out the root port until they are acknowledged by the upstream switch.  This switch does the same until the root switch hears the TCN.  The root then sends out a configuration BPDU with the topology change bit set for 35 seconds (max_age + forward_delay in the next section).  Devices receiving this age out CAM tables entries faster (forward_delay instead of the regular 300s).  The regular STP process will then cause the new link to be brought up and the tree rebuilt as necessary.</p>
<h2>Timing Summary</h2>
<p>A port stays in blocking for 20s called the <b>max_age</b><br />
A port stays in listening mode for 15s, called the <b>forward_delay</b><br />
forward_delay also specifies how long the port stays in learning mode.</p>
<p>Thus, the time for a backup link to move from blocking to forwarding after a failure is 20+15+15s = 50s.  This can of course be changed by adjusting the timers.</p>
<p><a href="http://www.cisco.com/univercd/cc/td/doc/product/rtrmgmt/sw_ntman/cwsimain/cwsi2/cwsiug2/vlan2/stpapp.htm">Understanding Spanning-Tree Protocol</a></p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2004/07/27/spanning-tree-protocol/">Spanning Tree Protocol</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2004/07/27/spanning-tree-protocol/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Network Management Features</title>
		<link>http://ccnprecertification.com/2004/03/29/network-management-features/</link>
		<comments>http://ccnprecertification.com/2004/03/29/network-management-features/#comments</comments>
		<pubDate>Mon, 29 Mar 2004 19:20:09 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://ertw.com/ccnp/?p=18</guid>
		<description><![CDATA[In a pretty naked marketing attempt, the following objective appears on the outline: Describe the features and operation of network analysis modules on Catalyst switches to improve network traffic management Most of what I found on this is from the Network Analysis Module (NAM-1/NAM-2) page. The NAM 1/2 data sheets provide more information on what [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2004/03/29/network-management-features/">Network Management Features</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>In a pretty naked marketing attempt, the following objective appears on the outline:</p>
<ul>
<li>Describe the features and operation of <b>network analysis module</b>s on Catalyst switches to improve network traffic management
</ul>
<p>Most of what I found on this is from the <a href="http://cisco.com/en/US/products/hw/modules/ps2706/ps5025/index.html">Network Analysis Module (NAM-1/NAM-2)</a> page.  The <a href="http://cisco.com/en/US/products/hw/modules/ps2706/products_data_sheet09186a00800a2c89.html">NAM 1/2 data sheets</a> provide more information on what this really does.</p>
<p>It&#8217;s actually pretty simple.  Switches, by default, support <a href="http://cisco.com/en/US/tech/tk648/tk362/tk560/tech_protocol_home.html">RMON</a>.  Routers also support <a href="http://cisco.com/en/US/products/sw/iosswrel/ps1831/products_configuration_guide_chapter09186a00800ca6cb.html">NetFlow Export</a>, which allows for layer 4 statistics to be obtained.</p>
<p>The NAM serves two main purposes.  One is to listen on the backplane of the Catalyst 6500 and gather statistics.  An on board web server lets you view them.  The NAM can also collect netflow statistics from other devices.  These NAMs can also report up to the<a href="http://cisco.com/en/US/products/sw/cscowork/ps2803/index.html">nGenius Real-Time Monitor</a>, part of <a href="http://www.cisco.com/en/US/products/sw/cscowork/ps2425/index.html">CiscoWorks Lan Mananagement</a>.</p>
<p>As it pertains to the exam, I&#8217;m not sure what can be asked about the product other than basic features.  I&#8217;d suggest reading through the data sheet, and be  familiar with RMON and NetFlow concepts.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2004/03/29/network-management-features/">Network Management Features</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2004/03/29/network-management-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>802.1Q Tunneling</title>
		<link>http://ccnprecertification.com/2004/03/17/8021q-tunneling/</link>
		<comments>http://ccnprecertification.com/2004/03/17/8021q-tunneling/#comments</comments>
		<pubDate>Wed, 17 Mar 2004 17:44:38 +0000</pubDate>
		<dc:creator>sean</dc:creator>
				<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://ertw.com/ccnp/?p=8</guid>
		<description><![CDATA[While I haven&#8217;t covered 802.1Q yet, I wanted to look at &#8220;QinQ&#8220;, allowing service providers to tunnel 802.1Q over their own managed ethernet network, which is likely running 802.1Q for customer separation. Describe the features and operation of 802.1Q Tunneling (802.1QinQ) within a service provider network Describe the operation and purpose of managed VLAN services [...]<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2004/03/17/8021q-tunneling/">802.1Q Tunneling</a></p>

No related posts.

Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>While I haven&#8217;t covered <b>802.1Q</b> yet, I wanted to look at &#8220;<b>QinQ</b>&#8220;, allowing service providers to tunnel 802.1Q over their own managed ethernet network, which is likely running 802.1Q for customer separation.</p>
<ol>
<li>Describe the features and operation of <b>802.1Q Tunneling</b> (<b>802.1QinQ</b>) within a service provider network
<li>Describe the operation and purpose of managed VLAN services
</ol>
<p><a href="http://www.cisco.com/en/US/about/ac123/ac114/about_cisco_packet_magazine.html">Packet Magazine</a> ran an article about <a href="http://www.cisco.com/en/US/about/ac123/ac114/ac173/ac224/about_cisco_packet_technology0900aecd800b19a7.html">ip tunneling</a>, and as a good description of QinQ:</p>
<blockquote><p>Some service providers want to offer transparent LAN services that preserve and extend customers&#8217; <b>virtual LAN</b> (VLAN) groupings and associated access privileges across a metropolitan-area network (MAN) and, possibly, a WAN. To do this, they can use Cisco 802.1Q Tunneling (also called Cisco 802.1Q-in-Q).</p></blockquote>
<blockquote><p>Cisco 802.1Q Tunneling enables service providers to use a single VLAN to securely transport most or all of a single customer&#8217;s VLANs across their MAN or WAN backbone. In this case, the software adds an extra 802.1Q tag to customer traffic in the switch at the edge of the service provider&#8217;s network. This tag assigns a unique VLAN ID number to each customer to keep each customer&#8217;s VLAN traffic segregated and private.</p></blockquote>
<blockquote><p>The tag also enables as many as 4094 customer VLANs to be backhauled across a single service provider VLAN through the use of a tunnel port that is assigned to each customer site. All of a single customer&#8217;s VLANs that are configured in the tunnel port on the service provider&#8217;s WAN edge switch are aggregated and backhauled over a single VLAN.</p></blockquote>
<blockquote><p>Service providers do not have to assign a unique VLAN ID number to each individual customer VLAN, which quickly consumes the 4094-ID VLAN space supported by Ethernet&#8217;s 802.1Q technology. In this way, encapsulating multiple customer 802.1Q VLANs into a single service provider 802.1Q VLAN (thus the name, &#8220;Q in Q&#8221;) affords service providers a scalable approach to offering Ethernet services. To transport not only customers&#8217; data traffic but also customers&#8217; Layer 2 control traffic (such as Spanning Tree, Cisco Discovery Protocol, and VLAN Trunking Protocol), service providers must configure on 802.1Q tunneling ports Cisco Layer 2 Protocol Tunneling, a separate feature that is available in the same Cisco IOS&reg; Software release.
</p></blockquote>
<p>In a nutshell, QinQ allows a service provider to give the customer a port that is mapped to a VLAN in the service provider network, letting the customer run a .1Q tunnel over it without having to worry about VLANid collisions.</p>
<p>A port configured to support 802.1Q tunneling is called a <b>tunnel port</b> (this is on the provider end).  The customer simply configures their end of the connection as a regular 802.1Q tunnel.  Within the service provider cloud, the links are carried as regular .1Q ports.</p>
<p>A very simplified way to look at the packet is as follows:</p>
<p><img alt="taggedpacket.jpg" src="http://ccnprecertification.com/archives/taggedpacket.jpg" width="599" height="273" border="0" /></p>
<p>On the left, the customer passes a regular 802.1Q tagged packet to the provider&#8217;s tunnel port.  The provider appends its own customer specific VLAN id to it and passes it through the cloud.  Upon egress, the provider VLAN tag is removed and the customer sees a packet just as if it came from the other customer switch.</p>
<p>Consider the following network:</p>
<p><img alt="customer.jpg" src="http://ccnprecertification.com/archives/customer.jpg" width="600" height="361" border="0" /></p>
<p>Customer A and B both use VLANs 6 and 7, but it doesn&#8217;t matter, because the provider has given them their own tags, say 2 and 3 (or even 6 and 7 for all it matters).</p>
<p><a href="http://cisco.com/en/US/products/hw/switches/ps700/products_configuration_guide_chapter09186a008007fa06.html">Configuring 802.1Q tunneling in CatOS</a> is fairly easy.</p>
<pre>
! enable the feature on the switch
set dot1q-all-tagged enable
! Set it up on the port
set port dot1qtunnel mod/port access</pre>
<p>Verify with
<pre>show port dot1qtunnel mod/port</pre>
<p>Likewise, <a href="http://cisco.com/en/US/products/hw/switches/ps708/products_configuration_guide_chapter09186a00800eac34.html">Configuring 802.1Q tunneling in IOS</a> is also easy:</p>
<pre>
! Native VLAN traffic from customer should be tagged
Router(config)# vlan dot1q tag native
Router(config-if)# spanning-tree portfast trunk
Router(config-if)# switchport
Router(config-if)# switchport mode dot1qtunnel
</pre>
<pre>show dot1q-tunnel interface</pre>
<p> is used to show the tunnels.</p>
<p>I&#8217;m not sure how much depth the CCNP exam will get into, but some of the restrictions mentioned on the top of both of the articles may come into play.  For one, since the frame is an encapsulated 802.1Q packet, it can not be routed!  The IP headers are part of the underlying packet, which can not be inspected.  Thus, many of the other mechanisms like QoS and filtering can not be done within the cloud, I suspect they would have to be applied at the service provider edge.</p>
<p>Content Copyright Sean Walberg<br/><br/><a href="http://ccnprecertification.com/2004/03/17/8021q-tunneling/">802.1Q Tunneling</a></p>
<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://yarpp.org'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://ccnprecertification.com/2004/03/17/8021q-tunneling/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

