Got it

OSPF vs BGP Which Protocol Should I Use?

Latest reply: Mar 9, 2022 14:04:59 732 11 6 0 1

Hello folks, 

As we know, both OSPF and BGP are dynamic routing protocols that could provide a self-adaption forwarding routing table and make self convergence possible when the network topology changes. The OSPF and BGP are the commonly used dynamic protocols, they are usually compared with each other in the live network to determine which one should be used in the network. In this post, we’ll introduce the difference between OSPF and BGP.

  1. OSPF spreads LSAs in the area to synchronize the link-state information, the OSPF router takes itself as the root and runs the SPF algorithm to calculate out the routing information while the BGP spreads the routing information between the different ASs.

  2. Unlike the OSPF spreads the packets to the multicast address which is 224.0.0.5/6, the BGP packets are based on TCP protocol port 179, and it sends the update information to the unicast address.

  3. BGP could accommodate more routing entries than the OSPF does.

  4. BGP provides the most routing control methods in all the routing protocols based on the BGP-rich attributes and community properties.

This could allow you to control the route path most accurately.

With that being said, the following conditions should be considered when choosing which protocols should be used.

  1. the number of routing entries.

    BGP could maintain lots more route entries than the OSPF does.

  2. the performance of the router.

    BGP requires a higher performance of the router than the OSPF does.

  3. the scale of the network.

    BGP could maintain a larger scale of the network than the OSPF does.

  4. others

    BGP needs to apply for the AS number from the specific organization, while the OSPF AS number could be defined by the users themselves.

That’s all for this post, if you have any questions, feel free to describe it.

If you wanna learn more, please visit our collection BGP - From junior to expert

Thanks.


LuizPuppin
HCIE Author Created Jul 5, 2019 09:01:28

Great full explanation. Congrats
View more
  • x
  • convention:

user_4237671
user_4237671 Created Nov 2, 2021 03:28:15 (0) (0)
 
Helpfull
View more
  • x
  • convention:

Laiheang
Laiheang Created Nov 2, 2021 04:10:12 (0) (0)
 
nice
View more
  • x
  • convention:

Excellent! Keep up the good work!
View more
  • x
  • convention:

chenhui
chenhui Created Nov 9, 2021 00:58:32 (0) (0)
Thank you Kevin,  
AL_93
Moderator Created Nov 16, 2021 14:34:42

Good topic. Thank you
View more
  • x
  • convention:

chenhui
chenhui Created Nov 17, 2021 03:50:41 (0) (0)
Thank you @AL_93  

For more on the differences between OSPF and BGP, you can refer to the following post.

OSPF vs BGP: Which Routing Protocol to Use?


View more
  • x
  • convention:

Thanks for sharing
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.