Energy Informatics
3-1 Introduction to Computer Networking
Christian Schindelhauer
Technical Faculty Computer-Networks and Telematics University of Freiburg
Energy Informatics 3-1 Introduction to Computer Networking - - PowerPoint PPT Presentation
Energy Informatics 3-1 Introduction to Computer Networking Christian Schindelhauer Technical Faculty Computer-Networks and Telematics University of Freiburg Overview Challenges of Computer Networks - Size, complexity, technology
Christian Schindelhauer
Technical Faculty Computer-Networks and Telematics University of Freiburg
2
(Tanenbaum)
3
§ global system of interconnected WANs and LANs § open, system-independent, no global control
4
[Tanenbaum, Computer Networks]
5
6
Source: CISCO VNI 2009,2010,2012,2014,2016
50 100 150 200 1990 1991 1992 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
7
1 10 100 1000 10000 100000 1000000 10000000 100000000 1000000000 1990 1991 1992 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020
Source: CISCO VNI 2009,2010,2012,2014,2016
§ Data
= 1 kB = 1000 Bytes
= 1 MB = 1000 kB = 106 Bytes
= 1 GB = 1000 MB = 109 Bytes
= 1 TB = 1000 GB = 1012 Bytes
= 1 PB = 1000 TB = 1015 Bytes
= 1 EB = 1000 PB = 1018 Bytes
= 1 ZB = 1000 EB = 1021 Bytes
= 1 YB = 1000 ZB = 1024 Bytes § Storage
= 1 kB = 1024 Bytes
= 1 MiB = 1024 kiB = 1.04 106 Byte
= 1 GiB = 1024 MiB = 1.07 109 Bytes
= 1 TiB = 1024 GiB = 1.10 1012 Bytes
= 1 PiB = 1024 TiB = 1.12 1015 Bytes
= 1 EiB = 1024 PiB = 1.15 1018 Bytes
= 1 ZiB = 1024 EiB = 1.18 1021 Bytes
= 1 YiB = 1024 ZiB = 1.21 1024 Bytes
8
§ Concept of Robert Kahn (DARPA 1972)
§ Basic principles of the Internet
9
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)
10
§ 1. Host-to-Network
PPP, DSL
§ 2. Routing Layer/Network Layer (IP - Internet Protocol)
§ 3. Transport Layer
§ 4. Application Layer
11
12
router client server
HTTP Client TCP IP Ethernet driver Ethernet driver WLAN driver IP HTTP Server TCP IP WLAN driver radio device radio device Ethernet device Ethernet device HTTP protocol TCP protocol IP protocol IP protocol wireless protocol Ethernet protocol
§ 7. Application
terminal, remote login
§ 6. Presentation
§ 5. Session
§ 4. Transport
§ 3. Network
§ 2. Data Link
§ 1. Physical
13 Application Anwendung Presentation Präsentation Session Sitzung Transport Network Vermittlung Data link Sicherung Physical Bitübertragung Application Anwendung Presentation Präsentation Session Sitzung Transport Network Vermittlung Data link Sicherung Physical Bitübertragung Network Vermittlung Data link Sicherung Physical Bitübertragung Network Vermittlung Data link Sicherung Physical Bitübertragung
Router
(Aus Tanenbaum)
14
15
user data user data Appl. header application data TCP header IP header TCP header application data IP header TCP header application data Ethernet header Ethernet trailer 14 20 20 4
Ethernet Frame 46 to 1500 bytes IP datagram TCP segment
application TCP IP Ethernet driver
16
http://www.cisco.com/c/dam/en_us/solutions/industries/docs/energy/ip_arch_sg_wp.pdf
§ Moving particles with electric charge cause electromagnetic waves
§ Relation between wavelength, frequency and speed of light:
λ ⋅ f = c
17
Hz 103 105 107 109 1011 1013 1015
guided media
twisted pair coaxial cable waveguide
fibre visible light infrared micro wave TV high frequency medium frequency low frequency radio
unguided media
18
§ LF Low Frequency § MF Medium Frequency § HF High Frequency § VHF Very High Frequency § UHF Ultra High Frequency § UV Ultra Violet light
19 Picture under creative commons license http://creativecommons.org/licenses/by-sa/2.5/
§ Attenuation in earth’s atmosphere
http://www.geographie.uni-muenchen.de/iggf/Multimedia/Klimatologie/physik_arbeit.htm
20
components
21
SINR = S I + N ≥ Threshold
22
23
2 4 6 8 1 2 3 4 5 6
2 4 6 8 1 2 3 4 5 6
ak = 1 π
π
Z
−π
f(x) cos kx dx
bk = 1 π
π
Z
−π
f(x) sin kx dx
lim
n→∞
a0 2 +
n
X
k=1
ak cos kx + bk sin kx = f(x)
24
transform to the k-th component, exactly?
continuous band-limited signal with a maximum frequency fmax you need at least a sampling frequency of 2 fmax.
25
8 1 2 3 4 5 6 7
0.2 0.4 0.6 0.8 1 1.2
Voltage Time Fourier decomposition with 8 coefficients
1 1 1
26
0 1 1 0 0 0 1 0
data source
source coding channel coding physical transmission
Medium data target
source decoding
channel decoding
physical reception
source bits
§ Source Coding
channel symbols
27
finite set of waveforms
Modulation
Demodulation
28
data source
source coding channel coding physical transmission
Medium data target
source decoding
channel decoding
physical reception
source bits
channel symbols
§ Idea
frequency of the medium
carrier wave signals
§ A sine wave has no information
(modulated) changes for data transmission,
(more frequencies in the Fourier analysis)
§ The following parameters can be changed:
29
휑/2흅푓
30
31
symbols
32
33
34
35
transition
36
zum Vergleich
and reconstruct the original signal
increase further
37
§ Real numbers
§ FFT by Integral product § complex representation § FFT by product with conjugate inverse 38 f(x) =
N−1
zk ei2πkt/T g(x) =
N−1
akcos2πkt T + bksin2πkt T
zk = 1 T ⇤ T
f(x)dt
QAM
39
40
41
§ Denser codes produce more errors § But encode more bits
42
received bits
QAM, 64 QAM, 256 QAM
43
§ 7. Application
terminal, remote login
§ 6. Presentation
§ 5. Session
§ 4. Transport
§ 3. Network
§ 2. Data Link
§ 1. Physical
44
Application Anwendung Presentation Präsentation Session Sitzung Transport Network Vermittlung Data link Sicherung Physical Bitübertragung Application Anwendung Presentation Präsentation Session Sitzung Transport Network Vermittlung Data link Sicherung Physical Bitübertragung Network Vermittlung Data link Sicherung Physical Bitübertragung Network Vermittlung Data link Sicherung Physical Bitübertragung
Router Router
Physical Layer Network Layer Network Layer Data Link Layer Bits Pakets Framing Data Link Layer Framing Frames
45
46
47
fast sender slow receiver
48
§ Version: 4 = IPv4 § IHL: IP header length
(>5)
§ Type of service
throughput, reliability, monetary cost
§ Checksum (only IP-header) § Source and destination IP-address § Protocol identifies protocol
§ Time to Live:
49
§ Version: 6 = IPv6 § Traffic Class
§ Flow Label
§ Payload Length
§ Next Header (IPv4: protocol)
UDP, Multiplexing, ...
§ Hop Limit (Time to Live)
§ Source Address § Destination Address
0 1 2 3 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |Version| Traffic Class | Flow Label | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload Length | Next Header | Hop Limit | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + + | | + Source Address + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | + + | | + Destination Address + | | + + | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
50
(streaming, real-time services like VoIP, video on demand)
51
address
e.g. falcon.informatik.uni-freiburg.de and vice versa
52
gateway
destination IP address
corresponding gateway
corresponding gateway
53
§ IP -Packet (datagram) contains...
§ Packet Handling
54
LAN
computers
55
§ (Sub-)Networks have limited bandwidth § Injecting too many packets leads to
56
2 Mbps DSL Link
Destination Source B Source A
Gigabit Ethernet Gigabit Ethernet
Buffer overflow
57
58
59
2 Mbps DSL Link
Destination Source B Source A
Gigabit Ethernet Gigabit Ethernet
Packet deletion
§ TCP (Transmission Control Protocol
§ UDP (User Datagram Protocol)
60
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
§ Port addresses
connections
§ Length
§ Checksum
61
0 7 8 15 16 23 24 31 +--------+--------+--------+--------+ | Source | Destination | | Port | Port | +--------+--------+--------+--------+ | | | | Length | Checksum | +--------+--------+--------+--------+ | | data octets ... +---------------- ...
delivered out-of-order ...
62
§ Sequence number
§ Acknowledge number
§ Port addresses
connections
§ TCP Header length
§ Check sum
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Source Port | Destination Port | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Sequence Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Acknowledgment Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Data | |U|A|P|R|S|F| | | Offset| Reserved |R|C|S|S|Y|I| Window | | | |G|K|H|T|N|N| | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Checksum | Urgent Pointer | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Options | Padding | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
63
§ Connection establishment and teardown by 3-way handshake
64
Host 1 Host 1 Host 2 Host 2
Connection establishment Connection termination
65
[Tanenbaum, Computer Networks]
66
acknowledgements and window management
§ Retransmissions are triggered, if acknowledgements do not arrive ... but how to decide that? § Measurement of the round trip time (RTT)
67
DATA ACK
68
Sender Receiver
X
D A T A A C K D A T A D A T A
Round Trip Time Retransmission after timeout
69
§ IP Routers drop packets § TCP has to react, e.g. lower the packet injection rate
70
2 Mbps DSL Link
Destination Source B Source A
Gigabit Ethernet Gigabit Ethernet
Packet deletion
TCP TCP
71
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
Congestion!
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 …
§ Sender does not use the maximum segment size in the beginning § Congestion window (cwnd)
{wnd,cwnd} (wnd = receiver window)
acknowledgement:
unacknowledged
72
73
slow start
74
75
additive increase multiplicative decrease
76
knee
throughput
(packets delivered)
latency
load (packets sent)
cliff
77
f a i r n e s s data rate of A
data rate of B
e f f i c i e n c y
data rate
b b
b: max. available bandwidth
f a i r n e s s data rate of A
data rate of B
e f f i c i e n c y AD AI
79
f a i r n e s s data rate of A
data rate of B
e f f i c i e n c y MD MI
80
f a i r n e s s data rate of A
data rate of B
e f f i c i e n c y MD AI
81
2 Mbps DSL Link
Destination A Source B Source A
Gigabit Ethernet Gigabit Ethernet
TCP TCP UDP UDP
Destination B
impact on other applications
82
Christian Schindelhauer
Technical Faculty Computer-Networks and Telematics University of Freiburg