+ All Categories
Home > Documents > Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 ·...

Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 ·...

Date post: 06-Feb-2018
Category:
Upload: hanhan
View: 223 times
Download: 4 times
Share this document with a friend
25
Customer BGP Community Usage Mar4n J. Levy Hurricane Electric GPF 8.0 San Diego 10 th April 2013
Transcript
Page 1: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Customer  BGP  Community  Usage  

Mar4n  J.  Levy  Hurricane  Electric  

 GPF  8.0  San  Diego  10th  April  2013  

Page 2: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Introduc4on  

•  We  (nearly)  all  provide  community  control  to  customers  

•  Examples  of  usage  from  the  real  world:  

–  To  show  how  BGP  global  rou4ng  operates  today  –  To  show  how  BGP  global  rou4ng  could  improve  

•  Explaining  BGP  communi4es  to  customers  

–  To  help  networks  operate  beTer  

•  Where  does  this  affect  peering  and  the  peering  world?  

10  April  2013   2  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 3: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Notes  for  this  presenta4on  

10  April  2013   GPF  8.0  -­‐  Customer  BGP  Community  Usage   3  

Put  yourself  in  your  end-­‐customers  

network  opera4ons  mindset  

Page 4: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

A  REAL  WORLD  EXAMPLE  

10  April  2013   4  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 5: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Our  sample  (real-­‐world)  ISP/telecom  example  

•  IP  transits  added  over  4me;  few  thrown  away  •  Mixed  bandwidth  levels  •  Mainly  4ed  to  undersea  cables  

•  This  is  all  based  on  a  real-­‐world  ISP/telecom  –  All  ASNs  are  somewhat  anonymous  

10  April  2013   GPF  8.0  -­‐  Customer  BGP  Community  Usage   5  

ISP  

“B”  

“I”  

“T”  

“G”  

“L”  

“N”  

“R”  

Page 6: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Situa4on  today  

•  Nothing  is  wrong  today  –  ISP  interconnects  via  many  upstream  networks  –  Full  connec4vity  is  provided  to  all  of  ISPs  customers  

•  But,  things  could  be  beTer  –  Cleaner  rou4ng  makes  for  easier  opera4ons  –  Cleaner  rou4ng  makes  for  a  beTer  customer  experience  

•  One  step  at  a  4me  –  Rou4ng  improvements  will  require  bandwidth  balancing  

10  April  2013   6  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 7: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Basic  rules  –  the  ones  that  work  

•  Methodology’s  that  are  taught  today:  

–  BGP  prepends  for  traffic  engineering  –  Route  de-­‐aggrega4on  for  traffic  engineering  –  Announcing  a  subset  of  routes  to  an  upstream  neighbors  for  traffic  engineering  

•  Methodology’s  that  don’t  actually  work:  –  BGP  prepends  for  traffic  engineering  –  Route  de-­‐aggrega4on  for  traffic  engineering  –  Announcing  a  subset  of  routes  to  an  upstream  neighbors  for  traffic  engineering  

•  The  new  world  (not  so  new  world)  order:  –  Heavy  use  of  BGP  community  signaling  –  Careful  control  of  depth  of  route  announcements  –  Announce  a  full  set  of  your  routes  to  ALL  upstream  neighbors  

•  Is  this  hard  to  learn?  –  No!  

10  April  2013   7  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 8: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

THE  MANY  UPSTREAM  PROVIDERS  PROBLEM  

10  April  2013   8  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 9: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Visualizing  rou4ng  –  the  ISP’s  upstream  #routes  

•  Presently  a  different  list  of  routes  is  sent  to  each  upstream  –  No  single  upstream  gets  all  ~1,700  routes  –  Different  aggregated  routes  to  different  upstreams  –  Very  few  routes  (read:  customers)  are  actually  mul4homed  –  Very  few  routes  (read:  customers)  get  efficient  rou4ng  

•  See  next  page  ASN Count Name AS2*** 192 “N” AS3*** 1,080 “X” AS3*** 440 “L” AS3*** 265 “G” (now “L”) AS6*** 1 “T” AS6*** 484 “I” AS9*** 8 “B” AS1**** 42 “E” AS1**** 28 “R”

10  April  2013   9  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 10: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Visualizing  rou4ng  –  The  ISP  via  all  upstreams  This  is  m

