1 / 26

CS 5565 Network Architecture and Protocols

CS 5565 Network Architecture and Protocols. Godmar Back. Lecture 3. Announcements. Assignment: Do Wireshark Lab 1 Don’t need to hand it in. Create CS5565 Forum Use this to find a project partner All 4 projects will be done in groups of up to 2. Summary.

rmonica
Download Presentation

CS 5565 Network Architecture and Protocols

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. CS 5565Network Architecture and Protocols Godmar Back Lecture 3

  2. Announcements • Assignment: • Do Wireshark Lab 1 • Don’t need to hand it in. • Create CS5565 Forum • Use this to find a project partner • All 4 projects will be done in groups of up to 2. CS 5565 Spring 2009

  3. Summary • Terminology: hosts (end systems), communication links, routers, transmission rates, packets, internet vs. intranet vs. the Internet • Protocols: protocols define format, order of messages sent and received among network entities, and actions taken on msg transmission, receipt • View from network edge: • Client/server, peer2peer, other models • Service view • Communication infrastructure provide connection-oriented + connectionless service • View from network core: • Circuit-switching vs packet-switching • Datagram network vs. virtual-circuit networks CS 5565 Spring 2009

  4. packets queue in router buffers packet arrival rate to link exceeds output link capacity packets queue, wait for turn packet being transmitted (delay) A B packets queueing (delay) free (available) buffers: arriving packets dropped (loss) if no free buffers How do loss and delay occur? CS 5565 Spring 2009

  5. 1. Nodal processing delay: check bit errors determine output link transmission A propagation B nodal processing queueing Four sources of packet delay • 2. Queuing delay • time waiting at output link for transmission • depends on congestion level of router CS 5565 Spring 2009

  6. Queuing Delay • Show Applet here • http://media.pearsoncmg.com/aw/aw_kurose_network_2/applets/queuing/queuing.html • Queuing delay depends on • traffic intensity • nature of packet arrival process (bursts, periodic, periodic bursts, random intervals) CS 5565 Spring 2009

  7. R=link bandwidth (bps) L=packet length (bits) a=average packet arrival rate Queueing Delay traffic intensity = La/R • La/R ~ 0: average queueing delay small • La/R  1: delays become large • La/R > 1: more “work” arriving than can be serviced, average delay infinite! CS 5565 Spring 2009

  8. Queuing Analysis • Source: • Stallings • Ts : mean service time • Coefficient of variation determines increase in delay CS 5565 Spring 2009

  9. Queuing Analysis (II) • Depending on estimated coefficient of variance, pick appropriate server model • M/M/1: both arrival rate & service time is “M”, Poisson process vs. negative exponentially distributed services • In general: X/Y/n, where n number of servers & X, Y one of • G: general independent • M: negative exponential distribution • D: deterministic (fixed length of service) • Q.: what’s the expected queue length for a D/D/1 queue if arrival rate < service rate? CS 5565 Spring 2009

  10. 3. Transmission delay: R=link bandwidth (bps) L=packet length (bits) time to send bits into link = L/R 4. Propagation delay: d = length of physical link s = propagation speed in medium (~2x108 m/sec) propagation delay = d/s transmission A propagation B nodal processing queueing Delay in packet-switched networks Note: s and R are very different quantities! CS 5565 Spring 2009

  11. Transmission vs. Propagation Delay • Show Applet here • http://media.pearsoncmg.com/aw/aw_kurose_network_2/applets/transmission/delay.html • Transmission delay depends on speed of link (10Mbps, 1000Mbps, …) • Propagation delay depends on distance (and speed of light in medium) CS 5565 Spring 2009

  12. Nodal delay • dproc = processing delay • typically a few microsecs or less • dqueue = queuing delay • depends on congestion • dtrans = transmission delay • = L/R, significant for low-speed links • dprop = propagation delay • a few microsecs to hundreds of msecs CS 5565 Spring 2009

  13. Takes L/R seconds to transmit (push out) packet of L bits on to link or R bps Entire packet must arrive at router before it can be transmitted on next link: store and forward Example: L = 7.5 Mbits R = 1.5 Mbps delay = ? (assume no propagation/processing/queuing delay) Packet-switching: store-and-forward L R R R 15 seconds CS 5565 Spring 2009

  14. End-to-end vs. nodal delay • Question: in store-and-forward model, does end-to-end delay for a message of length L depend on the number/size of packets the message is split into? • Let’s look at: • http://media.pearsoncmg.com/aw/aw_kurose_network_2/applets/message/messagesegmentation.html CS 5565 Spring 2009

  15. End-to-end vs. nodal delay • Question: in store-and-forward model, end-to-end delay for a message of length L depends on the number/size of packets the message is split into: • Transmission times of packets can be overlayed if multiple packets are part of a message • “Store-and-forward” model applies to packet, not message • Consequence: packetization reduces transmission delay • But you pay a price for header overhead CS 5565 Spring 2009

  16. Circuit Switching Dedicated link bandwidth Dedicated switch capacity Low link utilization Low overall utilization Bounded delay variance Packet Switching Better Link utilization Better overall utilization Need for congestion control Need to identify to which “call” a packet belongs Smaller average delay than TDM High variance in delay Circuit vs. Packet Switching (2) CS 5565 Spring 2009

  17. Latency vs Bandwidth • Latency (Delay)lags Bandwidth[Patterson 2004] • Similar patternin many areas CS 5565 Spring 2009

  18. Bandwidth b Delay d Bandwidth Delay Product • Aka “size of pipe” • Important inprotocol design CS 5565 Spring 2009

  19. 3 probes 3 probes 3 probes traceroute Provides delay measurement from source to router along end-end Internet path towards destination • Problem: • Don’t know which route is taken • How: • Send probes to destination • Tell probes to die off after i hops, i = 1..30 • Ask router to send echo packets if packets dies • Measure RTT CS 5565 Spring 2009

  20. Example Internet delays and routes traceroute: from host in Silicon Valley (keeda.stanford.edu) to host in Frankfurt, Germany (www.titanic-magazin.de) > traceroute www.titanic-magazin.de traceroute to www.titanic-magazin.de (62.75.228.90), 30 hops max, 38 byte packets 1 Gates-rtr.Stanford.EDU (171.64.72.1) 0.523 ms 0.339 ms 0.304 ms 2 bbr2-rtr.Stanford.EDU (171.64.1.161) 0.401 ms 0.346 ms 0.334 ms 3 border2-rtr.Stanford.EDU (171.64.1.148) 4.288 ms 1.070 ms 1.458 ms 4 g1.ba21.b003123-1.sfo01.atlas.cogentco.com (66.250.7.137) 5.231 ms 7.975 ms 9.097 ms 5 g1-1.core02.sfo01.atlas.cogentco.com (66.28.6.13) 11.364 ms 16.192 ms 16.961 ms 6 p14-0.core01.dca01.atlas.cogentco.com (66.28.4.210) 85.497 ms 84.084 ms 80.291 ms 7 p2-0.core01.iad01.atlas.cogentco.com (154.54.2.202) 89.268 ms 88.548 ms 90.046 ms 8 lambdanet.iad01.atlas.cogentco.com (154.54.11.162) 156.812 ms 200.935 ms 157.819 ms 9 LON-2-pos210.uk.lambdanet.net (81.209.156.29) 159.647 ms 159.709 ms 166.504 ms 10 DUS-2-pos700-0.de.lambdanet.net (82.197.136.18) 176.365 ms 163.668 ms 165.177 ms 11 DUS1-5029.de.lambdanet.net (217.71.104.30) 171.229 ms 173.782 ms 171.486 ms 12 titanic.luka.de (62.75.228.90) 172.654 ms 183.307 ms 173.239 ms CS 5565 Spring 2009

  21. “Real” Internet delays and routes traceroute: from host in Silicon Valley (keeda.stanford.edu) to host in Frankfurt, Germany (www.titanic-magazin.de) > traceroute www.titanic-magazin.de traceroute to www.titanic-magazin.de (62.75.228.90), 30 hops max, 38 byte packets 1 Gates-rtr.Stanford.EDU (171.64.72.1) 0.523 ms 0.339 ms 0.304 ms 2 bbr2-rtr.Stanford.EDU (171.64.1.161) 0.401 ms 0.346 ms 0.334 ms 3 border2-rtr.Stanford.EDU (171.64.1.148) 4.288 ms 1.070 ms 1.458 ms 4 g1.ba21.b003123-1.sfo01.atlas.cogentco.com (66.250.7.137) 5.231 ms 7.975 ms 9.097 ms 5 g1-1.core02.sfo01.atlas.cogentco.com (66.28.6.13) 11.364 ms 16.192 ms 16.961 ms 6 p14-0.core01.dca01.atlas.cogentco.com (66.28.4.210) 85.497 ms 84.084 ms 80.291 ms 7 p2-0.core01.iad01.atlas.cogentco.com (154.54.2.202) 89.268 ms 88.548 ms 90.046 ms 8 lambdanet.iad01.atlas.cogentco.com (154.54.11.162) 156.812 ms 200.935 ms 157.819 ms 9 LON-2-pos210.uk.lambdanet.net (81.209.156.29) 159.647 ms 159.709 ms 166.504 ms 10 DUS-2-pos700-0.de.lambdanet.net (82.197.136.18) 176.365 ms 163.668 ms 165.177 ms 11 DUS1-5029.de.lambdanet.net (217.71.104.30) 171.229 ms 173.782 ms 171.486 ms 12 titanic.luka.de (62.75.228.90) 172.654 ms 183.307 ms 173.239 ms CS 5565 Spring 2009

  22. Tier 3 ISP local ISP local ISP local ISP local ISP local ISP local ISP local ISP local ISP NAP Tier-2 ISP Tier-2 ISP Tier 1 ISP Tier 1 ISP Tier 1 ISP Tier-2 ISP Tier-2 ISP Tier-2 ISP Routing across Tiers CS 5565 Spring 2009

  23. Tiers of ISP (cont’d) • Tier 1: usually carriers, own networks/fiber, interconnect with Tier 1 ISPs on reciprocal basis (8 interconnection regions in US), examples: UUnet, Level3, Sprint, CW … • Tier 2: national/regional, connects to Tier 1 (“buys transit”), but peer among each other (AOL, Adelphia, Comcast) - driven by P2P traffic • Tier 3: regional/local providers • Definitions fluent, some are only Tier 1 in some regions • Terms: • POP (point of presence) • NAP (network access point) - public interchanges (Equinix) • Private peering points/links CS 5565 Spring 2009

  24. Before 2000 Crash Source: [Norton 2004] Now LSNSC (large scale network savvy content providers) Changing Landscape of Peering CS 5565 Spring 2009

  25. Aside: Estimating Bottleneck Bandwidth along a Path • Network core doesn’t provide this information • “packet-pair” method (van Jacobson) • Send data in back-to-back packets • Difference between acks is related to delay experienced along slowest link • Many other methods developed, big research area • see for example [M Goutelle 2003] CS 5565 Spring 2009

  26. Summary • Transmission & Propagation Delay • End-to-end delay in packet-switched networks • Traceroute + network diagnostics • Structure of Internet • Bandwidth-delay product CS 5565 Spring 2009

More Related