20
Where are the anycasters? RIPE71 Plenary Grant Agreement n. 318627 Dario Rossi Professor [email protected] hCp://www. telecomparistech.fr/~ drossi / anycast Joint work with Danilo Cicalese, Diana JoumblaC, Jordan Auge and Timur Friedman My 1 st RIPE MeeQng RACI thanks!

Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

 Where  are  the  anycasters?    

RIPE71  Plenary  

Grant  Agreement    n.  318627  

Dario  Rossi  Professor  

dario.rossi@telecom-­‐paristech.fr  hCp://www.  telecom-­‐paristech.fr/~drossi/anycast  

 Joint  work  with  Danilo  Cicalese,  Diana  JoumblaC,  Jordan  Auge  and  Timur  Friedman  

My  1st  RIPE  MeeQng  

RACI  thanks!  

Page 2: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

A  seminal  work  [4]  at  NANOG’59  invesQgates  who  are  the  IP  anycasters.  Our  focus  is  instead  on  where  they  are    

 

12  Demo  shortlink:  goo.gl/Ff8gdQ  

Talk  Teaser  

Note:  everything  you  see  in  this  talk  is  available  as  open  source  at    hCp://www.telecom-­‐paristech.fr/~drossi/anycast    

Page 3: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

•  Background  &  related  work    •  What  we  have  (just  finished!)  

ü Latency-­‐based  anycast  geolocaQon  technique  [1]  ü IPv4  anycast  censuses  [2]  ü Demo,  source  code,  ground  truth  and  more  [3]      

•  What  we  miss  (just  started!)  –  Study  infrastructure  evoluQon  &  usage    – ApplicaQon  to  BGP  hijack  detecQon  

•  At  last,    New  Yarely  Conclusions  And  Summary  of  Talk    

 

Talk  outline  

3  

[1]      D.  Cicalese  et  al.  A  Fishul  of  Pings:  Accurate  and  Lightweight  Anycast  EnumeraQon  and  GeolocaQon,                    IEEE  INFOCOM,  Apr  2015.    [2]      D.  Cicalese  et  al.  Characterizing  IPv4  Anycast  AdopQon  and  Deployment,  ACM  CoNEXT,  Dec  2015.  [3]      hCp://www.telecom-­‐paristech.fr/~drossi/anycast.  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Quick  overview,  complementary  technical  talk  at  RIPE  MAT  WG  if  

interested!  

NotaQon:      RIPE  Atlas  credits      cost  per  acQon  

Foreword:    

Page 4: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

ApplicaQon-­‐layer  anycast  

§  How  it  works  •  Relies  on  IP  unicast  •  Server  selecQon  via  DNS  

redirecQon,  URL  rewriQng  

§  Pros  •  Ability  to  specify  selecQon  criteria  •  Fine-­‐grained  control  over  server  

load  •  Maintains  connecQon  affinity  •  Fast  failover  

§  Cons    •  Ad  hoc,  per  service  configuraQon  •  Overhead  to  collect  selecQon  

metrics  •  E.g.  List  of  servers  up,  latency,  

load  

DNS  

C1  

X1  

X2  X3  

x.com?  

X1  IP  

C2   C3  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Page 5: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

IP-­‐layer  anycast  

§  How  it  works  •  Shared  IP  address  for  replicate  

servers  •  BGP  Prefix  adverQsed  from  

mulQple  points  of  origin  

§  Pros  •  NaQvely  supported  by  IP  •  Transparent  to  upper  layers    •  Visibility  of  servers  

(Global  vs    Local)    

§  Cons  •  Lack  of  fine-­‐grained  control    •  DesQnaQon  determined  by      

IP  rouQng  metrics  •  Prone  to  prefix  hijacking  •  No  guarantees  of  server  

affinity  (e.g.,  connecQon-­‐oriented  services)  C1  

X  

XX  

C2   C3  

BGP  announces  

IP  forwarding  

Our  focus  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Page 6: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

Related  work  

Main  differen=ators  •  Part  I:  first  lightweight  and  protocol-­‐agnosQc  technique  able  to  detect,  enumerate  

and  geolocate  anycast  instances  •  Part  II:  first  large-­‐scale  (several  IPv4  censuses)  geolocaQon  of  anycast  instances  

