cs436-A2-w14

Whenreceivingpacketssentbythesenderviathenetworkemulat

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: e
been
received),
the
sender
 should
 send
 an
 EOT
 packet
 to
 the
 receiver.
 The
 EOT
 packet
 is
 in
 the
 same
 format
 as
 a
 regular
 data
 packet,
 except
 that
 its
 type
 field
 is
 set
 to
 2
 and
 its
 length
 is
 set
 to
 zero.
 The
 sender
 can
 close
 its
 connection
and
exit
only
after
it
has
received
ACKs
for
all
data
packets
it
has
sent
and
an
EOT
from
the
 receiver.
 To
 keep
 the
 project
 simple,
 you
 can
 assume
 that
 the
 end‐of‐transmission
 EOT
 packet
 never
 gets
lost
in
the
network.
 
 In
order
to
ensure
reliable
transmission,
your
program
should
implement
the
rdt
3.0
protocol
as
 described
in
slides
35‐38
of
Module
3
Lecture
Notes.
 3.1 Output
 For
both
testing
and
grading
purposes,
your
 sender
program
should
be
able
to
 generate
two
log
files,
 named
 as
 seqnum.log
 and
 ack.log.
 Whenever
 a
 packet
 is
 sent,
 its
 sequence
 number
 should
 be
 recorded
in
 seqnum.log.
The
file
 ack.log
should
record
 the
sequence
numbers
 of
all
the
ACK
packets
 that
the
sender
receives
during
the
entire
period
of
transmission.
 The
format
for
these
two
log
files
 is
 one
number...
View Full Document

Ask a homework question - tutors are online