Module B – Autonomous Systems and ASN Architecture
An Autonomous System (AS) is a group of IP networks and routers under a common administrative routing policy. An Autonomous System Number (ASN) identifies the AS in inter-domain routing. BGP uses ASNs in neighbour configuration and in the AS_PATH attribute.
ASN formats and ranges
| Range / value | Use |
|---|---|
| 1–64495 | Public ASN allocation space, subject to IANA reservations and special-purpose assignments. |
| 64496–64511 | Documentation ASNs. |
| 64512–65534 | 16-bit private-use ASN range. |
| 65535 | Reserved. |
| 4200000000–4294967294 | 32-bit private-use ASN range. |
| 4294967295 | Reserved. |
IANA coordinates global number resources and Regional Internet Registries (RIRs) administer allocations within their regions, including APNIC, ARIN, RIPE NCC, LACNIC and AFRINIC. Check current IANA/RIR registries when validating a production ASN; do not assume every value outside a private range is freely assignable.
AS design patterns
| Pattern | Description |
|---|---|
| Single-homed | An AS has one upstream connection or one upstream provider. |
| Multihomed | An AS connects to more than one upstream connection/provider for resilience or policy. |
| Stub AS | An AS that does not provide transit for other autonomous systems. |
| Transit AS | An AS that carries traffic between other ASes. |
These labels describe different design dimensions: single-/multihomed describes connectivity; stub/transit describes routing role.
ASN representation
Example lab AS allocation
| Router | AS | Role |
|---|---|---|
| R1 | 65001 | AS65001 edge |
| R3 | 65001 | AS65001 internal peer |
| R2 | 65002 | AS65002 edge |
| R4 | 65002 | AS65002 internal peer |
The lab uses private ASNs 65001 and 65002. R1–R2 and R3–R4 are planned eBGP links; R1–R3 and R2–R4 are planned iBGP links.
Example configuration and verification
! R1 example
router bgp 65001
neighbor 11.1.1.2 remote-as 65002
!
! R2 example
router bgp 65002
neighbor 11.1.1.1 remote-as 65001
show ip bgp summary
show running-config | section router bgp
show ip bgp
Senior Network QA test ideas
| Key takeaway An ASN identifies the routing domain. The local ASN and neighbour remote-AS must match the intended AS architecture. |
|---|
Student Knowledge Assessment – Module B
Q1. What does an ASN identify in BGP?
A. A physical interface
B. An Autonomous System
C. A TCP port
D. A route-map sequence
Correct answer: B. An Autonomous System Explanation: An ASN identifies an Autonomous System in inter-domain routing.
Q2. Which protocol uses TCP port 179?
A. OSPF
B. EIGRP
C. BGP
D. IS-IS
Correct answer: C. BGP Explanation: BGP establishes its peer transport connection using TCP port 179.
Q3. Which range is the 16-bit private-use ASN range?
A. 1–100
B. 64512–65534
C. 65535–65550
D. 4200000000–4294967294
Correct answer: B. 64512–65534 Explanation: 64512–65534 is the 16-bit private-use range.
Q4. Which range is reserved for documentation ASNs?
A. 64496–64511
B. 64512–65534
C. 1–100
D. 65535–65550
Correct answer: A. 64496–64511 Explanation: 64496–64511 is reserved for documentation.
Q5. What is the 32-bit private-use ASN range?
A. 1–65535
B. 64512–65534
C. 4200000000–4294967294
D. 4294967295 only
Correct answer: C. 4200000000–4294967294 Explanation: The 32-bit private-use range is 4200000000–4294967294.
Q6. What is a multihomed AS?
A. An AS with no routers
B. An AS connected through multiple upstream connections/providers
C. An AS using only OSPF
D. An AS without an ASN
Correct answer: B. An AS connected through multiple upstream connections/providers Explanation: Multihoming describes connectivity to multiple upstreams or providers.
Q7. What is a transit AS?
A. An AS that carries traffic between other ASes
B. An AS with one router only
C. An AS that cannot advertise routes
D. An AS without external peers
Correct answer: A. An AS that carries traffic between other ASes Explanation: A transit AS provides transit routing between other autonomous systems.
Q8. What does AS_TRANS represent?
A. A TCP port
B. A compatibility ASN value used with four-octet ASN support
C. A route reflector
D. An OSPF area
Correct answer: B. A compatibility ASN value used with four-octet ASN support Explanation: AS_TRANS is 23456 and is used for compatibility in relevant four-octet ASN scenarios.
Q9. What is ASPLAIN?
A. A dotted ASN representation
B. A decimal integer ASN representation
C. An IPv6 format
D. A BGP state
Correct answer: B. A decimal integer ASN representation Explanation: ASPLAIN displays the ASN as a decimal integer.
Q10. Which statement is correct about single-/multihomed and stub/transit?
A. They are identical classifications
B. They describe different design dimensions
C. They are BGP message types
D. They are private ASN ranges
Correct answer: B. They describe different design dimensions Explanation: Single-/multihomed describes connectivity; stub/transit describes routing role.