6  

Part  I   Part  II  

all ���IPv4

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Page 7: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

                                     PlanetLab  only  –  Heavyweight:  apply  

technique  of  Part-­‐I  to  over  5,000,000  targets,    per  census  

–  EsQmate  of  RIPE  Atlas  credits,    3  Billions  per  census  (same  footprint  as  PlanetLab  ~300)  

–  SoluQon:  combine  PlanetLab  and  RIPE  Atlas  (more  next!)  

 

Part  II  

Part  I  

7  

Workflow  Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Part  II  Part  I                                    PlanetLab  and  RIPE  Atlas  –  Lightweight:  O(1)  pings  per  

target  per  vantage  point    –  DNS:  use  past  RIPE  Atlas  

measurements  (0  credits!)  –  CDN:  issue  new  ICMP  

measurements      500  credits  per  target      (good  enough  coverage)  

           180K  credits  (all  nodes)      –  PlanetLab:  use  different  

protocols  (ICMP,  DNS/UDP,  DNS/TCP,    HTTP/TCP)    

 

Page 8: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

•  Problem  statement:  where  are  the  anycast  instances?  –  E.g.,  Google  8.8.8.8  or  CloudFlare,  or  EdgeCast  or  root  servers,  etc.  

   

 

Mountain  View,  CA  (IP2LocaQon)    New  York,  NY  (Geobytes)  United  States  (Maxmind)  

?????  

1ms  ≈  100Km  

2ms  from  EU  to  US  ?????  

Speed  of  light  viola=on

 !!  

Tools  using  distributed    measurement  aren’t  beUer  !  

 Time  varying  answers    Unknown  accuracy    

Commercial  databases   Distributed  measurement  

8  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Anycast  geolocaQon  

Page 9: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

2ms  from  EU  to  US  ?????  

Speed  of  light  viola=on

 !!  

Distributed  measurement  

•  Problem  statement:  where  are  the  anycast  instances?  –  E.g.,  Google  8.8.8.8  or  CloudFlare,  or  EdgeCast  or  root  servers,  etc.  

•  SoluQon  –  Leverage  inconsistency    

of  latency  measurement  –  This  was  used  in  NANOG’59  

to  detect  who  are  the  anycasters  –  We  raise  this  to  the  next  level    

and  geolocate  where  they  are  

•  ProperQes  –  Lightweight:  few  pings  –  Protocol  agnos=c:  ICMP  probes  –  Accurate  against    ground    truth  –  Fast:  greedy,  but  as  good  as    

costly  opQmum  soluQon    

   

 

9  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Anycast  geolocaQon  

Tools  using  distributed    measurement  aren’t  beUer  !  

But  they  could!  

Hey,  that  must  be  anycast!  

Page 10: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

iGreedy  overview  

Measure  Latency  

Planetlab/RIPE  Atlas    

Enumerate  Solve  MIS  

 

Brute  force  (OpQmum)  Greedy  (5-­‐approx)

Geolocate  ClassificaQon  

 

Maximum  likelihood  pick  the  largest  city  

Detect  Speed  of  light  violaQons  

 

Scalability  

Infrastructure    Lightweight  

Iterate    Feedback  

Filter  latency  noise  

Measure   Detect   Enumerate   Geolocate   Iterate  10  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Page 11: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

   

   

   

   

iGreedy  performance  •  At  a  glance    

       Accurate  enumeraQon        over  75%  recall          Precise  geolocaQon        over  75%  true  posiQves          Protocol  agnosQc        DSN  and  CDN,  etc.            Lightweight                  100x  less  probes  than  previous  work          Fast          O(100ms)  greedy  vs  O(1000sec)  for  brute  force          Ready      Open  source  code  [3]  to  measure,  analyze  and  map!  

11  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Page 12: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

IPv4  anycast  censuses  

•  Significant  re-­‐engineering,  typical  workflow:    

12  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

•  O(107)  targets  x  O(102)  acQve  probes  •  O(103)  targets/sensor/second  ,  1  census  =  few  hours  •  O(107)  runs  of  iGreedy  later….  •  O(103)  targets  are  anycast  –  proverbial  needle  in  the  IPv4  haystack    

PlanetLab  only…  or    3Billion  credits!  

Page 13: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

