OSPF: Virtual link or GRE?

ScottMac

Moderator<br>Networking<br>Elite member
Mar 19, 2001
5,471
2
0
If you have to use it, then Virtual Link because it is part of the OSPF suite (at least for Cisco).

.02

Scott
 

Nutz

Senior member
Sep 3, 2000
302
0
0
Thanks. I guess it entirely depends on how the network was designed and what the situation dictates. For example, just as ScottMac said, you would typically want to use a Virtual link mainly becasue it is part of the OSPF spec. However, that may not always be the case. Depending on the circumstances, GRE may be the only option, i.e. if the transit area is a stub area (where Virtual links can't be used).
 

cmetz

Platinum Member
Nov 13, 2001
2,296
0
0
Nutz, virtual links and GRE solve different problems, IMO.

Generally speaking, tunnels (esp. when implemented in the OS as a virtual interface, as they are in IOS) are BAD for routing, they create all sorts of possible inside-out-isms and ways your network can be functional but a lot less than optimal - tunnels, like intelligent L2 protocols, are bad because they hide the physical topology from the L3 routing protocol, and thus make it difficult or impossible for the L3 routing protocol to come up with optimal routing for the real topology. Remember - when you use GRE, you need to make darn sure that forwarding traffic doesn't decide to go that way. Unless that's really what you want, of course.

Virtual links are simply OSPF running multi-hop, with some protocol restrictions most notably about where you can transit. (rules that are intended to keep things simple and prevent very odd topology problems)

As a general rule, when I see people talking about doing very complex things with an OSPF network, that tells me that either (a) somebody's a white-board jockey, teacher/student, etc... not really doing it or (b) somebody's got a network that might be unnecessarily complex. Yes, there are times when you need to get into the really advanced features, but I personally see that as a level of complexity to be avoided wherever possible. Simple networks are happy networks! Almost every OSPF network I've seen could be fit into one area and maybe a few ASBRs (outside world/default route redistribution, and maybe some static routes redistributed into your LSDB). When you get to the complexity level where you really need a bunch of areas and different types and virtual links, you need high-end network engineering clues.
 

Nutz

Senior member
Sep 3, 2000
302
0
0
I wholeheartedly agree about K.I.S.S. Its one of the first rules I use when I walk on the job.