Border Gateway Protocol

  • It is an inter-domain protocol used to exchange network reachability information between two or more BGP routers (also called as BGP speakers).
  • It is used to enable two different autonomous systems to exchange the routing information in such a way that an IP traffic can flow across the autonomous system border.
  • Each BGP router can establish a TCP connection with one or more BGP routers.
  • If two routers are connected in the same subnetwork, they are considered as neighbors.
  • If two routers are connected in different autonomous systems, they are  allowed to exchange the routing information. BGP uses TCP/IP protocol to create reliable connection in sessions.
  • BGP connections inside an autonomous system are called as internal BGP and connection between two different autonomous systems are called as external BGP.
internal and external BGP

RIP vs OSPF

RIPOSPF
It is easy to configure.It needs network design and planning. Hence, OSPF is complicated to configure.
RIP is slow to adjust link failures.OSPF is quick to adjust link failures.
System with only one network interface can run RIP in passive mode.Passive mode is not available in OSPF.
It is a distance vector routing protocol.It is a link state routing protocol.