The major differences between BGP and OSPF protocols are shown in the following table:
Characteristics |
BGP |
OSPF |
Routing algorithm |
Distance vector |
Link state |
Classless support |
Yes |
Yes |
Summarization |
Yes |
Yes |
VLSM |
Yes |
Yes |
Metric |
Various attributes |
Bandwidth |
Hierarchy |
No |
Yes |
Building blocks |
AS |
Areas |
Base protocol |
TCP using port 179 |
IP protocol port 89 |
Traffic type |
Unicast |
Multicast |
Neighbors |
Manually assigned |
Discovered |
Route exchange |
Only with neighbors |
With adjacent neighbors |
Initial update |
Synchronized DB |
Synchronized DB |
Hello timers |
60 seconds |
10 - 30 seconds |
Hold timers |
180 seconds |
40 - 120 seconds |
Internal route exchange |
iBGP session |
LSA types 1 and 2 |
External route exchange |
eBGP session |
LSA types 3, 4, and 5 |
Routing updates... |