Thursday, December 3, 2026 | London 10°C · Drizzle
DailyGlimpse

AI

Understanding BGP Route Exchange Between Autonomous Systems

Micro Learning 2 min read

The Border Gateway Protocol (BGP) is the backbone of internet routing, enabling different organizations to exchange network reachability information. This article explains BGP route exchange through a practical example involving two Autonomous Systems (AS).

How BGP Route Exchange Works

BGP routers establish neighbor sessions (peering) to share routing information. Once a session is formed, they exchange network prefixes via update messages. Each update includes attributes like Next-Hop and AS-PATH, which help routers select the best path. The AS-PATH lists all AS numbers a route has traversed, preventing loops and allowing path selection.

Step-by-Step Example

  1. Neighbor Establishment: Router A in AS 100 configures a BGP session with Router B in AS 200.
  2. Route Advertisement: Router A sends an update advertising network 192.168.1.0/24 with AS-PATH [100] and next-hop set to its own interface IP.
  3. Route Processing: Router B receives the update, checks the AS-PATH for loops, and installs the route in its routing table if it is the best path.
  4. Propagation: Router B may further advertise the route to its internal peers, prepending its AS number to the AS-PATH.

Key BGP Attributes

  • Next-Hop: The IP address of the router that should be used to reach the advertised prefix.
  • AS-PATH: A sequence of AS numbers that the route has traversed, used for loop detection and path selection.
  • Local Preference: (Not in this example) Used within an AS to influence outbound traffic.

Best Path Selection

BGP chooses the best route based on several criteria, including shortest AS-PATH length, lowest origin type, and lowest MED (multi-exit discriminator). The decision process ensures efficient and loop-free routing.

Conclusion

BGP route exchange is fundamental to internet connectivity. By understanding neighbor relationships, update messages, and path attributes, network engineers can design robust inter-domain routing policies. This example demonstrates the core concepts applicable to CCNA, CCNP, GATE, and cloud networking exams.

React