Friday, May 9, 2014

OSPF Unequal-Cost Load Balancing

Note:
I posted this shortly after I obtained my CCNA and didn't fully understand the nature/differences between how OSPF handles multiple paths vs. how EIGRP does it.  OSPF can't really "load-balance" or take advantage of the higher bandwidth of one link over another slower link.

**********************************

Hello all,

here's a fun little demo (well... I had fun at least) of how to do unequal-cost load balancing w/ OSPF.  Now I know that your textbooks and other sources will tell you that EIGRP is the only routing protocol that can do this, and that's true in a strict sense, but they both can accomplish the same thing.

Technically, when the multiple routes to the same subnet are added to the routing table in EIGRP, some, and perhaps all, will show a different cost/metric to the right of the AD:

D    192.168.203.0/24 [90/27392000] via 10.10.10.12, 00:00:08, Serial0/0/0
                      [90/27392000] via 10.10.10.11, 00:00:08, Serial0/0/0
                      [90/28160000] via 192.168.202.2, 00:00:07, Tunnel2
                      [90/28160000] via 192.168.201.2, 00:00:06, Tunnel0

When you force unequal-cost load balancing on OSPF the costs will look the same even though they are over different types of connections that clearly should have vastly different costs:



This screenshot was taken from the video below.  In it you can see that all the routes say the cost is "3" (this is why it's said that OSPF only does "equal-cost load balancing), however the Serial line (1.5Mb) route should have a cost of 131 and the Ethernet (10Mb) route should be 21.  We've tricked the OSPF protocol to think that these routes are faster than they really are.

I've included a video below that shows how you can accomplish this by using the "bandwidth" interface subcommand.  You can also, under the "router ospf 1" process, use the "auto-cost reference-bandwidth" command, which might be easier than touching each interface on a router, however if you want to be very "granular" with which ones you want to include in the load-balancing scheme, then you'll probably want to just use the "bandwidth" command.

Apologies in advance for all the "uhs" and "ums" in the video; I groan every time I watch one of these that I've recorded.  Lastly, if you're trying to load-balance over more than 4 routes, then you'll need to adjust the maximum-paths value to anywhere from 5-16, as the default is set to 4.  This is accomplished with the "maximum-paths [1-16]" command under the ospf router process.

Also, in the video I mention that I'm not sure about the "auto-cost reference-bandwidth"; whether it's local to the router or if its setting applies to all routes that it "sees" on the network.  Turns out that it's only local to the router so you'd want to apply the same command to each OSPF process on each router in your network.

Feel free to leave comments below.  Thanks.





View my profile on LinkedIn

Monday, May 5, 2014

The adventure so far...

I did it!!!


WOOHOO!!!... I passed the 2nd Cisco CCNA exam and now, once again, have my Cisco CCNA certification.  I say "once again" because I previously held the cert from 2004-2007; yes, 10 years ago.  Having taken the exam back then, I can definitely say that it was MUCH HARDER this time around.  Back then there was only the "one-exam" option and I crammed pretty heavily, but then when I took it I passed with flying colors and couldn't believe how easy it was.  Fast-forward to October of 2012... again I took the "one-exam" option and failed it miserably... didn't even finish it in time.  Clearly, things had changed.  I put going after the cert on hold till I had finished my undergrad and, upon finding it very difficult to find a job, decided to revisit the cert in it's current "2-exam" form ICND1 100-101 & ICND2 200-101 (you can still take a unified exam if you prefer, however).

I wanted to start this blog off on the right foot so after a little bit of celebration I've started this blog with the desire to:

  1. showcase my newly acquired skills
  2. share my study methods
  3. point out some shortfalls of the materials I used and how I made up for them
  4. showcase all the great CCNA learning resources on the web
  5. build my LinkedIn presence with cross-posting to Cisco-related LinkedIn groups
In a nutshell, I'd like to document/journal what it took to get here (looking back) thereby hopefully helping others on the same path and then chronicle the next phase/s of job-hunt and continued study for the next level of certification: the CCNP.  Life is a journey and an adventure... thus the title of this blog "Cisco Adventure."

Again, revisiting the topic of the "increased difficulty" of the CCNA exams; there is just way more content that is covered.  It almost seems like the CCNA today is what the CCNP was back then. 

Case in point: below I've posted a video of one such topic that is covered in the Cisco Press ICND2 book that I used in my studies; please forgive some of my comments during the recording regarding the neighbors becoming fully-adjacent; I recorded this a couple weeks ago and I think it was late when I did... anyway, I mention that once the variance is changed the new neighbors will eventually become "fully-adjacent", but that's not the case: fully-adjacent only happens with OSPF and adjusting a variance value (which is what this video is about) only happens with EIGRP.  This was a concept I had a hard time wrapping my brain around until I actually tried it on a test network.  Hopefully you find it useful.  Please feel free to leave comments below.




View my profile on LinkedIn