Chapter 6N V7.01
Chapter 6N V7.01
Chapter 6N V7.01
▪ combination of hardware,
software, firmware network adapter
card
datagram datagram
controller controller
frame
otherwise
0 0
sender: receiver:
▪ treat segment contents ▪ compute checksum of
as sequence of 16-bit received segment
integers ▪ check if computed
▪ checksum: addition (1’s checksum equals checksum
complement sum) of field value:
segment contents • NO - error detected
▪ sender puts checksum • YES - no error detected.
value into UDP But maybe errors
checksum field nonetheless?
R = remainder[ D.2r ]
G
6-slot 6-slot
frame frame
1 3 4 1 3 4
frequency bands
FDM cable
node 2 2 2 2
node 3 3 3 3
C E C S E C E S S
Pros: Cons:
▪ single active node can ▪ collisions, wasting slots
continuously transmit at ▪ idle slots
full rate of channel
▪ nodes may be able to
▪ highly decentralized: only detect collision in less
slots in nodes need to be
in sync than time to transmit
packet
▪ simple
▪ clock synchronization
Link Layer and LANs 6-25
Slotted ALOHA: efficiency
!
▪ prob that given node has at best: channel
success in a slot = p(1- used for useful
p)N-1 transmissions 37%
▪ prob that any node has a of time!
success = Np(1-p)N-1
Link Layer and LANs 6-26
Pure (unslotted) ALOHA
▪ unslotted Aloha: simpler, no synchronization
▪ when frame first arrives
• transmit immediately
▪ collision probability increases:
• frame sent at t0 collides with other frames sent in [t0-
1,t0+1]
= p . (1-p)N-1 . (1-p)N-1
= p . (1-p)2(N-1)
… choosing optimum p and then letting n
= 1/(2e) = .18
CSMA collisions
▪ collisions can still occur:
propagation delay means
two nodes may not hear
each other’s
transmission
▪ collision: entire packet
transmission time
wasted
• distance &
propagation delay
play role in in
determining collision
probability
1
efficiency =
1 + 5t prop/ttrans
▪ efficiency goes to 1
• as tprop goes to 0
• as ttrans goes to infinity
▪ better performance than ALOHA: and simple, cheap,
decentralized!
data
cable headend
CMTS
…
cable
cable modem … splitter
modem
termination system
Downstream channel i
CMTS
Upstream channel j
1A-2F-BB-76-09-AD
LAN
(wired or adapter
wireless)
71-65-F7-2B-08-53
58-23-D7-FA-20-B0
0C-C4-11-6F-E3-98
min)
0C-C4-11-6F-E3-98
137.196.7.88
A B
R
111.111.111.111
222.222.222.222
74-29-9C-E8-FF-55
49-BD-D2-C7-56-2A
222.222.222.220
1A-23-F9-CD-06-9B
IP
Eth
Phy
A B
R
111.111.111.111
222.222.222.222
74-29-9C-E8-FF-55
49-BD-D2-C7-56-2A
222.222.222.220
1A-23-F9-CD-06-9B
IP IP
Eth Eth
Phy Phy
A B
R
111.111.111.111
222.222.222.222
74-29-9C-E8-FF-55
49-BD-D2-C7-56-2A
222.222.222.220
1A-23-F9-CD-06-9B
A B
R
111.111.111.111
222.222.222.222
74-29-9C-E8-FF-55
49-BD-D2-C7-56-2A
222.222.222.220
1A-23-F9-CD-06-9B
A B
R
111.111.111.111
222.222.222.222
74-29-9C-E8-FF-55
49-BD-D2-C7-56-2A
222.222.222.220
1A-23-F9-CD-06-9B
IP
Eth
Phy
A B
R
111.111.111.111
222.222.222.222
74-29-9C-E8-FF-55
49-BD-D2-C7-56-2A
222.222.222.220
1A-23-F9-CD-06-9B
preamble:
▪ 7 bytes with pattern 10101010 followed by one
byte with pattern 10101011
▪ used to synchronize receiver, sender clock rates
A A A’
▪ switch learns which hosts
can be reached through B
which interfaces C’
A A A’
▪ frame destination, A’,
location unknown: flood C’ B
▪ destination A location 6 1 2
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
IP subnet
switch(es) supporting
VLAN capabilities can … …
be configured to Electrical Engineering Computer Science
define multiple virtual (VLAN ports 1-8) (VLAN ports 9-15)
… …
2 8 10 16
… …
type
dest. source
preamble
address address data (payload) CRC 802.1Q frame
school network
68.80.2.0/24
web page
DHCP Eth
Phy DNS server: use DHCP
DHCP