1 / 24

Measuring the Internet: Featuring Traceroute

Measuring the Internet: Featuring Traceroute. Based on slides by Yihua He (PhD UCR 2007). Roadmap. Internet route: router and AS level Review of how traceroute works Possible ways to do IP->AS Hands-on experience with BGP tables What can traceroute tell us besides reachability?

tyler
Download Presentation

Measuring the Internet: Featuring Traceroute

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Measuring the Internet:Featuring Traceroute Based on slides by Yihua He (PhD UCR 2007)

  2. Roadmap • Internet route: router and AS level • Review of how traceroute works • Possible ways to do IP->AS • Hands-on experience with BGP tables • What can traceroute tell us besides reachability? • Internet routes are not symmetric

  3. AS B AS C AS A AS D Autonomous System (AS) Autonomous System Forwarding Path Example: Pinpoint forwarding loop & responsible AS Internet IP traffic destination source

  4. d: path=[BC] d: path=[C] AS C AS A AS B Forwarding path: data traffic Border Gateway Protocol (BGP) BGP path may differ from forwarding AS path • Routing loops and deflections • Route aggregation and filtering • BGP misconfiguration Signaling path: control traffic Origin AS d: path=[A B C] d: path=[B C] prefix d

  5. Measurements in the Internet • Difficulties in measuring • Measuring tools (traceroute) • Misc issues

  6. Measuring and Modeling Is not Easy • Constantly changing environment • How much data is enough • Recently: we need to measure more than 24h! • How frequently should I be measuring? • Are the measurements representative?

  7. Operation versus Measurements • Operators do not care about • Measurements • Academic Research • Why? • Takes away resources • Can create problems • Complicates their lives • Luckily, there are measurement centers • CAIDA, NLANR, routeviews, RIPE

  8. Types of Measurement Tools • Application level: • Install application agents at two measuring entries • More control over process • Network level: • Use the Internet control functionality (ICMP) • Trick the network to provide information

  9. Ping: the tool • Uses ICMP ECHO_REQUEST datagram to elicit an ICMP ECHO_RESPONSE from a host or gateway • Reports • Round trip time • Packets loss • Many available options: packet type, size etc • Limitation: >1sec measurement frequency • Read manual: man ping

  10. Traceroute: the tool • Traceroute measures • the path and the round trip time • Traceroute: ingenious (ab)use of the network layer by Van Jacobson • Main ideas: • send “bad” packets to receive ICMP: “packet died” • Recursive probing to identify the path • Send three packets at a time • Read manual: man traceroute

  11. Time exceeded TTL=1 TTL=2 The ingenuity of traceroute • Send a packet for every hop of the path • Set TTL = 1, packet expires, ICMP returns • Increase TTL by one, and repeat • At the destination, port number is wrong: return an ICMP packet, port not found destination source Send packets with TTL=1, 2, 3, … and record source of “time exceeded” message

  12. Traceroute: Some Limitations • In traceroute, you may be exploring multiple paths without knowing it • Delays for each part of the path correspond to different measurements: ie they don’t sum up

  13. Identifying The Router Topology • Several efforts rely on traceroute • Govindan et al INFOCOM 2000 • Cheswick and Burch Internet Mapping Project • The Dimes project • Main idea: • Do thousands of traceroutes • Collect all adjacent nodes • Generate a graph

  14. Router Graphs: A Complication • Routers have multiple IP addresses • One for each interface • How do we resolve this? • Only heuristics exist [Govindan] • Heuristic: Send packets to one interface and hope that they will respond with the other interface • Typically, router responds with IP of interface the packet came on

  15. Traceroute options • -a Turn on AS# lookups for each hop encountered. • -mmax_ttl Set the max time-to-live (max number of hops) • -p port Protocol specific. For UDP and TCP, sets the base port number used in probes (default is 33434). • -S Print a % of probes not answered for each hop.

  16. Traceroute gives IP-level forwarding path Traceroute output: (hop number, IP address, DNS name) 1 169.229.62.1 2 169.229.59.225 3 128.32.255.169 4 128.32.0.249 5 128.32.0.66 6 209.247.159.109 7 * 8 64.159.1.46 9 209.247.9.170 10 66.185.138.33 11 * 12 66.185.136.17 13 64.236.16.52 inr-daedalus-0.CS.Berkeley.EDU soda-cr-1-1-soda-br-6-2 vlan242.inr-202-doecev.Berkeley.EDU gigE6-0-0.inr-666-doecev.Berkeley.EDU qsv-juniper--ucb-gw.calren2.net POS1-0.hsipaccess1.SanJose1.Level3.net ? ? pos8-0.hsa2.Atlanta2.Level3.net pop2-atm-P0-2.atdn.net ? pop1-atl-P4-0.atdn.net www4.cnn.com Traceroute from Berkeley to www.cnn.com (64.236.16.52)

  17. AS25 AS25 AS25 AS25 AS11423 AS3356 AS3356 AS3356 AS3356 AS1668 AS1668 AS1668 AS5662 Berkeley Calren Level3 AOL CNN Map Traceroute Hops to ASes Traceroute output: (hop number, IP) 1 169.229.62.1 2 169.229.59.225 3 128.32.255.169 4 128.32.0.249 5 128.32.0.66 6 209.247.159.109 7 * 8 64.159.1.46 9 209.247.9.170 10 66.185.138.33 11 * 12 66.185.136.17 13 64.236.16.52 Need accurate IP-to-AS mappings (for network equipment).

  18. Possible Ways to Get IP-to-AS Mapping(1) • DNS names: • Inaccurate, and in a lot of times, Wrong! • Anyone, with $5/year, can register a www.whateveryoulike.com and point it to any IP address! • Some of the IPs do not have any DNS name. • Routing address registry (WHOIS) • That’s what you did in Lab1 • More accurate. However… • Voluntary public registry such as whois.radb.net • Prone to human input errors • Incomplete and maybe out-of-date • Mergers, acquisitions, delegation to customers

  19. Possible Ways to Get IP-to-AS Mapping (2) • Origin AS in BGP paths • Prefix=198.133.206.0/24, ASpath=[1239 2914 3130] • Public BGP routing tables such as RouteViews • Almost real time and avoiding most human input errors • It’s approximately 98% accurate, • Multiple Origin ASes (MOAS) • due to merge in a lot of cases • E.g., around 2002-2003, 148.231.0.0/16 had two ASes announced its address block: AS5677 and AS7132. That was PacBell and SBC • Now AS5677 does not exist anymore • No mapping • Some ASes intentionally do not want to advertise the route/IPs • Incomplete view

  20. Hands-on Experience with BGP Routing Tables • Telnet://route-views.routeviews.org • Show ip bgp summary • Whose BGP feeds do the router take? • Show ip bgp • Prefix • Origin AS • AS Path • Collected at http://archive.routeviews.org/ • Other BGP table collections are: • http://www.ripe.net/projects/ris/rawdata.html • http://www.cs.ucr.edu/bgp/

  21. What can traceroute tell us? • Where are those routers? • from DNS • City name • Airport name • From roundtrip time • Light travels approximately 2*10^8 meters/sec in fiber cables • When non-congested, the major delay is propagation delay • If you see a host with roundtrip time of 10ms, you know it must be within 600 miles radius. • Theoretically, with multiple vantage point, you can pinpoint where the routers are.

  22. Internet routes are not symmetric! • Try traceroute from both ends • And we’ll find most routes are not symmetric! • Why? • Hot potato routing --- try to use other guys’ network as much as possible • Policy routing --- when multihomed

  23. Traceroute from other places • http://www.traceroute.org • Remote traceroute servers • Hundreds of them • Limited probe rate • Not always available • http://www.caida.org/tools/measurement/skitter/ • Dedicated remote traceroute monitors • Almost unlimited probe rate • Only a couple of dozens of them

  24. Any questions?

More Related