← Back to Part 1 Modules
PART 1 · BASIC BGP THEORY · MODULE B

Module B – Autonomous Systems and ASN Architecture

Lesson content presented from the approved Part 1 master documentation.

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 / valueUse
1–64495Public ASN allocation space, subject to IANA reservations and special-purpose assignments.
64496–64511Documentation ASNs.
64512–6553416-bit private-use ASN range.
65535Reserved.
4200000000–429496729432-bit private-use ASN range.
4294967295Reserved.

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

PatternDescription
Single-homedAn AS has one upstream connection or one upstream provider.
MultihomedAn AS connects to more than one upstream connection/provider for resilience or policy.
Stub ASAn AS that does not provide transit for other autonomous systems.
Transit ASAn AS that carries traffic between other ASes.

These labels describe different design dimensions: single-/multihomed describes connectivity; stub/transit describes routing role.

ASN representation

  • 16-bit ASNs and 32-bit ASNs are supported by modern BGP implementations.
  • ASPLAIN represents the ASN as a decimal integer.
  • ASDOT represents a 32-bit ASN as high-order and low-order 16-bit values. For example, 1.10 in ASDOT corresponds to 65546 in ASPLAIN.
  • The legacy 16-bit My AS field in the BGP OPEN message is supplemented by the four-octet ASN capability. AS_TRANS (23456) is used for compatibility in relevant legacy cases.
  • Example lab AS allocation

    RouterASRole
    R165001AS65001 edge
    R365001AS65001 internal peer
    R265002AS65002 edge
    R465002AS65002 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

  • Configure a correct remote-AS value and verify peering.
  • Configure a deliberately incorrect remote-AS value and observe the peer-AS error.
  • Verify the router's local ASN and configured peer ASN against the approved topology.
  • Check ASDOT/ASPLAIN representation where 32-bit ASN support is in scope.
  • Verify that private lab ASNs are not confused with public production allocations.
  • 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.

    Source and assessment note

    Technical explanations, tables, examples, QA scenarios and assessments are presented from the approved Part 1 master documentation. Verify illustrative CLI syntax against the target router platform and software release before lab or production use.