<?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>Community String &#187; Routing</title>
	<atom:link href="http://communitystring.com/category/routing/feed/" rel="self" type="application/rss+xml" />
	<link>http://communitystring.com</link>
	<description>My personal CCIE study notes for the Routing &#38; Switching track</description>
	<lastBuildDate>Wed, 20 Apr 2011 10:54:01 +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>OSPF Network Types</title>
		<link>http://communitystring.com/2009/11/ospf-network-types/</link>
		<comments>http://communitystring.com/2009/11/ospf-network-types/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 16:13:32 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[OSPF]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=415</guid>
		<description><![CDATA[Quick bit of a refresh on OSPF network types, these are specified on a per link basis and it changes the way OSPF behaves on that link specifying the wrong type can cause bad things to happen such as if you mix DR &#38; Non DR types adjacencies wont form correctly. There are 5 network types, [...]]]></description>
			<content:encoded><![CDATA[<p>Quick bit of a refresh on OSPF network types, these are specified on a per link basis and it changes the way OSPF behaves on that link specifying the wrong type can cause bad things to happen such as if you mix DR &amp; Non DR types adjacencies wont form correctly.</p>
<p>There are 5 network types,</p>
<ol>
<li>Point to Point &#8211; Should be used as the name implies on P2P links which support broadcast, nearly all OSPF traffic is sent to the ALLSPFRouters address which is 224.0.0.5, although retransmitted LSAs are sent to the unicast address as such these links should support broadcasting.</li>
<li>Broadcast &#8211; This is the default network type for Ethernet networks, as this network type is capable of having adjacencies with multiple routers. To prevent unnecessary meshing <a href="http://communitystring.com/2008/07/ospf-designated-routers/">DR &amp; BDR elections</a> take place. Communications from the DR &amp; BDR take place on the ALLDRRouters address 224.0.0.6 whilst all other communications on 224.0.0.5. As the name implies the layer 2 network must support broadcasting.</li>
<li>Non Broadcast Multiple Access (NBMA) &#8211; This is the default configuration on a serial interface, and is classified as a link which is able to send to multiple other routers via the single link but with no broadcasting, therefore neighbour statements must be manually set. A DR &amp; BDR will still be elected but all communication is unicast, the hello and dead timers change from the defaults to 30 and 120 seconds.</li>
<li>Point to Multipoint networks &#8211; All communication is unicast and no DR or BDR election takes place an ideal placement for this would be in the hub in a hub and spoke topology. </li>
<li>Virtual Links &#8211; Packets sent over Virtual Links are unicast and perceived as unnumbered point to point connections</li>
</ol>
<p>Its pretty simple to change the network type its all done under the interface like so.</p>
<pre>Router(config-if)#ip ospf network ?
  broadcast            Specify OSPF broadcast multi-access network
  non-broadcast        Specify OSPF NBMA network
  point-to-multipoint  Specify OSPF point-to-multipoint network
  point-to-point       Specify OSPF point-to-point network</pre>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2009/11/ospf-network-types/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ODR is freaking awesome!</title>
		<link>http://communitystring.com/2009/11/odr-is-freaking-awesome/</link>
		<comments>http://communitystring.com/2009/11/odr-is-freaking-awesome/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 23:38:23 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[Routing]]></category>
		<category><![CDATA[CDP]]></category>
		<category><![CDATA[ODR]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=419</guid>
		<description><![CDATA[In a nutshell On-Demand Routing (ODR) is simply freaking awesome for hub and spoke environments. In hub and spoke enviornemnts before ODR there was generally two choices to the deployment Have default routes on the spokes pointing to the hub and static routes back. But frankly this was a pain as there was an administrative [...]]]></description>
			<content:encoded><![CDATA[<p>In a nutshell On-Demand Routing (ODR) is simply freaking awesome for hub and spoke environments.</p>
<p>In hub and spoke enviornemnts before ODR there was generally two choices to the deployment</p>
<ol>
<li>Have default routes on the spokes pointing to the hub and static routes back. But frankly this was a pain as there was an administrative burden as you have to manually add/remove each spoke as needed.</li>
<li>Run a routing protocol on the spokes which communicates reachability information with the hub but this is unnecessary as the spokes are dead end streets they don&#8217;t need more topology information than a default route and generally the spoke routers aren&#8217;t the best in the network so it an unneeded overhead.</li>
</ol>
<p>But this is were On-Demand Routing (ODR) comes to the rescue . Now ODR is not a routing protocol, the spoke routers send details of attached networks via CDP to neighbouring routers and when ODR is enabled the network information is simply installed into the IP routing table. Each of the spokes only needs to have a default route pointing to the hub and have CDP enabled which is on by default and thats it. The routes it collects have an AD of 160 with a metric of 1 (only 1 hop away), the routes that ODR collected can then be redistributed into your IGP of choice. <img src='http://communitystring.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>If you don&#8217;t believe me that its that simple check out the configuration below<br />
<img src="http://communitystring.com/media/SimpleHubAndSpoke.jpg" alt="Simple Hub and Spoke Cisco Topology" /></p>
<p>Firstly we just enable it with the</p>
<pre>router odr</pre>
<p>command, this is a single command which only needs to be configured on the hub, the spokes dont need it.</p>
<pre>R0(config)#router odr</pre>
<p>There are not many options in the protocol itself the most common you might wish to change is the timers</p>
<pre>R0(config-router)#?
Router configuration commands:
  default            Set a command to its defaults
  default-metric     Set metric of redistributed routes
  distance           Define an administrative distance
  distribute-list    Filter networks in routing updates
  exit               Exit from routing protocol configuration mode
  help               Description of the interactive help system
  maximum-paths      Forward packets over multiple paths
  neighbor           Specify a neighbor router
  network            Enable routing on an IP network
  no                 Negate a command or set its defaults
  passive-interface  Suppress routing updates on an interface
  redistribute       Redistribute information from another routing protocol
  timers             Adjust routing timers
  traffic-share      How to compute traffic share over alternate paths</pre>
<p>We can validate that its running and see the routes it has collected.</p>
<pre>R0#sh ip protocols
Routing Protocol is "odr"
  Sending updates every 60 seconds, next due in 47 seconds
  Invalid after 180 seconds, hold down 0, flushed after 240
  Outgoing update filter list for all interfaces is not set
  Incoming update filter list for all interfaces is not set
  Maximum path: 4
  Routing Information Sources:
    Gateway         Distance      Last Update
    10.1.2.1             160      00:00:30
    10.1.1.1             160      00:00:47
  Distance: (default is 160)</pre>
<p>And on the hub se should be able to see the routes installed into the IP routing table with the AD of 160 and metric of 1</p>
<pre>R0#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     10.0.0.0/24 is subnetted, 2 subnets
o       10.1.2.0 [160/1] via 10.1.2.1, 00:01:45, Serial0/1
                 [160/1] via 10.1.2.1, 00:00:45
o       10.1.1.0 [160/1] via 192.168.1.2, 00:00:02, Serial0/0
                 [160/1] via 10.1.1.1, 00:02:02, Serial0/0
                 [160/1] via 10.1.1.1, 00:01:02
     192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.1.0/24 is directly connected, Serial0/0
C       192.168.1.2/32 is directly connected, Serial0/0
     192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.2.2/32 is directly connected, Serial0/1
C       192.168.2.0/24 is directly connected, Serial0/1</pre>
<p>Now to test it the view from R2 just shows the default route up to the hub</p>
<pre>R2#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route
o - ODR, P - periodic downloaded static route

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

10.0.0.0/24 is subnetted, 1 subnets
C       10.1.2.0 is directly connected, Loopback0
192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.2.0/24 is directly connected, Serial0/0
C       192.168.2.1/32 is directly connected, Serial0/0
S*   0.0.0.0/0 is directly connected, Serial0/0</pre>
<p>Now to test if we can ping the other spoke router</p>
<pre>R2#ping 10.1.1.1

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 12/39/60 ms</pre>
<p>I am almost speechless at how simple it was to get spoke to spoke connectivity! Beautiful!</p>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2009/11/odr-is-freaking-awesome/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamic Multipoint Virtual Private Network (DMVPN)</title>
		<link>http://communitystring.com/2009/07/dynamic-multipoint-virtual-private-network-dmvpn/</link>
		<comments>http://communitystring.com/2009/07/dynamic-multipoint-virtual-private-network-dmvpn/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 15:01:15 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[Routing]]></category>
		<category><![CDATA[DMVPN]]></category>
		<category><![CDATA[GRE]]></category>
		<category><![CDATA[IPSec]]></category>
		<category><![CDATA[VPN]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=286</guid>
		<description><![CDATA[Traditionally in a hub and spoke environment, all IPsec tunnels from spoke routers would be connected to the central site. Consequentially if a spoke router wanted to reach another spoke router would have a greater burden in terms of CPU and memory utilisation. The hub router may also require a long and complex configuration depending [...]]]></description>
			<content:encoded><![CDATA[<p>Traditionally in a hub and spoke environment, all IPsec tunnels from spoke routers would be connected to the central site. Consequentially if a spoke router wanted to reach another spoke router would have a greater burden in terms of CPU and memory utilisation. The hub router may also require a long and complex configuration depending on the number of spoke routers, as with a traditional hub and spoke VPN configuration each hub router will require separate isakmp peer statements, GRE tunnels, crypto ACLs and crypto maps.</p>
<p>Dynamic Multipoint Virtual Private Network (DMVPN) solves many of these problems by using existing technologies such as IPsec, GRE tunnels and NHRP. The hub router is configured with a single mGRE interface for all the connections, and one IPsec profile and no crypto ACLS, the best bit is that no additional work is required at the hub router when a spoke router is being deployed (as much as I love configuring routers, anything to make life easy is always welcome).</p>
<p>Spoke routers learn about other spoke routers through routing as such a dynamic routing protocol will be required for this to operate effectively. Additionally DMVPN supports multiple hub routers for redundancy and load balancing and the spoke routers can be either statically or dynamically addressed.</p>
<p>A simple example of DMVPN is below, where each of the spoke routers has a permanent IPSec tunnel to the hub router, but each spoke router will establish direct IPSec tunnel to other spoke routers as and when required.</p>
<p><img src="http://communitystring.com/media/dmvpn.jpg" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2009/07/dynamic-multipoint-virtual-private-network-dmvpn/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CEF Load Balancing</title>
		<link>http://communitystring.com/2009/07/cef-load-balancing/</link>
		<comments>http://communitystring.com/2009/07/cef-load-balancing/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 10:11:21 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[BGP]]></category>
		<category><![CDATA[CEF]]></category>
		<category><![CDATA[CEF polarisation]]></category>
		<category><![CDATA[load balancing]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=211</guid>
		<description><![CDATA[Looking into CEF there are 3 main methods of load balancing per destination, per packet, and per port. Per Destination &#8211; The original algorithm creates a 4 bit hash of the source and destination IP address and load balances based on this 16 value hash, an issue with this is that every router in the [...]]]></description>
			<content:encoded><![CDATA[<p>Looking into CEF there are 3 main methods of load balancing per destination, per packet, and per port.</p>
<p><strong>Per Destination</strong> &#8211; The original algorithm creates a 4 bit hash of the source and destination IP address and load balances based on this 16 value hash, an issue with this is that every router in the routing domain uses the same algorithm and this can cause something called CEF polarisation.</p>
<p>CEF polarisation occurs when traffic uses per destination load balancing and the same algorithm is used throughout the network which causes traffic to not be load balanced after the first distribution. In the example below if 100Mbs of traffic was coming into R1, it would be load balanced 50/50, with 50Mbs to R2 and 50Mbs to R3, but as R2 &amp; R3 will use the same algorithm to determine which path the traffic will take, but as the algorithim is idential it will be a 100/0 split, with 50Mbs going to R4 and R7 and no data going to R5 or R6.</p>
<pre>       R4-
     /
   R2
  /  \
 /    R5-
R1
 \     R6-
  \   /
    R3
      \
       R7-</pre>
<p>To counter this issue a newer algorithm called the universal algorithm was developed where a 32 bit value is added to the algorithm, this value can be manually set but defaults to the highest loopback IP on the router. Per destination load balancing with the universal algorithm is the current default method of load balancing.</p>
<p>If there are a number of tunnels such as L2TP, GRE, MPLS etc operating through the router this could also cause route polarisation due to the low number of sessions, as such the tunnel algorithm was developed to solve this issue. It appears to be a pretty undocumented feature, so any more information on the algorithm would be appreciated.</p>
<p>The algorithm can be changed as required with the following command;</p>
<pre>Router(config)#ip cef load-sharing algorithm ?
  include-ports  Algorithm that includes Layer 4 ports
  original       Original algorithm
  tunnel         Algorithm for use in tunnel only environments
  universal      Algorithm for use in most environments</pre>
<p><strong>Per Packet</strong> &#8211; In this mode packets are load shared in a round robin way, it can result in increased jitter due to multiple paths and as such generally not advisable.</p>
<p><strong>Per Port</strong> &#8211; This is suitable for heavily NATed networks with a low number of hosts, and utilises a hashing function based on the layer 4 port numbers. As NATed hosts have a distributed range of source port numbers this allows for efficient load balancing in such situations.</p>
<p>Note:  Some more configuration examples to follower later</p>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2009/07/cef-load-balancing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSPF E1 and E2 Routes</title>
		<link>http://communitystring.com/2009/07/ospf-e1-and-e2-routes/</link>
		<comments>http://communitystring.com/2009/07/ospf-e1-and-e2-routes/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 14:20:49 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[OSPF]]></category>
		<category><![CDATA[e1 e2 routes]]></category>
		<category><![CDATA[heatwave]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=207</guid>
		<description><![CDATA[External routes are propagated through an OSPF area as a type 5 from an ASBR,  or type 7 LSA from an ASBR in an NSSA. These routes from outside the OSPF domain are can either be E1 or E2 routes and they are treated in slightly different ways. E1 or External Type Routes - The [...]]]></description>
			<content:encoded><![CDATA[<p>External routes are propagated through an OSPF area as a type 5 from an ASBR,  or type 7 LSA from an ASBR in an NSSA. These routes from outside the OSPF domain are can either be E1 or E2 routes and they are treated in slightly different ways.</p>
<p><strong>E1 or External Type Routes </strong>- The cost of E1 routes is the cost of the external metric with the additional of the internal cost within OSPF to reach that network.</p>
<p><strong>E2 or External Type2 Routes</strong> &#8211; The cost of E2 routes will always be the external metric, the metric will takes no notice of the internal cost to reach that network.</p>
<p>If 2 external type 2 routes exist with the same metric to the same destination the route with the lowest metric to the ASBR will be used. Also if an E1 and and E2 route exist to the same destination the E1 route will always be preferred irrespective of the metric.</p>
<p>Cisco&#8217;s excellent reference on the topic is <a href="http://www.cisco.com/en/US/tech/tk365/technologies_white_paper09186a0080094e9e.shtml#t33">http://www.cisco.com/en/US/tech/tk365/technologies_white_paper09186a0080094e9e.shtml#t33</a></p>
<p><strong>Off Topic</strong> &#8211; The weather in the UK for some reason is always exceptional as its an island nation. For the last 5 or so days we have had an exception heatwave and it has been 30°C+ which were just not used to, and I have been surprised how much it has affected my ability to study, I just haven&#8217;t been able to concentrate for anywhere near as long as I can in the cold.</p>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2009/07/ospf-e1-and-e2-routes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BGP Route Reflectors</title>
		<link>http://communitystring.com/2008/08/bgp-route-reflectors/</link>
		<comments>http://communitystring.com/2008/08/bgp-route-reflectors/#comments</comments>
		<pubDate>Fri, 29 Aug 2008 01:32:49 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[BGP]]></category>
		<category><![CDATA[BGP Route Reflectors]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=139</guid>
		<description><![CDATA[BGP Route Reflectors (RRs) defined in RFC 1966 reduces the need for iBGP peers to be in a full mesh, by relaxing the standard rule where iBGP routes are not sent to iBGP peers. A designated Route Reflector router treats all neighbour routers as one of 3 types, clients, non-clients and eBGP. The relaxed rules [...]]]></description>
			<content:encoded><![CDATA[<p>BGP Route Reflectors (RRs) defined in <a href="http://tools.ietf.org/html/rfc1966">RFC 1966</a> reduces the need for iBGP peers to be in a full mesh, by relaxing the standard rule where iBGP routes are not sent to iBGP peers.</p>
<p>A designated Route Reflector router treats all neighbour routers as one of 3 types, clients, non-clients and eBGP. The relaxed rules for Route Reflectors are;</p>
<ul>
<li>Updates received from a client are sent to all clients &amp; non-clients</li>
<li>Updates received from a non-client are sent only to clients</li>
<li>Updates received from eBGP peers are sent to all clients &amp; non-clients</li>
</ul>
<p>A Route Reflector and its clients combine to form a Route Reflector cluster, a BGP design could have multiple clusters or a cluster with multiple Route Reflectors. If muliple clusters exist then one Route Reflector per cluster must be peered directly with a Route Reflector in another cluster, although usually the Route Reflectors from all clusters peer directly.</p>
<p>As one of the loop prevention rules of BGP has been removed (never send iBGP learned routes to iBGP peers) it is possible that loops could form. To prevent this BGP route reflectors only reflect the best routes, also there are 2 optional non-transitive BGP attributes which further prevent looping these are;</p>
<p>ORIGINATOR_ID, this is a 4 byte attribute which contains the Router ID of the first iBGP peer which originated the route into the AS. Route Reflectors never send an update to the router specified in the ORIGINATOR_ID</p>
<p>CLUSTER_LIST, is list of the cluster IDs which the update has been passed through, each Route Reflector will add its own cluster ID to the list before sending an update. If a Route Reflector sees its own cluster ID in the list it ignores the update.</p>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2008/08/bgp-route-reflectors/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OSPF LSA Types</title>
		<link>http://communitystring.com/2008/07/ospf-lsa-types/</link>
		<comments>http://communitystring.com/2008/07/ospf-lsa-types/#comments</comments>
		<pubDate>Tue, 22 Jul 2008 21:23:58 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[OSPF]]></category>
		<category><![CDATA[OSPF LSA Types]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=30</guid>
		<description><![CDATA[Understanding all the OSPF LSA types is one of the keys to understanding OSPF, so its definatly worth me making a few notes on them LSA type 1 &#8211; Router LSAs are sent from a router to other routers in the same area. It contains information regarding the routers interfaces in the same area, relevant [...]]]></description>
			<content:encoded><![CDATA[<p>Understanding all the OSPF LSA types is one of the keys to understanding OSPF, so its definatly worth me making a few notes on them</p>
<p><strong>LSA type 1</strong> &#8211; Router LSAs are sent from a router to other routers in the same area. It contains information regarding the routers interfaces in the same area, relevant interfaces IPs, its adjacent routers on those interfaces and sub networks</p>
<p><strong>LSA type 2</strong> &#8211; Network LSAs are generated by the DR on a multi access segment, and provides similar information to an LSA type 1 for the multi access segment and subnet which it belongs</p>
<p><strong>LSA type 3</strong> &#8211; Network Summary LSAs are generated by ABRs and contain the subnets &amp; costs but omit the topological data from  all subnets in one area and sent to another area via the ABR</p>
<p><strong>LSA type 4</strong> -ASBR summary LSAs are from ASBRs and are identical in structure to a type 3 LSA and sent when crossing an AS boundary</p>
<p><strong>LSA type 5</strong> -Are AS external LSAs which are originated by ASBRs and describe external networks<strong><br />
</strong></p>
<p><strong>LSA type 6</strong> &#8211; Is defined as a Group Membership LSA but not used in Cisco devices</p>
<p><strong>LSA type 7</strong> -NSSA External LSAs are generated by the ASBR in an NSSA area</p>
<p><strong>LSA type 8</strong> &#8211; Is defined as a External Attribute LSA but not used in Cisco devices</p>
<p><strong>LSA types 9 to 11</strong> &#8211; Defined as Opaque LSAs and are reserved for future expansion</p>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2008/07/ospf-lsa-types/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>OSPF area types</title>
		<link>http://communitystring.com/2008/07/ospf-area-types/</link>
		<comments>http://communitystring.com/2008/07/ospf-area-types/#comments</comments>
		<pubDate>Mon, 21 Jul 2008 15:23:21 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[OSPF]]></category>
		<category><![CDATA[OSPF Area Types]]></category>
		<category><![CDATA[Routing]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=26</guid>
		<description><![CDATA[OSPF uses a variety of area types to divide the network which results in smaller and therefore more efficient LSDBs due to summarization at ABRs &#038; ASBRs, also failures are limited to a single area so OSPF does not need to run a full SPF calculation across the entire network and the reduced size of [...]]]></description>
			<content:encoded><![CDATA[<p>OSPF uses a variety of area types to divide the network which results in smaller and therefore more efficient LSDBs due to summarization at ABRs &#038; ASBRs, also failures are limited to a single area so OSPF does not need to run a full SPF calculation across the entire network and the reduced size of the LSDB uses less memory and therefore results in quicker SPF calculations.</p>
<p><strong>The Backbone Area or Area 0</strong></p>
<p>The backbone area which is also configured as area 0, which is the area number which is used in the configuration. Area 0 which must be directly connected (except for a few very rare circumstances) to every other area. Area 0 must be continuous and is used for inter area routing between the OSPF areas.</p>
<p><strong>Standard Area</strong></p>
<p>This is the default area type which accepts link updates, route summaries and external routes.</p>
<p><strong>Stub Areas</strong></p>
<p>A stub area (sometimes referred to as a stubby area), is an area which does not receive type 4 or 5 LSA&#8217;s which are external routes from ASBRs. But a stubby area will receive type 3 LSAs which are summary routes from ABRs. If there are multiple ABRs in a stub area the route will be chosen which has the shortest path to the destination.</p>
<p><strong>Totally Stubby Areas</strong></p>
<p>Totally Stubby Areas, is a non standard area type used in Ciscos implementation of multi area OSPF. Totally Stubby Areas do not accept type 3, 4 or 5 LSAs, the ABRs only injects a single default route into the area. If there are multiple ABRs in the Totally Stubby Area each router routes to the closest (lowest metric) ABR in its area.</p>
<p><strong>Not So Stubby Area (NSSA)</strong></p>
<p>A Not So Stubby Area (NSSA) is a stub area which contains an an ASBR. It operates in the same way as a stub area but originates type 7 LSAs which are external routes from a ASBR in a NSSA area.</p>
<p><strong>Not So Stubby Totally Stubby Area </strong></p>
<p>This area name has got to be one of the craziest names I have come across, and I thought a Not So Stubby Area was bad. Its another non standard area type used by Cisco which is a Totally Stubby Area which has an ASBR which originates type 7 LSAs.</p>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2008/07/ospf-area-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OSPF Designated Routers</title>
		<link>http://communitystring.com/2008/07/ospf-designated-routers/</link>
		<comments>http://communitystring.com/2008/07/ospf-designated-routers/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 18:02:37 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[OSPF]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=20</guid>
		<description><![CDATA[On an multiaccess network OSPF prevents every router on the segment from becoming fully adjacent neighbors with each other through the use of OSPF Designated Routers (DR). If OSPF did not use the concept of having a DR then each router on the multiaccess segment would directly share its LSDB with each other, we can [...]]]></description>
			<content:encoded><![CDATA[<p>On an multiaccess network OSPF prevents every router on the segment from becoming fully adjacent neighbors with each other through the use of OSPF Designated Routers (DR).</p>
<p>If OSPF did not use the concept of having a DR then each router on the multiaccess segment would directly share its LSDB with each other, we can calculate the number of instances of  LSDB flooding that would occur if there wasn&#8217;t a DR on a multiaccess segment with the full mesh formula which is N(N-1)/2.</p>
<p>So without OSPF DRs if we had 10 routers then where would be 45 LSDBs flooded between the adjacent OSPF routers  (N(N1-1)/2 = 10(10-1)/2 = 45). This could potentially cause a serious amount of overhead due to the massive amount of redundant LSAs that would be propagating the network. This is the main reason why OSPF DRs are used, another good point about OSPF DRs is that they originate type 2 LSAs which represent a subnet. I will make a post on all of the LSA types soon.</p>
<p>OSPF will start to perform a DR election when it starts 2-way state on the first neighbor it sees on an interface if the hello received from the neighbor has a DR of 0.0.0.0 (0.0.0.0 as the DR in a hello packet means a DR has not yet been elected). OSPF will then wait the period specified in the Dead Timer, where it is waiting for other routers to communicate and come online. This timer is called the wait time and is used to allow other routers to come online and be active for the DR elections after a failure, if this did not occur then one of the first routers to be online would always be the DR.</p>
<p>If the received OSPF hello has a DR of anything else apart from 0.0.0.0 that indicates that DR elections have already taken place and OSPF will use the DR specified in the hello.</p>
<p>In each OSPF hello it sends the current DR and its Priority, if the DR priority of a received hello is higher than the current DR it recognises that as the current DR. The router priority is a value between 0 and 255 with the higher being better, the default is 1 and if it is set to 0 then the router will never become a DR. If there is a tie between OSPF priorities then the highest Router ID wins the tie breaker. The second most preferable DR becomes the Backup DR (BDR) and is used as a failover. Routers which are not the DR or BDR assume the DROther state. Once the DR election is complete the router will move into ExStart and start exchange Database Descriptors (DD).</p>
<p>All OSPF routers send their DDs to the multicast address of 224.0.0.6, this gets acknowledged by the DR sending the same packet back to the source as unicast. The DR then sends the DD it has received to all OSPF routers on the multi access segment via the multicast address of 224.0.0.5. This means that all routers on a multi access network to not need to constantly keep updating one another, they only have to update a central source and this is then sent to the segment.</p>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2008/07/ospf-designated-routers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OSPF Router IDs</title>
		<link>http://communitystring.com/2008/07/ospf-router-ids/</link>
		<comments>http://communitystring.com/2008/07/ospf-router-ids/#comments</comments>
		<pubDate>Wed, 16 Jul 2008 21:44:01 +0000</pubDate>
		<dc:creator>Bradley</dc:creator>
				<category><![CDATA[OSPF]]></category>
		<category><![CDATA[RID]]></category>

		<guid isPermaLink="false">http://communitystring.com/?p=19</guid>
		<description><![CDATA[I have blitzed through EIGRP in the last few days and am starting on OSPF, here is the first of a few posts I will make on it in the next few days. For a router to send OSPF messages it has to define its OSPF Router Identifier (RID). This is a 32bit dotted decimal [...]]]></description>
			<content:encoded><![CDATA[<p>I have blitzed through EIGRP in the last few days and am starting on OSPF, here is the first of a few posts I will make on it in the next few days.</p>
<p>For a router to send OSPF messages it has to define its OSPF Router Identifier (RID). This is a 32bit dotted decimal number which uniquely identifies the router.</p>
<p>Its a simple 3 steps for the router to choose what the RID will be</p>
<ol>
<li>If the <strong>router-id</strong><em> id</em> command is configured under <strong>router ospf</strong> then that that will always be used as the RID</li>
<li>If there is no router-id configured it uses the numerically highest up loopback interface</li>
<li>Finally if there is no <strong>router-id</strong> command set or no loopback interfaces up then it uses the highest interface IP address which is up.</li>
</ol>
<p>It should be noted that the RID is only used to uniquely identify the OSPF router and does not need to be reachable or exist in the routing table. If the RID is changed then all OSPF routers in the area will have to recalculate SPF as its unique identifier has changed.</p>
<p>The final point is that the RID will only change when the <strong>router-id</strong> command is entered, or OSPF is restarted.</p>
]]></content:encoded>
			<wfw:commentRss>http://communitystring.com/2008/07/ospf-router-ids/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

