Week 8
Week 8
415E
DATA
COMMUNICATIONS
3
PROGRESS
REPORT
• DEADLINE:
NOVEMBER
03
• Contents:
– Project
DescripKon
– Progress
Table
ITEM
NUMBER
WORK
RELATION
WITH
THE
RESOURCES
DURATION
DESCRIPTION
PROJECT
(PEOPLE
+
HARDWARE
...)
1
2
3
– References
4
Data
and
Computer
CommunicaKons
Ninth
EdiKon
by
William
Stallings
Data
and
Computer
CommunicaKons,
Ninth
EdiKon
by
William
Stallings,
(c)
Pearson
EducaKon
-‐
PrenKce
Hall,
2011
Data
Link
Control
Protocols
“Great and enlightened one,” said Ten-teh,
as soon as his stupor was lifted, “has this
person delivered his message competently, for
his mind was still a seared vision of snow and
sand and perchance his tongue has stumbled?”
“Bend your ears to the wall,” replied the
Emperor, “and be assured.”
—Kai Lung's Golden Hours,
Earnest Bramah
Data
Link
Control
Protocols
• when
sending
data,
to
achieve
control,
a
layer
of
logic
is
added
above
the
Physical
layer
– data
link
control
or
a
data
link
control
protocol
• to
manage
exchange
of
data
over
a
link:
– frame
synchronizaKon
– flow
control
– error
control
– addressing
– control
and
data
– link
management
Flow
Control
• ensure
sending
enKty
does
not
overwhelm
receiving
enKty
– prevent
buffer
overflow
• influenced
by:
– transmission
Kme
• Kme
taken
to
emit
all
bits
into
medium
– propagaKon
Kme
• Kme
for
a
bit
to
traverse
the
link
• assumpKon
is
all
frames
are
successfully
received
with
no
frames
lost
or
arriving
with
errors
Model
of
Frame
Transmission
11
Bit
Length
of
a
Link
• B
=
R
x
d/V
• B
–
Length
of
the
link
in
bits
(The
number
of
bits
present
on
the
link
at
an
instance
of
Kme
when
a
stream
of
bits
fully
occupy
the
link)
• R
–
Bit
rate
(bps)
• d
–
Distance
between
staKons
(m)
• V
–
velocity
of
propagaKon
(m/s)
• a
=
B/N
(N
–
number
of
bits
in
a
frame)
12
Stop
and
Wait
Link
UKlizaKon
14
Sliding
Windows
Flow
Control
• allows
mulKple
numbered
frames
to
be
in
transit
– receiver
has
buffer
W
long
– transmiqer
sends
up
to
W
frames
without
ACK
– ACK
includes
number
of
next
frame
expected
(RR
–
Receive
ready)
– sequence
number
is
bounded
by
size
of
field
(k)
• frames
are
numbered
modulo
2k
• giving
max
window
size
of
up
to
2k
–
1
– receiver
can
ACK
frames
without
permiwng
further
transmission
(RNR
-‐
Receive
Not
Ready)
– must
send
a
normal
acknowledge
to
resume
• if
have
full-‐duplex
link,
can
piggyback
ACKs
Sliding
Window
Diagram
Sliding
Window
Example
Error
Control
Techniques
detecKon
and
correcKon
of
errors
such
as:
TOOLS:
error
detecIon
lost
frames
-‐a
frame
fails
to
posiIve
arrive
at
the
other
acknowledgment
side
(ACK)
damaged
frames
negaIve
-‐frame
arrives
but
acknowledgement
some
of
the
bits
(NACK)
&
are
in
error
retransmission
retransmission
aQer
Imeout
(TO)
AutomaKc
Repeat
Request
(ARQ)
pros
• simplisKc
cons
• inefficient
Go-‐Back-‐N
ARQ
• most
commonly
used
error
control
• based
on
sliding-‐window
• use
window
size
to
control
number
of
outstanding
frames
• if
no
error,
ACK
as
usual
• if
error,
reply
with
rejecKon
– desKnaKon
will
discard
that
frame
and
all
future
frames
unKl
frame
in
error
is
received
correctly
– transmiqer
must
go
back
and
retransmit
that
frame
and
all
subsequent
frames
Go
Back
N
-‐
Handling
• Damaged
frame
– error
in
frame
i
so
receiver
rejects
frame
i
– transmiqer
retransmits
frames
from
i
• Lost
frame
– frame
i
lost
and
either
• transmiqer
sends
i+1
and
receiver
gets
frame
i+1
out
of
sequence
and
rejects
frame
i
• or
transmiqer
Kmes
out
and
sends
ACK
with
P
bit
set
which
receiver
responds
to
with
ACK
i
– transmiqer
then
retransmits
frames
from
i
Go
Back
N
-‐
Handling
Damaged
Acknowledgement
Damaged
RejecIon
A
few
different
versions
of
the
HDLC
frame
include
the
PPP
[Point-‐to-‐Point
Protocol]
HDLC
frame,
and
the
Ethernet
HDLC
frame.
HDLC
Transfer
Modes
Normal
Response
Mode
(NRM)
• used
with
an
unbalanced
configuraIon
• primary
iniIates
transfer
InformaIon
Field
• in
I-‐frames
and
some
U-‐frames
• must
contain
integral
number
of
octets
• variable
length
39