Pages

Thursday, April 18, 2013

BGP Support for 4-byte ASN


Prior to January 2009, BGP autonomous system numbers that were allocated to companies were 2-octet numbers in the range from 1 to 65535 as described in RFC 4271, A Border Gateway Protocol 4 (BGP-4). Due to increased demand for autonomous system numbers, the Internet Assigned Number Authority (IANA) will start in January 2009 to allocate four-octet autonomous system numbers in the range from 65536 to 4294967295. RFC 5396, Textual Representation of Autonomous System (AS) Numbers, documents three methods of representing autonomous system numbers. Cisco has implemented the following two methods:

  •  Asplain--Decimal value notation where both 2-byte and 4-byte autonomous system numbers are represented by their decimal value. For example, 65526 is a 2-byte autonomous system number and 234567 is a 4-byte autonomous system number.
  •  Asdot--Autonomous system dot notation where 2-byte autonomous system numbers are represented by their decimal value and 4-byte autonomous system numbers are represented by a dot notation. For example, 65526 is a 2-byte autonomous system number and 1.169031 is a 4-byte autonomous system number (this is dot notation for the 234567 decimal number).




Formula to calculate ASN 4bytes(quotient.remainder):
Example for AS 769672:

quotient =>
769672 / 65536 = 11
remainder = 769672 - (11*65536) = 48776
Result: AS 11.48776

AS-PLAIN number: AS-DOT number: .
Script from: http://labs.spritelink.net/ascalc



from: IP Routing: BGP Features

Files:
Topology
Configs
BGP Configuration
Cisco Document - ASN

Good article about Conversion


No comments:

Post a Comment