EGP, BGP (Exterior Gateway Routing, Border Gateway Protocol)

See IGP, EGP (Routing Protocols). This will talk more in-depth info on Exterior Gateway Routing Protocols between primarily Autonomous Systems (AS, Networking).

Here BGP: Border Gateway Protocol is used to route between Autonomous Systems (AS, Networking). They are used to route between ASes. Used to route between Ases :
• Exchanges network reachability information. Says you can get to network X via this path of ASes
• Needs to be concerned with policies (business and political)
• See RFC 1771, BGP-4
• Runs over a reliable transport protocol (TCP)
• Uses a modified Distance Vector Protocol, but really it's Path-Vector Routing

Pasted image 20250206161204.png

It's important to note that it only exchanges routing information at the AS level. So there is not routing info about the internals of the ASes. It exchanges the full AS path info the the destination IP.

Example

IP 5.0.0.0/8 has path <AS4, AS 9, AS 7, AS 3> from your local machine.

An Example

Here essentially the BGP speakers share with their neighbors, similar to the Shortest Path Algorithm (Networking), RIP, the paths of ASes for each subnet. For choosing a path:

Note

You're Routing Table will not have info on ASes, but on the BGP speaker it routes certain IPs (ex: Cal Polys) to whatever direction its policy says to do.

Interior Boarder Gateway Protocol

How does the information on the BGP speaker get to information within the cloud/AS? Here comes interior Boarder Gateway Protocol (iBGP):