essy!  

“ISP”  

“L”  

“I”  

“E”  

“X”  “R”  

“N”  

“B”  

“T”  

“G”  (now  “L”)  

10  April  2013   10  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 11: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Reading  the  visualized  rou4ng  graphs  

•  Blue  lines  show  routes  being  propagated  –  This  is  good  

•  Red  lines  show  routes  being  propagated  backwards  –  This  is  bad;  it  shows  a  route  that  could  be  more  direct  

•  The  many  lines  are  caused  by  de-­‐aggrega4on  of  routes  and  varied  announcements  (and  prepends)  

•  A  cleaner  diagram  is  beTer  (with  networks  connected  closer)  

•  Colored  network  ovals  are  considered  major  networks  

•  This  specific  ISP  doesn’t  have  an  unusual  diagram  

10  April  2013   11  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Diagrams  from

 hTp://bgp.he.net/  

Page 12: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Visualizing  rou4ng  –  The  rou4ng  via  upstreams  

10  April  2013   12  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

“I”   “X”   “R”  

“E”   “N”   “L”  

“B”   “T”  

“G”  (now  “L”)  

Page 13: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

HOW  TO  IMPROVE  GLOBAL  ROUTING  USING  COMMUNITIES  

10  April  2013   13  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 14: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Sending  all  routes  to  all  upstreams  

•  In  theory;  all  routes  would  be  sent  to  all  upstreams  –  This  could  cause  excessive  bandwidth  over  limited  pipes  

•  Controlling  the  transit  level  of  a  route  could  help  –  A  route  not  re-­‐adver4zed  would  provide  beTer  rou4ng  

•  BGP  communi4es  help  with  this  process  –  A  community  can  be  set  on  a  route  to  control  depth  

•  This  is  a  well  documented  process;  but  seldom  used  –  It’s  NEVER  in  the  interest  of  the  transit  provider  to  explain  this  –  It  works  very  well  –  It  poten4ally  reduces  the  upstream  Renesys  ra4ngs  

10  April  2013   14  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 15: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Visualizing  perfect  (or  near  perfect)  rou4ng  

Perfect  “Tier  1”  rou4

ng  

PreT

y  good

 rou4

ng  (w

ith  m

any  pe

ers;  one

 transit)  

Classic

 backbon

e  with

 two  transits  (well  balanced)  

10  April  2013   15  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Random  chosen  IP  backbone  

Page 16: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

BGP  COMMUNITIES  PRACTICAL  EXAMPLES  

10  April  2013   16  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 17: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

BGP  communi4es  –  and  how  they  help  

•  BGP  backbones  publish  their  informa4on  (One  Step  has  collected  many  of  them)  –  hTp://www.onesc.net/communi4es/  –  etc  …  

•  Specific  IP  backbone  informa4on  can  be  found  via  specific  URLs  –  Telecom  Italia  AS6962  @  hTp://etabeta.noc.seabone.net/communi4es.html  –  Level3  AS3356  @  hTp://www.onesc.net/communi4es/as3356/  –  Tinet  AS3257  @  hTp://www.as3257.net/communi4es.txt  –  NTT/Verio  AS2914  @  hTp://www.us.nT.net/support/policy/rou4ng.cfm  –  Flag/Reliance  AS15412  @  hTps://apps.db.ripe.net/whois/lookup/ripe/aut-­‐num/AS15412.html  –  Verizon/UUnet  AS701  @  hTp://www.onesc.net/communi4es/as701/  –  etc  …  

•  Sesng  a  community  on  a  route  is  very  powerful  –  Can  be  used  to  control  re-­‐announcement  –  Can  be  used  to  control  geography  –  Can  be  used  to  control  style  of  route  (peering/transit)  

•  Communi4es  can  be  set  on  a  per-­‐route  basis  –  Hence  an  upstream  could  receive  all  routes;  but  only  re-­‐announce  some  routes  

10  April  2013   17  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 18: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

BGP  communi4es  –  an  example  

•  Fixing  Level3  rou4ng  –  Announce  all  routes;  set  some  routes  to  peering  

•  The  goal  –  Bring  all  Level3  connec4vity  closer  –  Don’t  overrun  bandwidth  on  Level3  connec4on  –  Don’t  produce  a  black  holed  route  

