cs436-A2-w14

Afterallcontentsofthefilehave

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: nd‐of‐transmission
 packet
 below).
 For
 data
 packets,
 seqnum
 is
 the
 modulo
 2
 sequence
 number
 of
 the
 packet.
 The
 sequence
 number
 of
 the
 first
 packet
 should
 be
 zero.
 For
 ACK
 packets,
 seqnum
 is
 the
 sequence
 number
 of
 the
 packet
 being
 acknowledged.
 The
 length
 field
 specifies
 the
 number
 of
 characters
 carried
 in
 the
 data
 field.
It
should
be
in
the
range
of
0
to
500.
For
ACK
packets,
length
should
be
set
to
zero. 3 Sender
Program
(sender)
 You
should
implement
a
sender
program,
named
 sender,
on
a
UNIX
system.
Its
command
line
input
 includes
the
following:
 <host address of the network emulator>,
 <UDP port number used by the emulator to receive data from the sender>,
<UDP port number used by the sender to receive ACKs from the emulator>,
and
 <name of the file to be transferred>
in
the
given
 order.

 
 Upon
 execution,
 the
 sender
 program
 should
 be
 able
 to
 read
 data
 from
 the
 specified
 file
 and
 send
 it
 using
the
 rdt
3.0
protocol
to
the
receiver
via
the
network
emulator.
After
all
contents
of
the
file
have
 been
transmitted
successfully
to
the
receiver
(and
corresponding
ACKs
hav...
View Full Document

Ask a homework question - tutors are online