Got it

Difference between OSPF and BGP

Latest reply: Dec 18, 2018 09:52:45 1515 1 9 0 0

One is the internal route of the AS -ospf
One is the inter-AS route -bgp.
This is an essential difference.

OSPF is an Interior Gateway Protocol (IGP). It selects routes based on link status. Generally, OSPF runs in an AS. BGP is an external gateway protocol (EGP), which is usually used between ASs by ISP service providers, protocol used for Internet route selection. The route selection mode can be controlled by multiple clock attributes rather than the cost value of OSPF. BGP is an advanced route selection protocol based on the IGP protocol. That is, if you want to use BGP, you need to use the IGP protocol to implement the network.

OSPF is an Interior Gateway Protocol (IGP). It runs in an AS and uses the SPF algorithm to prevent loops in the AS. Because OSPF is calculated by each router itself, it is difficult to filter routes.
BGP is an EGP protocol and is a distance-vector routing protocol. To prevent loops, BGP adds many attributes to prevent loops. Generally, BGP is used between ASs for Internet route selection, BGP attributes can be modified to affect route selection. BGP does not calculate routes. Therefore, routes are filtered based on other routes. Therefore, it is easy to filter routes, and data can be easily distributed based on BGP attributes.

OSPF calculates routes based on link status.
BGP does not calculate routes but uses the routes generated by other protocols.
One is the production route, and the other is the routing. The OSPF production mode is precise to ensure that no loop exists, but multiple services are not supported. BGP is not produced and is used only for scheduling. Therefore, service support is good, and extended attributes make route planning a lot more choices.

  • x
  • convention:

Created Dec 18, 2018 09:52:45

If BGP and OSPF routes need to be introduced to each other on the same device, how should the loop be prevented?
View more
  • x
  • convention:


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

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


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