BGP.KMCD.DEV
Global Routing Telemetry
Understanding BGP
The Border Gateway Protocol (BGP) is the routing protocol of the internet. It acts like the postal service for the web, allowing different networks (Autonomous Systems or ASes) to announce which IP addresses they control and discover the most efficient paths to send data to each other. Because BGP relies on trust, it is vulnerable to misconfigurations or malicious attacks known as Route Hijacks.
1. Announcing
The Origin AS 'announces' its IP space. Routers propagate this information so that every network knows the path back to the origin.
2. Routing
Data follows the established paths. BGP selects the shortest route to reach the destination AS.
3. Withdrawals
When a prefix is no longer reachable, a 'withdrawal' message is sent. If an origin AS goes dark, its upstream peers detect the lost session and propagate the withdrawal to the rest of the internet.
4. Asymmetric Routing
In BGP, the path taken to reach a destination may differ from the path taken for return traffic. This is normal but can complicate troubleshooting.
5. Multipath (ECMP)
Equal-Cost Multi-Path (ECMP) allows a router to distribute traffic across multiple best-paths simultaneously for better load balancing.
6. Anycast Routing
Multiple servers announce the exact same IP address. BGP naturally routes user traffic to the topologically closest destination, enabling global CDNs and root DNS.
Reference & Standards
Advanced BGP Topics
Explore the complex protocols and architectural standards built on top of BGP's extensible framework.