•  Customer  experience?  –  Vastly  improved!  

•  Rela4onship  with  upstream?  (Level3)  –  Unchanged;  but  they  now  know  you’re  smarter  at  opera4ng  your  rou4ng!  

•  Complexity  level?  –  Low;  once  understood  

10  April  2013   18  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Random  chosen  IP  backbone  

Page 19: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

BGP  communi4es  –  an  example  

•  Example  –  Three  routes  are  setup  as  peering  –  Two  routes  as  peering  +  AS3320  DTAG  –  Remainder  -­‐  full  transit  (the  default)  

•  access-­‐list  methodology  –  Could  be  as-­‐path  filter  

•  Communi4es  can  be  expanded  

! ip classless ip bgp-community new-format ! access-list 100 permit ip 10.7.0.0/12 access-list 100 permit ip 10.9.0.0/13 access-list 100 permit ip 10.22.0.0/17 ! access-list 110 permit ip 172.16.0.0/19 access-list 110 permit ip 172.17.0.0/19 ! route-map isp-out-as3356 permit 10 match ip-address 100 set community 65000:0 route-map isp-out-as3356 permit 20 match ip-address 110 set community 65000:0 64960:3320 ! router bgp **** network ... ! Level3 neighbor x.x.x.x remote-as 3356 neighbor x.x.x.x send-community neighbor x.x.x.x route-map isp-out-as3356 out !

10  April  2013   19  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Pseudo  code  example    -­‐  don’t  type  into  a  router  

Random  chosen  IP  backbone  

Page 20: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

BGP  communi4es  in  use  –  a  visual  example  

Full  rou4

ng  –  no  commun

i4es  used  

Par4al  ro

u4ng  –  se

sng  65000:0  64960:3320  

Level3  

DTAG  

Peering  on

ly  ro

u4ng  –  se

sng  65000:0  Level3  

10  April  2013   20  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Random  chosen  IP  backbone  

Page 21: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

BGP  communi4es  –  The  ISP  cleaned  up  

10  April  2013   21  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

“ISP”  

“L”  

“I”  

“E”  “X”  

“R”  

“N”  

This  is  very  clean!  

“B”   “T”  

“G”  (now  “L”)  

Page 22: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

The  affect  on  the  peering  world  •  Do  communi4es  really  help  the  customers?  

–  Or  do  we  (as  large  backbones)  know  beTer?  

•  Does  community  control  invalidate  peering  agreements?  –  Do  peering  requirements  insist  on  consistent  announcements?  

•  Does  community  control  ever  get  used  by  customers?  

10  April  2013   GPF  8.0  -­‐  Customer  BGP  Community  Usage   22  

Could  produce  inconsistent  announcements  

Random  chosen  IP  backbone  

Page 23: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

SUMMARY  

10  April  2013   23  GPF  8.0  -­‐  Customer  BGP  Community  Usage  

Page 24: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

Summary  

•  BGP  communi4es  have  been  around  for  a  long  4me  –  Well  understood  –  Provide  many  controls;  these  examples  show  depth  control  –  Rarely  used  by  customers  

•  BGP  communi4es  can  be  dangerous  –  Could  restrict  a  routes  global  reachability  –  Harder  to  debug  (using  the  upstreams  looking  glass  some4mes  works)  

•  Could  lower  your  #routes  announced  (reduce  deaggrega4on?)  –  Reduce  router  configura4on  complexity  

•  Customers  using  communi4es  could  reduce  Renesys  ranking  

10  April  2013   GPF  8.0  -­‐  Customer  BGP  Community  Usage   24  

Page 25: Customer)BGP)Community)Usage) - Peering Forum · PDF file10.04.2013 · Notes)for)this)presentaon) 10April2013 GPF)8.0)W)Customer)BGP)Community)Usage) 3 Putyourself)in)your)

10  April  2013   GPF  8.0  -­‐  Customer  BGP  Community  Usage   25  

Contact:    

 Mar4n  J.  Levy    Director,  IPv6  Strategy    Hurricane  Electric    760  Mission  Court    Fremont,  CA  94539,  USA    hTp://he.net/          mar4n  at  he  dot  net          +1  (510)  580  4167  

?  


Recommended