1
04832250 – Computer Networks (Honor Track)
- Prof. Chenren Xu(许辰人)
04832250 Computer Networks (Honor Track) A Data Communication and - - PowerPoint PPT Presentation
04832250 Computer Networks (Honor Track) A Data Communication and Device Networking Perspective A Data Communication and Device Networking Perspective Module 1: Protocol Support for Network Applications Prof. Chenren Xu
1
2
3
Application Transport Network Link Physical TCP IP 802.11 HTTP app OS User-level (NIC) 802.11 IP TCP HTTP 802.11 IP TCP HTTP 802.11 IP TCP HTTP HTTP
4
Series of variable length, reliable request/reply exchanges
Real-time (unreliable) stream delivery
Short, reliable request/reply exchanges
5
Application Presentation Session Transport Network Data Link Physical
6
7
8
2010 1970 1990 1980 2000
File Transfer (FTP) Email (SMTP) News (NTTP) Secure Shell (ssh) Telnet Email Web (HTTP) Web (CDNs) P2P (BitTorrent) Web (Video) ???
9
10
www.uw.edu? Network 128.94.155.135
11
Lookup
12
13
14
15
16
A zone Delegation
17
Type Meaning SOA Start of authority, has key zone parameters A IPv4 address of a host AAAA IPv6 address of a host CNAME Canonical name for an alias MX Mail exchanger for the domain NS Nameserver of domain or delegated subdomain
18
flits.cs.vu.nl resolves robot.cs.washington.edu
19
20
Nameserver query
response Cache
1: query 2: query UW nameserver (for washington.edu) 3: eng.washington.edu 4: eng.washington.edu Local nameserver (for cs.vu.nl) I know the server for washington.edu! Cache
21
22
23
Source: http://www.root-servers.org. Snapshot on 27.02.12. Does not represent current deployment. Source: http://www.root-servers.org. Snapshot on 27.02.12. Does not represent current deployment.
24
25
26
27
28
29
30
31
32
Commands used in the request Code returned with response Many header fields specify capabilities and content
33
34
§ https://www.nngroup.com/articles/response-times-3-important-limits/
35
Client Server TCP Connection overhead: 3-way handshake + 4-way termination
36
37
38
Persistent + Pipelining
39
40
When is it OK to reuse local copy?
41
Value-add service
42
43
44
§ Reduces server, network load § Improves user experience (PLT)
45
46
47
48
49
50
51
52
https://github.com/pagespeed/mod_pagespeed
53
54
55
§ Communication must be peer-to-peer and self-
§ Leads to several issues at scale …
§ How can one peer deliver content to all other peers?
§ Why will peers help each other?
§ How will peers find content?
56
peers using a distribution tree
§ Typically done with replicas over time § Self-scaling capacity
§ Download ( ) to help themselves, and upload ( ) to help others
§ I’ll upload for you if you upload for me § Encourages cooperation
§ Use DHTs (Distributed Hash Tables)
algorithms for a distributed index
§ Index is spread across all peers § Index lists peers to contact for content § Any peer can lookup the index § Started as academic work in 2001
57
58
All peers (except seed) retrieve torrent at the same time, dividing file into pieces gives parallelism for speed Choking unhelpful peers encourages participation DHT index (spread over peers) is fully decentralized
59