+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

BGP (Border Gateway Protocol)



BGP uses TCP as the transport protocol, on port 179. Two BGP routers form a TCP connection between oneanother. These routers are peer routers. The peer routers exchange messages to open and confirm theconnection parameters. BGP routers exchange network reachability information. This information is mainly an indication of the fullpaths that a route must take in order to reach the destination network. The paths are BGP AS numbers. Thisinformation helps in the construction of a graph of ASs that are loop−free.

eBGP and iBGP

If an AS has multiple BGP speakers, the AS can serve as a transit service for other ASs.

In order to send the information to external ASs, there must be an assurance of the reachability for networks.

In order to assure network reachability, these processes take place:
  • Internal BGP (iBGP) peering between routers inside an AS
  • Redistribution of BGP information to IGPs that run in the AS
When BGP runs between routers that belong to two different ASs, this is called exterior BGP (eBGP). WhenBGP runs between routers in the same AS, this is called iBGP.

Two BGP routers become neighbors after the routers establish a TCP connection between each other. The TCP connection is essential in order for the two peer routers to start the exchange of routing updates.

After the TCP connection is up, the routers send open messages in order to exchange values. The values thatthe routers exchange include the AS number, the BGP version that the routers run, the BGP router ID, and thekeepalive hold time. After the confirmation and acceptance of these values, establishment of the neighbour connection occurs. Any state other than Established is an indication that the two routers did not becomeneighbors and that the routers cannot exchange BGP updates.


On Router 1
		Router # config terminal
		Router (config) # router bgp 1
		Router (config-router) # neighbor10.1.12.2 remote-as 1
		Router (config-router) # network 1.1.1.1 mask 255.255.255.255
On Router 2
		Router # config terminal
		Router (config) # router bgp 1
		Router (config-router) # neighbor10.1.12.1 remote-as 1
		Router (config-router) # neighbor10.1.23.3 remote-as 2
		Router (config-router) # network 2.2.2.2 mask 255.255.255.255
		Router (config-router) # neighbor 10.1.12.1 next-hop-self
On Router 3
		Router # config terminal
		Router (config) # router bgp 2
		Router (config-router) # neighbor10.1.23.2 remote-as 1
		Router (config-router) # network 3.3.3.3 mask 255.255.255.255







Is it Helpful?
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US