In a network environment, an Autonomous System which simply referred as (AS) abbreviated is a classified group of networks under a single administrative control. This could be an Internet Service Provider (ISP) or even a large Enterprise, or an Organization. An Interior Gateway Protocol (IGP) refers to a routing protocol that handles routing within a single autonomous system. IGPs include RIP, IGRP, EIGRP, and OSPF. An Exterior Gateway Protocol (EGP) handles routing between different Autonomous Systems (AS). Border Gateway Protocol (BGP) is an EGP.
BGP is used to route traffic across the Internet backbone between different Autonomous Systems.
When BGP (Border Gateway Protocol) was at development and standardization stage, a 16-bit binary number was used as the Autonomous System Number (ASN) to identify the Autonomous Systems. 16-bit Autonomous System Number (ASN) is also known as 2-Octet Autonomous System Number (ASN).
By using a 16 bit binary number, we can represent (2 16) numbers, which is equal to 65536 in decimals.
The Autonomous System Number (ASN) value 0 is reserved, and the largest ASN value 65,535, is also reserved.
The values, from 1 to 64,511, are available for use in Internet routing, and the values 64,512 to 65,534 is designated for private use.
Available 16-bit (2-Octet) Autonomous System Numbers (ASN) were in verge of depletion by middle of 2011.
To provide more Autonomous System Numbers (ASN), IETF published RFC 4893 in May 2007, which introduced 32-bit AS numbers.
32-bit Autonomous System Number (ASN) is also known as 4-Octet Autonomous System Number (ASN). 32-bit (4-Octet) AS numbers are represented as either as simple integers, or in the form x.y, where x and y are 16-bit numbers. Numbers of the form 0.y are exactly the previous 16-bit AS numbers.