IGP and EGP
Why routers exchange routes
Static routes work well for a small, stable network. Dynamic routing lets routers exchange reachability information and revise routes when their network changes. A routing process learns candidates in the control plane; selected routes may be installed for forwarding. A learned route does not guarantee that an application responds.
Autonomous systems and routing boundaries
An autonomous system (AS) is a routing domain with a coherent external routing policy. An AS number (ASN) identifies it in inter-domain routing. An interior gateway protocol (IGP) distributes routing information within an AS; OSPF, IS-IS, RIP and EIGRP are examples. An exterior gateway protocol (EGP) exchanges reachability across AS boundaries; BGP is the principal example. EGP also names a particular historical protocol, which is not the same as the category.
Worked example: three routing domains
The diagram shows three fictional ASes. R1 and R2 exchange internal routes using OSPF. R2 and R3 exchange external routes using eBGP; so do R4 and R5. R3 and R4 use IS-IS internally. The ASNs are private-use numbers for paper examples only; they must never be advertised to external peers. The labels describe routing sessions, not every physical connection or packet path.
AS 64512 AS 64513 AS 64514R1 --OSPF-- R2 --eBGP-- R3 --IS-IS-- R4 --eBGP-- R5BGP inside an AS and protocol neighbors
BGP sessions between different ASes are called external BGP (eBGP); sessions within the same AS are internal BGP (iBGP). iBGP distributes BGP routes internally, but does not normally replace the IGP that provides internal next-hop reachability. A routing neighbor or peer is a participant that exchanges protocol information; how a relationship forms depends on the protocol. A physical cable alone does not establish an OSPF adjacency or BGP session.
Choose the right scope
An office with several routers can use an IGP to adapt to internal link changes without participating in Internet-wide BGP. An organization exchanging prefixes with another AS may need BGP and explicit policy. A single router with one uplink may need only a static default route. Practice: if R3 and R4 also establish a BGP session, classify it as iBGP because they share AS 64513. Do not assume that every router needs every protocol.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
IGP and EGP — knowledge check
Apply dynamic routing concepts to fictional domains and graphs.
Two routers in AS 64512 run OSPF. What is its role?
A BGP session connects AS 64512 and AS 64513. Which type?
Two BGP peers belong to AS 64513. What is their session called?
What does an ASN identify in inter-domain routing?
A single-router office has one uplink and no dynamic routing requirement. What may suffice?