Web Caches, CDNS, and P2Ps
Web Caches, CDNS, and P2Ps
Applications (part 3)
Assumptions
Consequences
Applications (part 3)
Applications (part 3)
Possible solution
Install cache
suppose hit rate is .4
Consequence
40% requests will be satisfied almost
immediately
Consequences
utilization on LAN = 15%
Applications (part 3)
Applications (part 3)
CDN example
Origin server
Content replication
distributes HTML
www.foo.com
replaces:
http://www.foo.com/sports.ruth.gif
with
http://www.cdn.com/www.foo.com/sport
s/ruth.gif
in
CDN company
cdn.com
distributes gif files
uses its authoritative DNS server to route
redirect requests
Applications (part 3)
Applications (part 3)
routing requests
Applications (part 3)
Applications (part 3)
Performance bottleneck
IP address
content
Copyright infringement
Applications (part 3)
Applications (part 3)
overlay network
advantages of approach
disadvantages of approach
virtual neighbors
bootstrap node
Applications (part 3)
Gnutella
no hierarchy
join message
Applications (part 3)
Pros
Cons
highly decentralized
no peer maintains directory info
join
Applications (part 3)
Applications (part 3)
Applications (part 3)
Applications (part 3)
Consistent hashing
When nodes join and leave the hashing function will be affected
Need to know the exact number of hosts (in this example, 101)
Applications (part 3)
Applications (part 3)
Consistent hashing
How does a user who wants to access a object know which node
holds the object?
Applications (part 3)
Applications (part 3)
Applications (part 3)
Applications (part 3)
Applications (part 3)
Applications (part 3)