13  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Censuses  at  a  glance  

•  Combine  PlanetLab  and  RIPE  Atlas  –  Ameliorate  coverage  

–  Validate  small  deployments    

1.8M  credits  for  the  top-­‐100  

PlanetLab  censuses  RIPE  Atlas  

PlanetLab  

150K  credits  for  2-­‐instances  deployments      

More  on  this    at  MAT  WG  

Page 14: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

   

       

       

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Top-­‐50  IPv4  anycast  deployments  

14  

Big  fishes!    Edgecast    CloudFlare  

Google  Yahoo  Microsoy  OVH    Amazon    

ATT  Sprint  Level3      Linkedin  Facebook  Verisign  Prolexic  

 Silver    needle  in    the  IPv4    haystack!    

Heterogeneous    IP  Footprint  

Important  ASes  

Popular  Web  

content  

Service  diversity  

Page 15: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

       

   

15  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

IPv4  anycast  soyware  census  

•  Nmap  census  –  Stealthy  scan,  all  ports,  1  IP  per  each  anycast    /24  –  Not  only  DNS!  Lots  of  CDN/Web  (++),    but  also  e.g.,  Gmail(??)  or  >10,000  open  ports  on  OVH  (!!)    

   !!  

Page 16: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

   

(1/2)  Infrastructure  evoluQon  &  usage  

•  Time  evoluQon  of  single  deployment  –  Orthogonal  to  spaQal  dimension  of  census  –  Example  from  historic  RIPE  Atlas  data  

   

16  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

•  Anycast  usage  across  deployments  –  Orthogonal  to  acQve  measurement  –  Use  passive  measurement  at  some  ISP  

point  of  presence    

   

Page 17: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

       

•  IP  anycast    •  SyntacQcally  equivalent  to  a  

BGP  hijack  in  the  BGP  lingo  •  Only  difference:  router  authorized  

 to  adverQse  the  prefix  or  not  

•  iGreedy  for  BGP  hijack  detecQon  

17  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

(2/2)  BGP  hijack  detecQon  Credits:  renesys  

Reac=ve  scan  on  BGP  announces  •   Analyse  BGP  feed  and  issue    iGreedy  on  suspicion  Problem  •   BGP  Hijacks  are  of  short  duraQon  •   Control  plane  informaQon  may  arrive  late  at  some  monitor  

Proac=ve  Internet-­‐wide  scan  • Scan  all  /24  prefixes  every  minute  Problem  • Over  100x  faster  than  current  speed    • More  challenge,  more  fun!      

Page 18: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

   

   

   

Conclusions  

•  iGreedy  novel  technique  to  invesQgate  and  especially  geolocate  anycast  deployment  ü PracQcal          lightweight,  fast  and  protocol  agnosQc  ü Ready                  open-­‐source  soyware  to  issue,  analyze  and  display  RIPE  Atlas  measurement  (using  your  credits!)  

ü Useful                  Web  interface  to  (significant  subset  of)    census  results  already  available  

 Interested  ?      Drop  an  email  [email protected]  !  (but  cc  [email protected]  to  get  a  Bmely  reply)  

18  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Page 19: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

References  This  talk:  [1]    D.  Cicalese  ,  D.  JoumblaC,  D.  Rossi,  J,  Auge,  M.O  Buob,  T.  Friedman.  

A  Fisaul  of  Pings:  Accurate  and  Lightweight  Anycast  Enumera=on    and  Geoloca=on  ,    IEEE  INFOCOM,  2015    [2]    D.  Cicalese  ,  J.  Auge,  D.  JoumblaC,  T.  Friedman,  D.  Rossi,  Characterizing  IPv4  Anycast  Adop=on  and  Deployment  ,  

ACM  CoNEXT,  Dec  2015  [3]    hCp://www.telecom-­‐paristech.fr/~drossi/anycast  Related:  

19  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary  

Page 20: Wherearethe anycasters?...A!seminal!work![4]!atNANOG’59!invesQgates! who are!the!IP! anycasters.!Our!focus!is!instead!on!where they!are!! Demo shortlink:goo.gl/Ff8gdQ 12 Talk!Teaser!

??  ||  //  

20  

Outline   Background   Part  I:  iGreedy   Part  II:  Census   Ongoing  work   Summary