01-06-2013 05:13 AM - edited 03-04-2019 06:36 PM
OSPF neighbors can form over layer 2 connectivity. Can the neighborship also come up if the routers are connected via layer3?
Solved! Go to Solution.
01-06-2013 05:21 AM
Hello Kashish,
In fact, OSPF neighbors form their adjacency over Layer3 connectivity within a single Layer2 domain. So even within a single broadcast domain such as Ethernet LAN, OSPF first needs workable IP connectivity between the routers. It may seem that this difference is a subtle one but it is important. The IS-IS routing protocol does not use Layer3 protocols to encapsulate its messages, and instead, it truly works directly over Layer2, as opposed to OSPF.
If you are asking if OSPF is capable of creating sessions between distant (i.e. not directly connected) routers, the answer would be yes but they are used in special cases only. The first special case is the OSPF Virtual Link which allows to logically attach a distant ABR to the backbone although physically, it does not have any interface directly connected to Area 0. The second special case is a so-called OSPF Sham Link feature used in MPLS VPNs by service providers.
Best regards,
Peter
P.S.: Oh, of course, you can run OSPF through tunnels but tunneling totally breaks our neat layering From the viewpoint of the tunnel, the routers are Layer2-adjacent. From the outer IP-view, the routers are not adjacent...
01-06-2013 08:08 PM
Other than Peter's remark, OSPF multicast packets use a TTL of 1.
01-06-2013 05:21 AM
Hello Kashish,
In fact, OSPF neighbors form their adjacency over Layer3 connectivity within a single Layer2 domain. So even within a single broadcast domain such as Ethernet LAN, OSPF first needs workable IP connectivity between the routers. It may seem that this difference is a subtle one but it is important. The IS-IS routing protocol does not use Layer3 protocols to encapsulate its messages, and instead, it truly works directly over Layer2, as opposed to OSPF.
If you are asking if OSPF is capable of creating sessions between distant (i.e. not directly connected) routers, the answer would be yes but they are used in special cases only. The first special case is the OSPF Virtual Link which allows to logically attach a distant ABR to the backbone although physically, it does not have any interface directly connected to Area 0. The second special case is a so-called OSPF Sham Link feature used in MPLS VPNs by service providers.
Best regards,
Peter
P.S.: Oh, of course, you can run OSPF through tunnels but tunneling totally breaks our neat layering From the viewpoint of the tunnel, the routers are Layer2-adjacent. From the outer IP-view, the routers are not adjacent...
01-06-2013 06:22 AM
Thanks Peter. That answers my question.
01-06-2013 08:08 PM
Other than Peter's remark, OSPF multicast packets use a TTL of 1.
01-06-2013 08:15 PM
Yes Xie, that's a good point. OSPF hellos are multicast packets and hence routers must be layer 3 adjacent to form adjacencies as TTL is 1. Thanks. Rated as 5.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide