190 likes | 449 Views
Border Gateway Protocol. -Jai Modha -Rajyash Gosalia -Wing Cheong Tam. BGP. A Routing protocol used to exchange routing information between different networks. There are two types of BGP:- i BGP e BGP. BGP. i BGP – is an intra-autonomous system routing protocol.
E N D
Border Gateway Protocol -Jai Modha -Rajyash Gosalia -Wing Cheong Tam
BGP • A Routing protocol used to exchange routing information between different networks. • There are two types of BGP:- • iBGP • eBGP
BGP • iBGP – is an intra-autonomous system routing protocol. • eBGP – is an inter-autonomous system routing protocol • An Autonomous System – It is used to uniquely identify networks with common routing policy.
BGP Attributes • How the best path algorithm works for BGP? • Weight • Local Preference • Multi-exit discriminator • Origin • AS Path • Next hop • Community
BGP • Weight – BGP looks for the path with the highest weight. • Local Preference – BGP prefers the path with the highest local preference. • Multi-exit discriminator – BGP prefers the path with the lowest multi-exit discriminator(MED).
BGP • Origin attribute: describe the origin of the routing update and how BGP learned about the route. It can be IGP, EGP or incomplete. • AS path attribute: describes the inter-AS path taken to reach a destination, contains a list of AS# traverse to the destination. • Next-hop attribute: describes the next hop IP address to reach destination. • Community attribute: allows to share a common policy across multiple BGP peers who can be identified to be in a same group.
BGP Path Selection • BGP uses to select the best routes to install into the IP Routing table. To select the best route, it looks at a list of selection criteria. • weight: If there are multiple paths to a IP address, then BGP looks for the path with the highest weight. • Local Preference: This is an indicator to the AS as to which path has local preference, with the highest preference being preferred. • Network or Aggregate: select the path that was locally originated via a network or aggregate.
BGP Path Selection • Shortest AS path: select the shortest AS path. • origin type: select the lowest origin type.(IGP, EGP, incomplete) • MED: select the path with the lowest MED attribute. • eBGP over IBGP: prefers eBGP over iBGP. • check Multiple paths, External paths, Lowest router ID, Minimum cluster list...Lowest neighbor address.
On R1 we see the next hop of 10.10.10.0/24 is 0.0.0.0 -> the network originated by a “network” command has the next-hop of 0.0.0.0.