Protocols
Saved & recent

BGP

Also called: Border Gateway Protocol, BGP-4

Border Gateway Protocol exchanges reachability information between autonomous systems: networks that present a coordinated routing policy to their neighbors. BGP advertisements describe reachable IP prefixes and attributes such as the autonomous-system path. Operators use these attributes and local policies to decide which routes to select and advertise onward.

For example, a network can learn two routes to a prefix through different providers and prefer one because of its commercial policy. That choice need not be the shortest geographic journey or the path with the fewest routers. BGP distributes routing information; ordinary IP forwarding then uses the resulting routes to move individual packets. Its basic advertisements do not by themselves establish that every routing claim is trustworthy.

Read first
Routing, Autonomous system
Related
Anycast, OSPF, IP address and subnet
Further reading
IETF RFC 4271 — A Border Gateway Protocol 4 (BGP-4)
AS A AS B AS C 192.0.2.0/24 192.0.2.0/24 policy preference 200 policy preference 100 later packet forwarded toward B illustrative operator policy
Illustrative BGP choice: local policy can prefer one advertised route even when another path appears shorter.

View in the full Protocols collection