Professor Yashar Ganjali Department of Computer Science University of Toronto
Professor Yashar Ganjali Department of Computer Science University of Toronto
Professor Yashar Ganjali Department of Computer Science University of Toronto
yganjali@cs.toronto.edu
http://www.cs.toronto.edu/~yganjali
Announcements
• Problem Set 1 out today (Sep 24th).
• Problems from the textbook
• Due Friday Oct. 4th at 5pm.
Remember the late submission policy.
Remember academic integrity guidelines.
Submit electronically on MarkUS.
NOTE. File names must be: ps1.pdf
You can scan and save as a pdf file.
Not preferred, but acceptable.
Metcalfe’s
Ethernet
sketch
Application gateway
Transport gateway
Frame Packet TCP User
Router header header header data
Bridge, switch
Repeater, hub
Repeater
hub
hub hub
Bridge
A C
switch
switch/bridge
collision
domain
hub
hub hub
A B
switches
A B
switches
A C
switch
A C
D
CSC 458/CSC 2209 – Computer Networks University of Toronto – Fall 2019 24
Self Learning: Handling Misses
When frame arrives with unfamiliar destination
Forward the frame out all of the interfaces
… except for the one where the frame arrived
Hopefully, this case won’t happen very often
When in B
doubt,
shout!
A C
optimal no yes no
routing
cut yes no yes
through
Protocol Stack
App
Source D H Destination
A B
R2
D H R1 R3
R4 • Architecture
• Links Transparent
• Topology
bits 0 8 16 32
SRC IP Address
<=64 KBytes
DST IP Address
(OPTIONS) (PAD)
A B
Ethernet MTU=1500 bytes MTU=1500 bytes
MTU<1500 bytes
R1 R2
1 7 24
2 14 16
3 21 8
4 28
CLASS “D” 1110 Multicast Group ID
5 27
CLASS “E” 11110 Reserved
A B C D
0 232-1
2 14 16 2 14 16
e.g. Site 10 Net ID 0000 Host-ID 10 Net ID 1111 Host-ID
Subnet Subnet
Subnet ID (20) Host ID (12)
Subnet ID (20) Host ID (12)
2 14 16 2 14 16
e.g. Dept 10 Net ID 000000 Host-ID 10 Net ID 1111011011 Host-ID
Subnet
Subnet ID (22) Subnet Subnet ID (26) Host ID (6)
Host ID (10)
0 232-1
216
128.9.16.14
CSC 458/CSC 2209 – Computer Networks University of Toronto – Fall 2019 49
Classless Inter-Domain Routing (CIDR) – Addressing
128.9.19/24
128.9.25/24
128.9.16/20 128.9.176/20
128.9/16
0 232-1
128.9.16.14
A DNS Query
Client asks local server.
If local server does not have address, it asks the root
server of the requested domain.
Addresses are cached in case they are requested again.
.stanford.edu
“What is the IP address of
Client
www.eecs.berkeley.edu?” .edu
.berkeley.edu .eecs.berkeley.edu
application e.g. gethostbyname()