An autonomous system (AS) is a network under one organization’s control. Interior Gateway Protocols exchange routes within an AS, while Exterior Gateway Protocols exchange routes between ASes. section 17.2
This boundary explains how routing scales: internal routers use an IGP, while organizations and Internet service providers use an EGP. BGP represents paths as sequences of ASes rather than individual routers. section 17.2 section 17.2.2
Enterprise-to-enterprise path
A packet leaving Enterprise A can cross ISP A and ISP B before reaching Enterprise B. BGP communicates this inter-AS path, while each organization uses an IGP internally. section 17.2.2
Figure 17.5 IGPs are used to exchange routing information with routers in the same AS (connected with solid lines). EGPs are used to exchange routing information with routers in a different AS (connected with dotted lines).
Compare solid intra-AS routing links with dotted inter-AS links. section 17.2

