From peering fundamentals and path attributes to route policy, communities, and modern EVPN
The internet's routing policy engine — connecting autonomous systems
Autonomous systems, address families, and the two flavors of BGP
TCP/179 and uses a path vector algorithm that tracks the full AS path to every destination.| Concept | Description |
|---|---|
| Autonomous System (AS) | A network or group of networks under a single administrative policy. Identified by a 32-bit ASN (RFC 6793). |
| eBGP | External BGP — sessions between different ASes. The backbone of internet routing. |
| iBGP | Internal BGP — sessions within the same AS. Distributes external routes internally. |
| AFI/SAFI | Address Family Identifier / Sub-AFI. Enables BGP to carry IPv4, IPv6, VPNv4, EVPN, and more in one protocol. |
| NLRI | Network Layer Reachability Information — the prefixes being advertised in UPDATE messages. |
Two flavors, very different rules
| Behavior | eBGP | iBGP |
|---|---|---|
| Peers are in... | Different ASes | Same AS |
| TTL default | 1 (directly connected) | 255 (multihop by default) |
| AS_PATH | Local AS prepended on send | AS_PATH unchanged |
| NEXT_HOP | Set to self | Unchanged (must be reachable via IGP) |
| LOCAL_PREF | Not sent | Sent between iBGP peers |
| Loop prevention | AS_PATH check — reject if own AS seen | Cluster-ID / Originator-ID |
| Full mesh required? | No | Yes (or use Route Reflectors / Confederations) |
n(n-1)/2 sessions. At 50 routers, that is 1,225 sessions. Route reflectors solve this.Four message types drive all BGP operations