overlay networks jianping pan summer 2007 - uvic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf ·...

21
5/23/07 csc485b/586b/seng480b 1 Advanced Computer Networks Overlay Networks Jianping Pan Summer 2007

Upload: others

Post on 29-Jun-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 1

Advanced Computer Networks

Overlay Networks

Jianping PanSummer 2007

Page 2: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 2

Feedback on A1

● Project topics and ideas from students so far– vehicular area networks (Dandan)– directional antenna (Emad)– identifiable email (Justyn)– P2P with JXTA (Ryan)– multimedia over multi-link (Ming)– P2P file synchronization (Andy, Chun-Hung)– TCP congestion control (Hong-Yi)– Web media service (Leo)– sensor networks (Haoling)

Page 3: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 3

What do we “have” so far?

● Internet design and architecture– store-and-forward packet switching– end-to-end arguments

● smart end-hosts vs dumb networks– best-effort services

● Initially, the Internet was an “overlay”– over telephone networks

● By design, the Internet is a “peer-to-peer”– for all end-hosts

Page 4: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 4

Reality check

● A network of service-provider's networks– still mostly packet switching, end-to-end, best-effort

● But hierarchical structures almost everywhere– tiered service provider networks– hierarchies in naming, addressing, routing, service

provisioning, content delivery etc– the (only) way to deal with scalability

● Two sides of the story– a lot of details/redundancy invisible to externals

Page 5: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 5

Examples

● Internet routing– routing pathologies

● a considerable percentage of routes is affected– delayed convergence

● after a fault, it takes tens of minutes to converge– extended recovery

● some faults take hours to recover

● Dependable Internet?– not yet

Page 6: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 6

Adding ??? into the network?

● Changing the infrastructure is difficult– in a competitive ISP market– only end-to-end counts– and not all applications need perfect ???

● Alternatives– application overlays

● e.g., virtual private networks (VPN)● content delivery networks (CDN)

– end-to-end or edge-to-edge

Page 7: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 7

Resilient Overlay Networks

http://nms.lcs.mit.edu/ron− [ABKM01] D. Anderson, H. Balakrishnan, F.

Kaashoek, R. Morris, Resilient Overlay Networks, In Proc. of SOSP '01. [RON]

Design goals− fast failure detection and recovery

active probing, re-routing

− tighter integration with applications application-specific, e.g., video conferencing

− expressive policy routing e.g., “no commercial traffic on Internet2”

Page 8: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 8

Observations

● Network redundancy, invisible to applications

Utah Company

Cable Modem

Utah MITInternet 2

Page 9: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 9

Ideas

● Route around failures

Utah

Utah Company

MIT

Cable Modem

Page 10: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 10

Approaches

● Characterize “links” between nodes– active probing: delay, loss

● Disseminate link characteristics– “link-state” advertisement

● Choose the “best” route– only at the entry node– with possibly one intermediate node

● Forward the packets– RON encapsulation

Page 11: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 11

Design details

● Path selection– delay

● exponentially weighted moving average (EWMA)● delay

i+1= a * delay

i + (1-a) * last_rtt, a = 0.9

– loss: moving window average● window size: 100

– throughput● TCP-like, proportional to 1/(rtt * sqrt(p))

– application-specific● priority among delay, loss, throughput, etc

Page 12: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 12

Membership management

● Static membership– load other peer nodes from a configuration file

● Announcement-based, soft-state membership– know at least one peer node– announce its existence by broadcast– soft-state

● flood peer node list every 5 minutes● if a node is not heard for 60 minutes, the node has left

● Search?

Page 13: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 13

Performance evaluation

CA­T1CCIArosUtah

CMU

To vu.nlLulea.se

MITMA­CableCisco

Cornell

NYU

OR­DSL

To vu.nl lulea.se ucl.uk

To kaist.kr, .ve

Page 14: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 14

Reduced delay

Page 15: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 15

Reduced loss

0

0.2

0.4

0.6

0.8

1

0 0.2 0.4 0.6 0.8 1

"loss.jit"

30-min average loss rate with RON

30-m

in a

vera

ge lo

ss r

ate

on In

tern

et

13,000 samples

RON loss rate never more than 30%

Page 16: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 16

Improved throughput

0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

0.1 1 10

Frac

tion 

of s

ampl

es

Ratio of RON throughput to direct throughput (logscale)

2x increase from RON(109 samples)

1/2x decrease from RON(20 samples)

bw samples

Page 17: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 17

Overhead

32 Kbps21 Kbps 12 Kbps 5.9 Kbps 1.8 Kbps

50 nodes40 nodes30 nodes20 nodes10 nodes

● Link probing– size: 69 bytes; interval: 12 seconds

● Link advertisement– size: 60+20*(N-1); interval: 14 seconds

● Recovery time: 12~25 seconds (N=50)

Page 18: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 18

More discussion

● One hop?● Route stability

– hysteresis● Path selection

– tradeoff between delay, loss, etc● Routing policy● Scalability● NAT (network address translator)

Page 19: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 19

More overlay networks

● Planet-lab network testbed● Peer-to-peer applications

– Napster: with centralized directory server– Gnutella: distributed flooding search (ERS)– KaZaA: hierarchy introduced; supernode– BitTorrent: trackers; files in chunks; tit-for-tat– Skype– Structured P2P

● Distributed Hash Table (HDT): Chord, CAN, Pastry, etc

Page 20: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 20

Student presentation

● Hong-Yi Wang: Chord− [SMKKB01] Ion Stoica, Robert Morris, David

Karger, Frans Kaashoek, Hari Balakrishnan, "Chord: A Scalable Peer-to-peer Lookup Service for Internet Applications," Proceedings of the 2001 ACM SIGCOMM Conference, August 2001. [Chord]

Page 21: Overlay Networks Jianping Pan Summer 2007 - UVic.cawebhome.cs.uvic.ca/~pan/csc485k07/4-over.pdf · Overlay Networks Jianping Pan Summer 2007. ... Initially, the Internet was an “overlay”

5/23/07 csc485b/586b/seng480b 21

Next lectures

● More DHT– Required reading

● [RFHKS01] S. Ratnasamy, P. Francis, M. Handley, R. Karp, and S. Shenker, "A scalable content-addressable network. In SIGCOMM," Aug. 2001. [CAN]

● [RD01] Rowstron and P. Druschel, "Pastry: Scalable, distributed object location and routing for largescale peer-to-peer systems," Proc. 18th IFIP/ACM Int'l. Conf. Distributed Systems Platforms (Middleware), 2001. [Pastry]

● Gnutella, BitTorrent, Skype