Peer-to-Peer Networks
13 Internet – The Underlay Network
Christian Ortolf
Technical Faculty Computer-Networks and Telematics University of Freiburg
Peer-to-Peer Networks 13 Internet The Underlay Network Christian - - PowerPoint PPT Presentation
Peer-to-Peer Networks 13 Internet The Underlay Network Christian Ortolf Technical Faculty Computer-Networks and Telematics University of Freiburg Types of Networks (Tanenbaum) 2 The Internet global system of interconnected WANs and
Christian Ortolf
Technical Faculty Computer-Networks and Telematics University of Freiburg
(Tanenbaum)
2
3
[Tanenbaum, Computer Networks]
4
[Tanenbaum, Computer Networks]
conceptual sketches
internet
Flow in Communication Nets”
Line Man Computer Communication”
computers in the USA
5
6
7
8
Application Telnet, FTP, HTTP, SMTP (E-Mail), ... Transport TCP (Transmission Control Protocol) UDP (User Datagram Protocol) Network IP (Internet Protocol) IPv4 + IPv6 + ICMP (Internet Control Message Protocol) + IGMP (Internet Group Management Protoccol) Host-to-Network LAN (e.g. Ethernet, W-Lan etc.)
9
DSL
10
(Aus Tanenbaum)
11
12
[Tanenbaum, Computer Networks]
13
Stevens, TCP/IP Illustrated
14
Stevens, TCP/IP Illustrated
(>5)
throughput, reliability, monetary cost
15
address
e.g. falcon.informatik.uni-freiburg.de and vice versa
16
codes classes
128 NWs; 16 M hosts 16K NWs; 64K hosts 2M NWs; 256 hosts
17
using one ID
18
IP address
corresponding gateway
corresponding gateway
19
20
(streaming, real-time services like VoIP, video on demand)
21
22
UDP, Multiplexing, ...
23
24
25
destination
neighbors
with its neighbors
information in each round
available
26
27
from A to
via entry B C B 1 8 B C 6 3 C D 2 9 B E 7 4 C
28
from A to
via entry B C B 1
C
C D
B to
via
entry
A C D A 1
C
D
C E
D
from C to
via
entry
A B E A 3
B
D
E E
E
29
from B to via
Entry
A C D A 1 8
C
D
1 D E
8 C from C to via
Entry
A B E A 3 6
B
D
8 B E
1 E from B to via
Entry
A C D A 1
C
D
D E
D from C to via
Entry
A B E A 3
B
D
E E
E
30
31
32
path to the target (per TCP)
33
34
http://bgp.potaroo.net/as1221/bgp-active.html
35
2 Mbps DSL Link
Destination Source B Source A Buffer overflow
36
37
38
2 Mbps DSL Link
Destination Source B Source A Packet deletion
P(drop) 1.0 MaxP MinTh MaxTh AvgLen
39
40
App Net Link Phy Phy Link Phy Link
Router
Net Net Phy Link Phy Link
Router
Net Net App Net Link Phy
Host Host
Trans Trans
end-to-end connection
41
2 Mbps DSL Link
Destination A Source B Source A
TC P TC P UD P UD P
Destination B
connections
42
0 7 8 15 16 23 24 31 +--------+--------+--------+--------+ | Source | Destination | | Port | Port | +--------+--------+--------+--------+ | | | | Length | Checksum | +--------+--------+--------+--------+ | | data octets ... +---------------- ...
window)
be dropped, delayed, delivered out-of-
43
connections
44
45
Host 1 Host 1 Host 2 Host 2
Connection establishment Connection termination
46
[Tanenbaum, Computer Networks]
47
acknowledgements and window management
... but how to decide that?
48
49
Sender Receiver
X
Round Trip Time Retransmission after timeout
(RTO), the packet will be retransmitted
50
is sent
51
52
2 Mbps DSL Link
Destination Source B Source A Packet deletion
TC P TC P
53
App Trans Net Link Phy Phy Link Phy Link
Router
Net Net Phy Link Phy Link
Router
Net Net App Trans Net Link Phy
Host Host
App Trans Net Link Phy Phy Link Phy Link
Router
Net Net Phy Link Phy Link
Router
Net Net App Trans Net Link Phy
Host Host
from a transport layer perspective:
? ? ?
no ACKs received
Segment 8 Segment 9 Segment 10 Segment 1 ACK: Segment 1
Sender Receiver
Segment 2 Segment 3 ACK: Segment 3 Segment 4 Segment 5 ACK: Segment 7 Segment 6 Segment 7 ACK: Segment 5 …
segment size in the beginning
(wnd = receiver window)
unacknowledged
54
55
slow start
ssthresh ← 65535
cwnd ← S ssthresh ←
cwnd ← cwnd + S/cwnd x ← 1 x ← x +1 y ← max y ← x/2 x ← 1 x ← 2 x, until x = y x: # Packets per RTT
56
x ← y + 3 y ← x/2
57
additive increase (AI)
x ← 1 x ← x +1 x ← x/2
58
59
additive increase multiplicative decrease
60
knee
throughput
(packets delivered)
latency
load (packets sent)
cliff
61
data rate of A
data rate of B
data rate
b b
b: max. available bandwidth
data rate of A
data rate of B
AD AI
63
data rate of A
data rate of B
MD MI
64
data rate of A
data rate of B
MD AI
impact on other applications
65
Christian Ortolf
Technical Faculty Computer-Networks and Telematics University of Freiburg