BGP4 Peering
Unlike OSPF or other IGP protocols, BGP4 does not have neighbor detection capability. BGP4 neighbors (or peers) must be configured manually. A device configured to run BGP4 is called a BGP "speaker." A BGP speaker connects to another speaker (either in the same or a different AS) by using a TCP connection to port 179 (the well-known BGP port), to exchange the routing information. The TCP connection is maintained throughout the peering session. While the connection between BGP peers is alive, two peers communicate by means of the following types of messages:
BGP4 peering can be internal or external, depending on whether the two BGP peers belong to the same AS or different autonomous systems. A BGP4 session between peers within a single AS is referred to as an Interior BGP (iBGP) session; a session between peers belonging to different autonomous systems is referred to as an Exterior BGP (eBGP) session.
In order to establish a TCP connection between two iBGP peers, the IP reachability should be established either by means of the underlying IGP protocol (for example, OSPF) or by means of static routes. When routes are advertised within iBGP peers, the following primary actions are taken in contrast to eBGP peering: