























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
This course is about introduction to network programming. Topics covered in this are direct link networks, packet switching, internetworking, end-to-end protocols, congestion control and resource, allocation, end-to-end data, applications. This lecture includes: Ethernet, MAC, CSMA, CD, Multiple, Access, Carrier, Sense, Nodes, Link, Collision, Detection, Transmit, Algorithm, Constraints
Typology: Slides
1 / 31
This page cannot be seen from the preview
Don't miss anything!
























3
Ethernet MAC – CSMA/CD
shared link
distinguish
between an idle
and busy link
listens as it transmits
to detect
collision
5
CSMA/CD MAC Algorithm
carrier sensed
) …
then transmit immediately
1-persistent
(special case of
p-
persistent
)
collision detected
6
Collision Detection
How to ensure that my-machine knows about the collision?
start
transmission
at time 0
my-machine
your-machine
start
transmission
at time T
almost there
at time T
collision !!!
8
Constraints on Collision Detection
stop transmitting frame (runt frame of96 bits)– ensures that
all hosts notice collision
9
Ethernet Min. Frame Size
-^
RTT
on a maximally configured Ethernet
of 2500m, with 4 repeaters is about 51.
μ
s
8
m/s = 12.5 us
μ
s on 10 Mbps corresponds to 512 bits
(64 bytes)
minimum frame length
for
Ethernet is 64 bytes (header +46 bytes data)
11
Retry After the Collision
retry after a collision ?–
Binary exponential backoff
each failure (exponential)
number
N
discrete possibilities from 0 to maximum
12
Retry After the Collision
–1st time: 0 or 51.2us–2nd time: 0, 51.2, or 102.4us–3rd time51.2, 102.4, or 153.6us–
nth
time:
k
x
51.2us, for randomly
selected
k
n^
–Give up after several tries
(usually 16)
14
Binary Exponential Backoff
k
hosts collide
random
number from 0 to 2
( N-1)
unique
microseconds
15
Binary Exponential Backoff
k
hosts collide
not unique
collide again
value
17
Ethernet Frame Reception
belongs or;
(packet sniffing and
tcpdump
requirement)
18
Ethernet Collision Detection
20
Experience With Ethernet
hosts limited to 200
in
practice, standard allows 1024
shorter than 2.5 km
limit in standard
5 or 10
μ
s
, not 50
μ
s
21
Experience With Ethernet
i.e.
, TCP) limits
load–
30% maximum load
recommended
topology
than elegance or raw performance (1 > 0)