Week13 Lec3-SwitchedEthernet
Week13 Lec3-SwitchedEthernet
Computer Networks
Week 13_Lec3
Switched Ethernet
MAC protocol
application and frame format
transport
network 100BASE-TX 100BASE-T2 100BASE-FX
link 100BASE-T4 100BASE-SX 100BASE-BX
physical
A A A’
• switch learns which hosts
can be reached through B
C’
which interfaces
• when frame received, 6 1 2
switch “learns” location
of sender: incoming LAN 5 4 3
segment
B’ C
• records sender/location
pair in switch table
A’
A A A’
• frame destination, A’,
B
locaton unknown: flood C’
1
destination A 6 2
locationselectively
known: A A’
5 4 3
send
B’ C
on just one link
A’ A
A’
S1
S3
A S2
F
D I
B C
G H
E
S4
S1
S3
A S2
F
D I
B C
G H
E
Sounds
web server Google’s network
simple!
64.233.169.105 64.233.160.0/19
ARP IP
DNS
ARP query Eth arriving mobile:
Phy ARP client DNS query created, encapsulated in UDP,
encapsulated in IP, encapsulated in Eth. To
send frame to router, need MAC address of
router interface: ARP
ARP ARP query broadcast, received by router, which
Eth
replies with ARP reply giving MAC address of
ARP reply
Phy
router has router interface
ARP server
client now knows MAC address of first hop
router, so can now send frame containing
DNS query
Comcast network
68.80.0.0/13
IP datagram
IP datagram forwarded from campus
containing DNS query
network into Comcast network,
forwarded via LAN
routed (tables created by RIP, OSPF,
switch from client to
IS-IS and/or BGP routing protocols)
1st hop router
to DNS server
Link Layer: 6-21
A day in the life…TCP connection carrying HTTP
HTTP
HTTP to send HTTP request,
SYNACK
SYN TCP
SYNACK
SYN IP client first opens TCP
SYNACK
SYN Eth
Phy Comcast network
socket to web server
68.80.0.0/13
TCP SYN segment (step 1 in TCP
3-way handshake) inter-domain
routed to web server
web server responds with
SYNACK
SYN
SYNACK
SYN
TCP
IP
TCP SYNACK (step 2 in TCP 3-
SYNACK
SYN Eth way handshake)
Phy
TCP connection established!
Google web server
64.233.169.105