4 byte AS number workshop material

842 views

Published on

It is the training material in 4 byte AS number migration training course. Date: Nov. 18, 2009. Location: National Taiwan Normal University.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
842
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

4 byte AS number workshop material

  1. 1. 4-Byte AS Number Workshop
  2. 2. Agenda <ul><li>4-byte ASN recap </li></ul><ul><li>Workshop environment introduction </li></ul><ul><ul><li>IOS Route-Reflector </li></ul></ul><ul><ul><li>IOS Confederation </li></ul></ul><ul><ul><li>JUNOS Route-Reflector </li></ul></ul><ul><ul><li>JUNOS Confederation </li></ul></ul><ul><li>4-byte ASN in a 2-byte ASN BGP domain </li></ul><ul><li>Add 4-byte ASN ready router in a BGP domain </li></ul><ul><li>4-byte ASN BGP policy discussion </li></ul><ul><li>Q&A </li></ul>
  3. 3. 4-byte ASN recap <ul><li>Changes in BGP 4-byte AS: </li></ul><ul><ul><li>New BGP capability advertisement </li></ul></ul><ul><ul><ul><li>Capability code: 65 </li></ul></ul></ul><ul><ul><ul><li>Capability length: 4 </li></ul></ul></ul><ul><ul><li>Attribute update </li></ul></ul><ul><ul><ul><li>AS_PATH attribute carry 4 byte AS </li></ul></ul></ul><ul><ul><ul><li>AGGREGATOR attribute carry 4 byte AS </li></ul></ul></ul><ul><ul><li>New attribute </li></ul></ul><ul><ul><ul><li>Add AS4_PATH attribute </li></ul></ul></ul><ul><ul><ul><ul><li>optional, transitive </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Construct from AS_PATH attribute by 4-byte AS enabled router when face to 2-byte AS only router </li></ul></ul></ul></ul><ul><ul><ul><li>Add AS4_AGGREGATOR attribute </li></ul></ul></ul><ul><ul><ul><ul><li>optional, transitive </li></ul></ul></ul></ul><ul><ul><ul><ul><li>Construct from AGGREGATOR attribute by 4-byte AS enabled router when face to 2-byte AS only router </li></ul></ul></ul></ul>
  4. 4. 4-byte ASN recap <ul><li>Limitations: </li></ul><ul><ul><li>NEW BGP speaker need a 2-byte AS to peer with the OLD BGP speaker. </li></ul></ul><ul><ul><ul><li>No-mappable 4-byte AS can use “23456” as 2-byte AS </li></ul></ul></ul><ul><ul><li>AS4_PATH is not compatible with: </li></ul></ul><ul><ul><ul><li>AS_CONFED_SEQUENCE </li></ul></ul></ul><ul><ul><ul><li>AS_CONFED_SET </li></ul></ul></ul><ul><ul><ul><li>Must use mappable 4 byte member ASN during the migration </li></ul></ul></ul><ul><ul><ul><ul><li>i.e. 0.64512 ~ 0.65535 </li></ul></ul></ul></ul><ul><li>Other considerations </li></ul><ul><ul><li>BGP community handling </li></ul></ul><ul><ul><ul><li>Current AS encoding method in BGP community should be updated </li></ul></ul></ul><ul><ul><ul><li>ref: draft-rekhter-as4octet-ext-community-03.txt </li></ul></ul></ul><ul><ul><li>Netflow statistics </li></ul></ul><ul><ul><ul><li>Netflow version 9 support 4-byte AS number </li></ul></ul></ul>
  5. 5. 4-byte ASN recap <ul><ul><ul><ul><ul><li>From “4-Byte AS Numbers, The view from the Old BGP world, p21” by Geoff Huston, APNIC </li></ul></ul></ul></ul></ul>
  6. 6. <ul><li>AS4_PATH example </li></ul><ul><ul><li>193.5.68.0/23 </li></ul></ul><ul><ul><li>Attribute Type/Length/Value </li></ul></ul><ul><ul><ul><li>Attribute Type (2 octets) </li></ul></ul></ul><ul><ul><ul><ul><li>0xe0 => optional, transitive </li></ul></ul></ul></ul><ul><ul><ul><ul><li>0x11 => AS4_PATH (TYPE CODE 17) </li></ul></ul></ul></ul><ul><ul><ul><li>Attribute Length (Variable) </li></ul></ul></ul><ul><ul><ul><li>AS Path Segments (Variable), which includes </li></ul></ul></ul><ul><ul><ul><ul><li>Segment Type (1 octet) </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x02 => AS Sequence </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><li>Segment Length (1 octet) </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x03 => AS numbers in the AS Sequence </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><li>Value (Variable) </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x00 00 1a ae => 6830 (The AS who generated the AS4_PATH) </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x00 00 22 36 => 8758 </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x00 03 00 0d => 3.13 </li></ul></ul></ul></ul></ul>4-byte ASN recap
  7. 7. <ul><li>AS4_PATH example </li></ul><ul><ul><li>195.47.195.0/24 </li></ul></ul><ul><ul><li>Attribute Type/Length/Value </li></ul></ul><ul><ul><ul><li>Attribute Type (2 octets) </li></ul></ul></ul><ul><ul><ul><ul><li>0xe0 => optional, transitive </li></ul></ul></ul></ul><ul><ul><ul><ul><li>0x11 => AS4_PATH (TYPE CODE 17) </li></ul></ul></ul></ul><ul><ul><ul><li>Attribute Length (Variable) </li></ul></ul></ul><ul><ul><ul><li>AS Path Segments (Variable), which includes </li></ul></ul></ul><ul><ul><ul><ul><li>Segment Type (1 octet) </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x02 => AS Sequence </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><li>Segment Length (1 octet) </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x01 => AS numbers in the AS Sequence </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><li>Value (Variable) </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x00 03 00 10 => 3.16 (The AS who generated the AS4_PATH) </li></ul></ul></ul></ul></ul>4-byte ASN recap
  8. 8. <ul><li>AS4_PATH example </li></ul><ul><ul><li>2001:7fb:ff00::/48 </li></ul></ul><ul><ul><li>Attribute Type/Length/Value </li></ul></ul><ul><ul><ul><li>Attribute Type (2 octets) </li></ul></ul></ul><ul><ul><ul><ul><li>0xe0 => optional, transitive </li></ul></ul></ul></ul><ul><ul><ul><ul><li>0x11 => AS4_PATH (TYPE CODE 17) </li></ul></ul></ul></ul><ul><ul><ul><li>Attribute Length (Variable) </li></ul></ul></ul><ul><ul><ul><li>AS Path Segments (Variable), which includes </li></ul></ul></ul><ul><ul><ul><ul><li>Segment Type (1 octet) </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x02 => AS Sequence </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><li>Segment Length (1 octet) </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x03 => AS numbers in the AS Sequence </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><li>Value (Variable) </li></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x00 00 04 65 => 1125 (The AS who generated the AS4_PATH) </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x00 03 00 05 => 3.5 </li></ul></ul></ul></ul></ul><ul><ul><ul><ul><ul><li>0x00 00 31 6e => 12654 </li></ul></ul></ul></ul></ul>4-byte ASN recap
  9. 9. <ul><ul><ul><ul><ul><li>From “4-Byte AS Numbers, The view from the Old BGP world, p23” by Geoff Huston, APNIC </li></ul></ul></ul></ul></ul>4-byte ASN recap
  10. 10. <ul><ul><ul><ul><ul><li>From “4-Byte AS Numbers, The view from the Old BGP world, p24” by Geoff Huston, APNIC </li></ul></ul></ul></ul></ul>4-byte ASN recap
  11. 11. 4-byte ASN recap <ul><li>ASDOT </li></ul><ul><ul><li>Split the ASN into two 16bits numbers </li></ul></ul><ul><ul><li>ex. 65600 is 1.64 in 2-byte representation </li></ul></ul><ul><ul><ul><li>65600 is “65536*1 + 64” </li></ul></ul></ul><ul><ul><li>Difficult to handle in regular expressions </li></ul></ul><ul><li>ASPLAIN </li></ul><ul><ul><li>Just like regular 2-byte AS, but extending to 32 bits </li></ul></ul><ul><ul><li>ex. 65600 </li></ul></ul><ul><li>ASPLAIN and ASDOT in the workshop </li></ul><ul><ul><li>AS66000 -> AS 1.464 </li></ul></ul><ul><ul><li>AS67000 -> AS 1.1464 </li></ul></ul><ul><ul><li>AS68000 -> AS 1.2464 </li></ul></ul><ul><ul><li>AS69000 -> AS 1.3464 </li></ul></ul>
  12. 12. Workshop environment introduction 4-Byte AS Transit ISP/IX ISP customer Regular ISP 2-Byte AS Transit ISP/IX ISP customer ISP customer Regular ISP ISP customer ISP customer ISP customer
  13. 13. Workshop environment introduction – IOS Route-Reflector AS69000 AS100 AS101 AS68101 AS67101 AS66101 F1/0 FE1/0 FE1/1 FE1/0 FE1/0 eBGP eBGP iBGP R# : 2-byte available only R# : 4-byte available Login: guest Password: guest enable: admin Transit Interface IP 10.100.AS#.R#/16 10.69.AS#.R#/16 ISP Interface IP 10.AS#.R#R#.R#/24 ISP Loopback IP 10.AS#.0.R#/32 172.101.6.0/24 172.101.66.0/24 172.101.7.0/24 172.101.8.0/24 172.101.68.0/24 <- 172.101.67.0/24 172.101.69.0/24 -> F1/0 2.2/16 4.4/16 R2 R4 F1/1 F1/1 R1 R3 R2 R4 R5 R6 R7 R8 F1/0 F2/0 F2/0 F1/1 F2/1 F2/0 F2/1 F1/0 F1/1 F2/1 F2/0 F1/0 F1/1 F1/1 F1/0 F2/1 F2/0 F2/1 10.101/16 10.169/24
  14. 14. Workshop environment introduction – IOS Confederation AS69000 AS100 AS102 AS68102 AS67102 AS66102 F1/0 FE1/0 FE1/1 FE1/0 FE1/0 eBGP eBGP iBGP R# : 2-byte available only R# : 4-byte available Login: guest Password: guest enable: admin Transit Interface IP 10.100.AS#.R#/16 10.69.AS#.R#/16 ISP Interface IP 10.AS#.R#R#.R#/24 ISP Loopback IP 10.AS#.0.R#/32 172.102.6.0/24 172.102.66.0/24 172.102.7.0/24 172.102.8.0/24 172.102.68.0/24 <- 172.102.67.0/24 172.102.69.0/24 -> F1/0 2.2/16 4.4/16 R2 R4 F1/1 F1/1 R1 R3 R4 R5 R6 R7 R8 F1/0 F2/0 F2/0 F1/1 F2/1 F2/0 F2/1 F1/0 F1/1 F1/1 F1/0 F2/1 F2/0 F2/1 10.102/16 10.169/24 AS65102 AS65112 eBGP eBGP
  15. 15. Workshop environment introduction – JUNOS Route-Reflector AS69000 AS200 AS201 AS68201 AS67201 AS66201 fxp5.30 fxp5.30 fxp3.30 fxp4.30 fxp5.10 fxp5.10 fxp3.30 fxp4.30 fxp3.10 fxp6.10 fxp6.10 fxp5.20 fxp4.10 fxp3.20 fxp4.20 fxp5.20 fxp6.20 fxp6.20 fxp5.30 fxp3.10 fxp5.30 fxp4.10 fxp7.10 fxp7.10 fxp4.20 fxp3.20 eBGP eBGP iBGP 172.201.6.0/24 172.201.66.0/24 172.201.7.0/24 172.201.8.0/24 172.201.68.0/24 <- 172.201.67.0/24 172.201.69.0/24 -> R# : 2-byte available only R# : 4-byte available 10.201/16 Login: admin# Password: Admin# Login: guest# Password: Guest# Transit Interface IP 10.200.AS#.R#/16 10.69.AS#.R#/16 ISP Interface IP 10.AS#.R#R#.R#/24 ISP Loopback IP 10.AS#.0.R#/32
  16. 16. Workshop environment introduction – JUNOS Confederation AS69000 AS200 AS202 fxp5.30 fxp5.30 fxp3.30 fxp4.30 fxp5.10 fxp5.10 fxp3.30 fxp4.30 fxp3.10 fxp3.40 fxp4.10 fxp4.40 fxp6.20 fxp6.20 fxp5.30 fxp3.10 fxp7.10 fxp4.20 eBGP eBGP iBGP eBGP eBGP AS65202 AS65222 AS68202 AS67202 AS66202 fxp5.30 fxp4.10 fxp7.10 fxp3.20 172.202.6.0/24 172.202.66.0/24 172.202.7.0/24 172.202.8.0/24 172.202.68.0/24 <- 172.202.67.0/24 172.202.69.0/24 -> R# : 2-byte available only R# : 4-byte available 10.202/16 Login: admin# Password: Admin# Login: guest# Password: Guest# Transit Interface IP 10.200.AS#.R#/16 10.69.AS#.R#/16 ISP Interface IP 10.AS#.R#R#.R#/24 ISP Loopback IP 10.AS#.0.R#/32
  17. 17. Workshop environment introduction <ul><li>Connect to terminal server </li></ul><ul><ul><li>Download SSH client (ex. Putty) </li></ul></ul><ul><ul><li>Open a ssh session to 140.122.61.3 or 140.122.61.4 </li></ul></ul><ul><ul><ul><li>Login ID/Password : guest/guest </li></ul></ul></ul><ul><li>Connect to workshop router </li></ul><ul><ul><li>You have to connect workshop router from terminal server </li></ul></ul><ul><ul><li>Workshop router management IP : 192.168.AS#.R# </li></ul></ul><ul><ul><ul><li>ex. Router management IP of AS101 R2 : 192.168.101.2 </li></ul></ul></ul><ul><ul><ul><li>Please use “69” in AS69000 </li></ul></ul></ul><ul><ul><ul><li>Please use uplink ISP AS# as 4-byte customer ISP AS# </li></ul></ul></ul><ul><ul><li>Only guest privilege is permitted in transit and demo AS </li></ul></ul><ul><ul><ul><li>Transit AS : AS100, AS200, AS69000 </li></ul></ul></ul><ul><ul><ul><li>Route-Reflector demo : AS101, AS201 and their customer AS </li></ul></ul></ul><ul><ul><ul><li>Confederation demo : AS102, AS202 and their customer AS </li></ul></ul></ul>
  18. 18. Workshop environment introduction <ul><li>Provide Route-Reflector topology only </li></ul><ul><li>IOS test environment </li></ul><ul><ul><li>AS100 </li></ul></ul><ul><ul><ul><li>Router management IP : 192.168.100.R# </li></ul></ul></ul><ul><ul><li>AS101 </li></ul></ul><ul><ul><ul><li>Router management IP : 192.168.101.R# </li></ul></ul></ul><ul><ul><li>AS102 </li></ul></ul><ul><ul><ul><li>Router management IP : 192.168.102.R# </li></ul></ul></ul><ul><ul><li>AS103 </li></ul></ul><ul><ul><ul><li>Router management IP : 192.168.103.R# </li></ul></ul></ul><ul><ul><li>AS104 </li></ul></ul><ul><ul><ul><li>Router management IP : 192.168.104.R# </li></ul></ul></ul><ul><li>JUNOS test environment </li></ul>
  19. 19. 4-byte ASN in a 2-byte ASN BGP domain <ul><li>Check 4-byte ASN in a pure 2-byte environment </li></ul><ul><ul><li>IOS </li></ul></ul><ul><ul><ul><li>show ip bgp </li></ul></ul></ul><ul><ul><li>JUNOS </li></ul></ul><ul><ul><ul><li>show route protocol bgp </li></ul></ul></ul><ul><ul><ul><li>show route protocol bgp extensive </li></ul></ul></ul><ul><li>Add a new 4-byte ready customer router to ISP 2-byte router </li></ul><ul><ul><li>Create an eBGP session between R3 and R6 </li></ul></ul><ul><ul><li>Create an eBGP session between R3 and R7 </li></ul></ul><ul><li>Check BGP information in R6 and R7 </li></ul>
  20. 20. Add 4-byte ASN ready router in a BGP domain <ul><li>Add a new 4-byte ready border router </li></ul><ul><ul><li>Create an iBGP session between R4 and R2 </li></ul></ul><ul><ul><li>Create an eBGP session between R4 and AS69000 R4 </li></ul></ul><ul><li>Add a new 4-byte ready edge router </li></ul><ul><ul><li>Create an iBGP session between R5 and R2 </li></ul></ul><ul><ul><li>Create an eBGP session between R5 and R7 </li></ul></ul><ul><ul><li>Create an eBGP session between R5 and R8 </li></ul></ul><ul><li>Check BGP information in R4 , R5 , R7 and R8 </li></ul>
  21. 21. 4-byte ASN BGP policy discussion <ul><li>Aggregate BGP route </li></ul><ul><ul><li>In R3 : </li></ul></ul><ul><ul><ul><li>aggregate BGP routes from R6 and R7 </li></ul></ul></ul><ul><ul><li>In R5 : </li></ul></ul><ul><ul><ul><li>aggregate BGP routes from R7 and R8 </li></ul></ul></ul><ul><li>AS path regular expression </li></ul><ul><ul><li>In R4 : </li></ul></ul><ul><ul><ul><li>set local preference by AS path </li></ul></ul></ul><ul><ul><ul><li>set route filter by AS path </li></ul></ul></ul><ul><ul><li>In R5 : </li></ul></ul><ul><ul><ul><li>set local preference by AS path </li></ul></ul></ul><ul><ul><ul><li>set route filter by AS path </li></ul></ul></ul>
  22. 22. Q & A
  23. 23. Backup slide
  24. 24. Workshop environment introduction – IOS Route-Reflector AS69000 AS100 AS103 AS68103 AS67103 AS66103 F1/0 FE1/0 FE1/1 FE1/0 FE1/0 eBGP eBGP iBGP R# : 2-byte available only R# : 4-byte available Login: guest Password: guest enable: admin Transit Interface IP 10.100.AS#.R#/16 10.69.AS#.R#/16 ISP Interface IP 10.AS#.R#R#.R#/24 ISP Loopback IP 10.AS#.0.R#/32 172.103.6.0/24 172.103.66.0/24 172.103.7.0/24 172.103.8.0/24 172.103.68.0/24 <- 172.103.67.0/24 172.103.69.0/24 -> F1/0 2.2/16 4.4/16 R2 R4 F1/1 F1/1 R1 R3 R2 R4 R5 R6 R7 R8 F1/0 F2/0 F2/0 F1/1 F2/1 F2/0 F2/1 F1/0 F1/1 F2/1 F2/0 F1/0 F1/1 F1/1 F1/0 F2/1 F2/0 F2/1 10.103/16 10.169/24
  25. 25. Workshop environment introduction – IOS Route-Reflector AS69000 AS100 AS104 AS68104 AS67104 AS66104 F1/0 FE1/0 FE1/1 FE1/0 FE1/0 eBGP eBGP iBGP R# : 2-byte available only R# : 4-byte available Login: guest Password: guest enable: admin Transit Interface IP 10.100.AS#.R#/16 10.69.AS#.R#/16 ISP Interface IP 10.AS#.R#R#.R#/24 ISP Loopback IP 10.AS#.0.R#/32 172.104.6.0/24 172.104.66.0/24 172.104.7.0/24 172.104.8.0/24 172.104.68.0/24 <- 172.104.67.0/24 172.104.69.0/24 -> F1/0 2.2/16 4.4/16 R2 R4 F1/1 F1/1 R1 R3 R2 R4 R5 R6 R7 R8 F1/0 F2/0 F2/0 F1/1 F2/1 F2/0 F2/1 F1/0 F1/1 F2/1 F2/0 F1/0 F1/1 F1/1 F1/0 F2/1 F2/0 F2/1 10.104/16 10.169/24

×