Lecture 5
Lecture 5
Introduction to Computer
Networks
Lecture 5
Rachee Singh
https://www.racheesingh.com/computernetworks/
1
Outline of Today’s Lecture
2
Key tasks of the Internet
3
An organization of tasks on the Internet : Layers
1. Pros:
1. Modularity
2. Reduce complexity (don’t need to know every task of the network)
3. Improves flexibility (one layer an improve in isolation)
2. Cons:
1. Cross-layer information can be useful
2. Sub-optimal performance
5
What gets implemented where?
6
What functionality (layers) at the end host?
Ethernet
Optical
7
What functionality (layers) on the switches?
1. Bits arrive on the wire —> need the Physical layer (L1)
2. Packets need to be forwarded to next router/switch —> need Data Link layer (L2)
3. Packets need to be routed globally —> need network layer (L3)
4. No reliable delivery on switches —> transport layer is not needed (L4)
1. More on this later
8
Who implements which layer?
1. End hosts implement all layers
2. Lower 3 layers implemented everywhere
Alice Carol
HTTP HTTP
TCP TCP
IP IP
Ethernet Ethernet
Layer 3 (Network) IP
Links
End hosts
13
Switches: implement physical and data link layers (L1, L2)
Routers: implement physical, data link and network layers (L1, L2, L3)
Links
Routers
End hosts
We will use terms switch/router interchangeably
14
End-to-end principle
15
Why is it hard to implement reliability “in the network”?
16
End-to-end principle
“The function in question can completely and correctly be implemented only
with the knowledge and help of the application at the end points of the
communication system.
— David Clark
Chief protocol architect of the Internet form 1981
17
Summary
18
Hourglass structure or “narrow waist” of Internet protocols
Layer 3 (Network) IP
20
Fate Sharing
1. What is state?
1. Information about the communication that is happening
2. Examples: keeping track of packet losses at end hosts
2. Fate sharing means:
1. Co-locate state with entities that rely on that state (end hosts)
2. The communication shares fate with the end hosts
3. End-to-end principle relies on the concept of fate sharing
4. Why?
1. If the state is lost due to failure
2. The entity that relies on it has failed
3. .. less harm due to failure
21
Recap: Architectural Decisions + Principles
22
Physical Layer (L1)
23
Physical Links
1. A pair of routers
L3, L2 Protocols
2. Logical connection between them
??
3. Physical connection between them
24
Physical links
A B
PACKET
PACKET
PACKET
25
Physical connectivity: basics
PACKET
PACKET
PACKET
A B
Physical Medium
0100110011..
0100110011..
0100110011..
A B
0100110011.. λ1
0100110011.. λ2
λ3
0100110011..
Fiber
Fiber (glass) is an efficient (low loss) medium for transmitting signals.
27
Wired network connectivity: optical fiber
Wavelengths
Spectrum
Frequency
3. Spacing between wavelengths to ensure signals don’t
overlap at the receiver
4. 50GHz space between wavelengths, total 4THz
bandwidth means 80 wavelengths on fiber (4000/50)
191.10 THz 1520 nm
29
Exercise
30
Exercise
(On) = 1
(Off) = 0
2 symbols (on and off) or levels
Each symbol represents 1 bit
31
Exercise
32
Signal modulation
33
Signal modulation
34
Signal modulation
36
Wired network connectivity
Hartley’s Law:
R = fplog2M
Where,
R = data rate, bit rate in bits/second
fp = symbol rate or baud rate in symbols/second
Baud rate = 4, N = 2
M = number of levels in a given symbol
37
Revise: signal modulation
38
Revise: signal modulation
Transmitted Symbols
39
Signal modulation
10 00
Input bit 1 Input bit 0
11 01
41
Exercise: signal modulation
Exercise: If the baud rate of the transmission is 50 Gbaud, what is the data rate of a wavelength
modulated with 16-QAM modulation?
42
Exercise: signal modulation
QAM: quadrature amplitude modulation uses
a mix of different amplitude levels and phase
shifts to create different symbols (see right).
Hartley’s Law
R = fplog2M
Where,
R = data rate, bit rate in bits/second
fp = symbol rate or baud rate in symbols/second
Constellation Diagram of 16-QAM
M = number of levels in a given symbol
Exercise: If the baud rate of the transmission is 50 Gbaud, what is the data rate of a wavelength
modulated with 16-QAM modulation?
Hint:16-QAM has 16 levels per symbol
Answer = 50 * log216 = 200Gbps
43