BGP (Border Gateway Protocol) : How Does BGP Work?
BGP (Border Gateway Protocol) : How Does BGP Work?
BGP makes best-path decisions based on current reachability, hop counts and other
path characteristics. In situations where multiple paths are available -- as within a
major hosting facility -- BGP policies communicate an organization's preferences
for what path traffic should follow in and out. BGP community tags can control
route advertisement behavior among peers.
BGP security
BGP is also vulnerable to attacks based on misinformation. Malicious actors can
flood a router with bad packets in a denial-of-service attack, for example. They can
also claim to be the source of routing information for an AS, and (temporarily)
control where traffic headed from that AS goes, a practice known as
BGP hijacking.
Difference between internal and external BGP, OSPF
When BGP is used to route within a single AS, it is called internal BGP, or iBGP.
When used to connect one AS to others, it is called external BGP, or eBGP.
The OSPF (Open Shortest Path First) protocol is used only in internal networks.
OSPF is focused on finding the shortest route available between nodes, and on
failing over to that shortest route as quickly as possible. BGP is slower to fail to a
new route but is more scalable. OSPF is essentially hierarchical in structure, while
BGP is a mesh. Some networks are replacing OSPF with iBGP.