Basic Notes On BGP (Border Gateway Protocol) : Ospf Eigrp
Basic Notes On BGP (Border Gateway Protocol) : Ospf Eigrp
BGP
RIP, OSPF and EIGRP are all different but they have one thing in common…they want to find
the shortest path to the destination. But when coming to Internet being able to manipulate
traffic paths is far more important than finding the shortest path. There is only one routing
protocol we currently use on the Internet which is BGP.
Within an autonomous system we use an IGP like OSPF or EIGRP. For routing between the
different autonomous systems we use an EGP (external gateway protocol). The only EGP we
use nowadays is BGP. We can say internet as a bunch of autonomous system that are
connected to each other.We need to register AS number for BGP just like public IP
address.Autonomous system numbers are 16-bit which means we have AS from 1 up to 65535.
There’s also a private range (64512 – 65535) which we can use for non-internet usage
Points to Remember
BGP is the routing protocol we use to route between autonomous systems:
BGP guarantees loop-free routing information.
BGP is completely different than IGPs.
BGP avoids loops by using path vector routing protocol [BGP saves path when they
enter inside a AS]
BGP doesn't use metrics but a rich set of BGP attributes.
BGP uses TCP port 179
Administrative distance of EBGP is 20
Administrative distance of IBGP is 200
Authentication used in BGP is MD5
Currently using BGP v4
BGP saves paths to all destination in a table called forwarding table.Best path from
forwarding table is saved in routing table
Routers running BGP is termed as BGP speakers
BGP neighbors are called Peers.Peers must be configured statically
BGP was built for reliability and Control but not for speed.
Once BGP peers form a neighbor relationship, they share their full routing table.
Afterwards, only changes to the routing table are forwarded to peers.
Cisco recommendation on BGP
Use BGP
-when AS is multi-homed
-when AS is a transit AS
Neighbor States