Two autonomous systems peer with eBGP while each AS distributes the learned prefixes internally with iBGP, and path attributes decide the best path.
100%
Legend
Current step
The eBGP session comes up
The two edge routers open a TCP session on port 179, exchange OPEN messages and agree on the parameters.
Transport
TCP
Port
179
Session type
eBGP
eBGP exchanges routes between autonomous systems; iBGP carries them across an AS without changing the AS_PATH, so a full mesh or a route reflector is required to avoid loops.
Documentation example: addresses use the RFC 5737 ranges and ASNs use the reserved private range. Nothing here connects to a real network.