Home > Networking Tips > Routing and Switching > OSPF - Juniper vs. Cisco
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

ROUTING AND SWITCHING

OSPF - Juniper vs. Cisco


Doug Downer
12.14.2004
Rating: -4.11- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


This week's tip will take a brief look at the implementation of OSPF from the perspective of two well known vendors: Cisco and Juniper. We will take a look at not only the obvious configuration differences which exist, but also the slight differences in vendor interpretation of the IETF documentation which you'll need to know when attempting multi-vendor implementations.

Do you know the standards?
OSPF version 2 is defined in RFC 2328. Like all protocol standards it details every aspect of the protocol. And like all protocol standards it leaves just enough room for vendor interpretation. Here is an example from RFC 2328 that outlines the use of a hello protocol for establishing adjacencies:

The Hello Protocol is responsible for establishing and maintaining neighbor relationships. It also ensures that communication between neighbors is bidirectional. Hello packets are sent periodically out all router interfaces. Bidirectional communication is indicated when the router sees itself listed in the neighbor's Hello Packet. On broadcast and NBMA networks, the Hello Protocol elects a Designated Router for the network. (Section 7.1)

Notice what is left open to interpretation. The line which states packets are sent out on all interfaces at periodic intervals does not in fact give us the interval itself, although further within the document there are a few suggestions. So each vendor now has decisions to make on how often Hello Packets are sent out on a router's various interfaces. My point in all of this is to identify why certain protocol or technology implementations between vendors can be different. Generally, the first one to implement the standard paves the way for the rest. Since this little detail within the Hello Packet determines whether or not OSPF speaking devices will create a neighbor relationship, both Cisco and Juniper have identical timers on Broadcast/Non-Broadcast interfaces.

Some subtle differences
Because OSPF has several checks and balances in regards to neighbor adjacencies, and because those adjacencies are essential for actual routing, their defaults remain the same between the two vendors. These include authentication (except in the case of OSPFv3), hello/dead intervals and area types. One note about authentication: in Cisco IOS when area authentication (either MD5 or Simple) is configured at the protocol level it triggers the bit in the AuType field within the header. This means that without a like configuration on neighboring routers, adjacencies will not be created. Juniper does not, at the protocol level, trigger the AuType bit unless the key is configured within the interface.

In the examples below, both configurations will change the AuType to 2 which would satisfy one of the adjacency requirements. Of course if we were trying to get these two to "neighbor-up" it wouldn't work.

Cisco Example

router ospf 1
area 0.0.0.0 authentication message-digest
end

Juniper Example

protocols ospf {
     area 0.0.0.0 {
          authentication-type md5;
     interface ge1/0/1.0{
          authentication  {  
               md5 1 key juniper;
  }
  } 
  }
}

Another difference lies within the functions of stub ABRs. This is a classic difference between routers made for enterprise operations and routers made for the provider industry. In Cisco IOS a stub router which is configured to either allow summary route or inject just one summary (totally stubby) will do just that. In Juniper land, that particular function is optional and must be configured using the "default-metric" command.

On broadcast/multi-access media such as Ethernet, OSPF elects a Designated Router (DR) to act as the originator of network advertisements and synchronizing of link-state databases. The election process involves the comparison of OSPF priority values and Router-IDs. On a data link the highest priority wins the election. Each vendor has a default priority and each vendor recognizes that a priority of 0 does not allow that interface to be considered in an election. Cisco has a default priority of 1 and Juniper has a default of 128. This means of course, that if you put Cisco and Juniper on the same broadcast segment, Juniper will by default become the designated router.

Real world application
Knowing the vendor's interpretation and application of a complex protocol such as OSPF can help lead you to successful multi-vendor environments. I touched upon some of the subtle differences between Cisco and Juniper but, of course, there are many more. Features which affect the functions of sub-components such as HelloIntervals and AuTypes can have adverse and unexpected results if used without proper planning. Remember that "standards" documentation such as RFC's can outline many details about the workings of a protocol, but there are always those "open to interpretation" sections as well.


Doug Downer (CCIE #9848) is a Sr. Consultant with Callisma, INC, a wholly owned subsidiary of SBC Communications. Doug has over 7 years in the industry and currently provides high level business and technology consulting for various federal clients in the Washington D.C. area. He can be reached at ddowner@callisma.com.


Rate this Tip
To rate tips, you must be a member of SearchNetworking.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Network Design
Networking Products of the Year 2004
The best of 2004
Intranet tunneling
Open source routers
Designing and upgrading manageable networks
Tuning TCP
Sizing routing protocols
Who wants 10G?
Five tips for better IP summarization
Core, Distribution and Access

Routing and Switching
Routing with NAT traversal and UPnP
Secure Cisco routers against IOS flaw attack
Configure WAN protocols on a Layer 3 switch
How routers work
Network summarization -- Supernetting and wildcard masks
Routing: Five common, easily avoided errors
Router Expert: Building a WLAN proxy server, implementing ASR
Router Expert: Building a WLAN proxy server, implementing WPAD
Cisco IOS IP routing -- dynamic routing
Cisco IOS IP routing: Static routes

Router and Switch Management
Network consolidation in data centers essential to reducing costs
Retrospective network analysis might have found Google's lost billions
How can I implement MAC address binding between switches?
How many more users will 802.11n wireless access points support?
How to connect wireless networks for printing capabilities
How can I prevent collisions on my network?
How to upgrade an Input/Output Supervisor (IOS) router
Inter-VLAN routing with a LAN and WAN on a single router
Troubleshooting IP Routing -- 'CCNA Official Exam Certification Library, 3rd Edition,' Chapter 7
How can I load balance between DSLs and LLs?

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
32-bit IP addressing  (SearchNetworking.com)
autotrunking  (SearchNetworking.com)
delay-tolerant network  (SearchNetworking.com)
Internet Routing in Space (IRIS)  (SearchNetworking.com)
logical router  (SearchNetworking.com)
routing table  (SearchNetworking.com)
subnet  (SearchNetworking.com)
subnet mask  (SearchNetworking.com)
virtual routing and forwarding  (SearchNetworking.com)
weighted fair queueing  (SearchNetworking.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Networking Solutions for Business

Alcatel-Lucent Network Business Communications Solutions

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersNetworking Product Trials
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts