EGP Explained: One Name, Two Meanings in Internet Routing
“Exterior gateway protocol” can describe a category of routing protocols, but EGP is also the name of one particular older protocol. That double meaning can make a networking explanation sound more confusing than the network itself.
A routing protocol supplies rules for exchanging information about how to reach network destinations. A router uses routing information to forward packets, the small pieces of data that travel across a network.
The category and the historical protocol
In the general sense, an exterior gateway protocol exchanges routes between autonomous systems. An autonomous system is a network, or group of networks, that presents a common routing policy to other networks.
A routing policy is the operator's set of rules for choosing and sharing routes. The internet guidance on autonomous systems makes that common policy central to the definition.
Border Gateway Protocol, or BGP, performs this role on the internet today.
The specifically named Exterior Gateway Protocol was documented in a 1984 specification. It let neighboring gateways exchange information about reachable networks, within a more restricted design than the modern internet requires.
BGP developed from experience with that earlier protocol. An older document describing “EGP messages” may mean the historical protocol, while a textbook calling BGP “an EGP” means the broader category.
The boundary is between routing systems
“Exterior” doesn't mean a cable outside the building. It refers to exchanging information across autonomous-system boundaries.
Internet providers, large organizations and other network operators can each run autonomous systems. Within one system, an interior gateway protocol, or IGP, can distribute local routing information.
The distinction describes roles rather than an absolute ban on where a protocol runs. BGP also has an internal form for sharing BGP information among routers within the same autonomous system.
Why the Internet's Road Map Keeps Breaking
Exchanging routes is different from carrying the traffic
Suppose an organization has connections to two internet providers. It may use BGP to announce which address blocks belong behind its network and learn routes offered by those providers.
An address block, also called a prefix, is a group of IP addresses. IP stands for Internet Protocol, and these numerical addresses help deliver internet traffic.
The BGP specification describes route announcements that include information about the autonomous systems along a path. Routers use that information and their configured policies when choosing routes.
Those announcements aren't the web pages, video or email being delivered. They help establish the directions that routers use when forwarding the separate data packets.
Not every home or office needs to run BGP. A small network can send traffic for destinations it doesn't otherwise know to its provider through a default route, a fallback routing instruction.
- Get five gigabit ports and a fast ARM processor for the price of a basic home router.
- Practice real routing at your desk on gear that network pros also deploy.
- Tuck it beside your modem: it takes up almost no room.
“Best route” doesn't promise the quickest download
A router's preferred route reflects its selection rules. That isn't necessarily the route with the shortest travel time, and a routing protocol doesn't create extra connection capacity.
A network can also choose which routes it shares with particular neighbors. There isn't one central router handing every network the same set of instructions.
Because other networks may rely on an announcement, an incorrect one can affect traffic well beyond its source. The Internet Engineering Task Force's BGP operations guidance recommends filtering received and advertised routes to limit mistakes and unwanted announcements.
If you're reading about EGP in a current network design, establish which meaning the writer intends. For actual routing between internet networks, the useful next details are the BGP neighbors, their policies and the routes they're exchanging.
BGP: How the Internet Shares—and Changes—Its Directions

Autonomous Systems: The Networks That Make an Internet

Dynamic Routing Protocols: How Networks Find Another Way

QUOTE:
"Amateurs hack systems, professionals hack people."
