Application Layer
Application layer: Roadmap
Principles of network applications Web and HTTP FTP Electronic Mail
SMTP, POP3, IMAP
DNS P2P applications Socket programming with UDP Socket programming with TCP
CSE Department 79
Application layer: Roadmap Principles of network applications Web - - PowerPoint PPT Presentation
Application Layer Application layer: Roadmap Principles of network applications Web and HTTP FTP Electronic Mail SMTP, POP3, IMAP DNS P2P applications Socket programming with UDP Socket programming with TCP 79
Application Layer
SMTP, POP3, IMAP
CSE Department 79
Application Layer
CSE Department
File distribution Searching for information
80
Application Layer
Centralized: Napster Decentralized: Gnutella Hierarchical : KaZaA
DHT-based
CSE Department 81
Application Layer
CSE Department
us u2 d1 d2 u1 uN dN Server Network (with abundant bandwidth) File, size F
82
Application Layer
CSE Department
us u2 d1 d2 u1 uN dN Server Network (with abundant bandwidth) F
NF/us time
83
Application Layer
CSE Department
us u2 d1 d2 u1 uN dN Server Network (with abundant bandwidth) F
84
Application Layer
CSE Department 85
0.5 1 1.5 2 2.5 3 3.5 5 10 15 20 25 30 35
N Minimum Distribution Time
P2P Client-Server
Application Layer
CSE Department
trading chunks peer
86
Application Layer
Peer [Leech] Downloader “US” Peer [Seed] Peer [Leech] Tracker Web Server
CSE Department 87
Application Layer
A B C Peer [Leech] Downloader “US” Peer [Seed] Peer [Leech] Tracker Web Server
CSE Department 88
Application Layer
A B C Peer [Leech] Downloader “US” Peer [Seed] Peer [Leech] Tracker Web Server
CSE Department 89
Application Layer
A B C Peer [Leech] Downloader “US” Peer [Seed] Peer [Leech] Tracker Web Server
CSE Department 90
Application Layer
A B C Peer [Leech] Downloader “US” Peer [Seed] Peer [Leech] Tracker Web Server
CSE Department 91
Application Layer
A B C Peer [Leech] Downloader “US” Peer [Seed] Peer [Leech] Tracker Web Server
CSE Department 92
Application Layer
A B C Peer [Leech] Downloader “US” Peer [Seed] Peer [Leech] Tracker Web Server
CSE Department 93
Application Layer
CSE Department
has no chunks, but will accumulate them over time registers with tracker to get list of peers,
94
Application Layer
CSE Department
rarest first
re-evaluate top 4 every
newly chosen peer may
95
Application Layer
CSE Department 96
Application Layer
key: ss number; value: human name key: content type; value: IP address
DB returns values that match the key
CSE Department 97
Application Layer
Each identifier can be represented by n bits.
eg, key = h(“Led Zeppelin IV”) This is why they call it a distributed “hash” table
CSE Department 98
Application Layer
Assigning (key, value) pairs to peers.
key = 13, then successor peer = 14 key = 15, then successor peer = 1
CSE Department 99
Application Layer
CSE Department 100
Application Layer
I am
1110 1110 1110 1110 1110 1110
CSE Department 101
Application Layer
Each peer keeps track of IP addresses of predecessor,
Reduced from 6 to 2 messages. Possible to design shortcuts so O(log N) neighbors, O(log
Who’s resp for key 1110?
CSE Department 102
Application Layer
CSE Department 103
Application Layer
CSE Department
client-server P2P hybrid
reliability, bandwidth,
connection-oriented,
unreliable, datagrams: UDP
HTTP FTP SMTP, POP, IMAP DNS P2P: BitTorrent, Skype
127
Application Layer
CSE Department
client requests info or
server responds with
headers: fields giving
data: info being
in-band, out-of-band
128