๐ BGP is silently deciding the path your traffic takes.
But here’s the key:
๐ซ BGP does NOT choose the shortest path
✅ BGP chooses the best policy-based path
๐ง What is BGP?
✔ Internet routing protocol
✔ Exchanges routes between Autonomous Systems (AS)
✔ Controls how traffic enters and leaves networks
✔ Used by ISPs, enterprises, and cloud providers
๐ Without BGP, the internet wouldn’t function.
๐ Types of BGP
๐น eBGP (External BGP)
Used between different AS networks
๐ Example: Enterprise ↔ ISP
๐น iBGP (Internal BGP)
Used inside the same AS
๐ Example: Core routers inside a data center
๐ How BGP Actually Works
1️⃣ Configure neighbor
2️⃣ Establish TCP session (Port 179)
3️⃣ Exchange OPEN messages
4️⃣ Send KEEPALIVE messages
5️⃣ Advertise routes
6️⃣ Withdraw routes if links fail
๐ Only ONE best path gets installed in the routing table.
๐ฏ Key BGP Attributes Engineers Must Know
✔ Weight (Cisco local attribute)
✔ Local Preference (controls exit path)
✔ AS-PATH (loop prevention + path length)
✔ NEXT-HOP (where traffic goes next)
✔ MED (suggest preferred entry point)
✔ COMMUNITY (policy tagging)
๐ These attributes are how engineers control traffic.
๐ก️ BGP Security Matters
✔ Prefix filtering prevents route leaks
✔ MD5 authentication secures neighbors
✔ RPKI validation protects against hijacks
๐ Misconfigured BGP can break the internet.
๐ Real-World Use Cases
✔ Multi-ISP redundancy
✔ Traffic engineering
✔ Cloud connectivity (AWS / Azure / GCP)
✔ ISP peering & global routing
๐ง BGP isn’t just a protocol — it’s the control system of the internet.

No comments:
Post a Comment