# OSPFv2 vs OSPFv3

**URL:** <https://forum.networklessons.com/t/ospfv2-vs-ospfv3/2073>\
**Category:** Lessons Discussion\
**Created:** [August 22, 2017, 12:54pm UTC](https://forum.networklessons.com/t/ospfv2-vs-ospfv3/2073 "2017-08-22T12:54:22Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![lagapidis](https://cdn-forum.networklessons.com/user_avatar/forum.networklessons.com/lagapidis/32/4949_2.png) [@lagapidis](https://forum.networklessons.com/u/lagapidis)\
**Post date:** [July 27, 2021, 7:37am UTC](https://forum.networklessons.com/t/ospfv2-vs-ospfv3/2073/10 "2021-07-27T07:37:31Z")

</div>

Hello Zahid

Concerning loops in OSPF, take a look at this post:

> [@Redistribution in ospf](https://forum.networklessons.com/t/redistribution-in-ospf/14671/4):
>
> Hello Manish OSPF, as a link-state protocol, enables each router to have a complete map of the network. This helps in preventing most routing loops. Secondly, as OSPF networks get larger, they are separated into distinct areas. These areas are all obligated to connect to area 0, thus creating a loop-free inter-area topology where traffic from one area to another must go through area 0. This whole design of OSPF helps to alleviate the possibility of having routing loops. There is no “loop a…

Concerning L2 and L3 loops, a layer 2 loop also known as a switching loop, or a bridging loop, is one where there is more than one layer 2 paths between two endpoints. A layer 2 loop will take place when

- there are multiple connections between two network switches on the same VLAN
- two ports on the same switch on the same VLAN are directly connected
- three or more switches are connected in a physical loop using ports on the same VLAN

Unlike Layer 3 loops, which employ a time to live (TTL) function, switching loop packets will circulate the network until they are dropped, e.g. due to resource exhaustion.

Layer 2 loops are dealt with using features such as STP, Etherchannel, or the creation of VLANs within the topology

A layer 3 loop also known as a routing loop takes place when routing is configured in such a way to send an IP packet continuously around the same path. This differs from a switching loop in that the loop is created due to routing decisions. This means that a looped IP packet will be routed from one subnet to another (or from one VLAN to another) resulting in a continuously looped packet.

This is primarily due to misconfiguration or a routing algorithm error. Unlike Layer 2 loops, IP packets have a TTL value that is decremented every hop, and when it reaches zero, it is dropped. Layer 3 loops are mitigated against using TTL as well as using correct routing configurations.

I hope this has been helpful!

Laz

---

_[View the full topic](https://forum.networklessons.com/t/ospfv2-vs-ospfv3/2073)._
