Douglas E. Comer
Computer Science Department
West Lafayette, IN 47907
webmaster: W. David Laverell
Hands-On Networking: Experiment 8.3
Home > Student > Experiments > 8.3
To do this experiment you set your gateway to drop or corrupt
a certain (large, for testing purposes) percentage of
datagrams. Your server program, upon receiving the name of a
- opens that file
- continually reads a (small, for testing
purposes) number of bytes, puts them into a datagram,
and for each datagram enters a while loop in which it
- sends the datagram
- waits for an acknowledgement using a
- if the
select statement times out, resends
- the loop terminates upon reception of an acknowledgement
- closes the file.
Now what? Assuming that you
do not wish to terminate your programs manually, you send some
kind of termination message and shut down.
If you write your code in exactly this way, and if the jitter
parameter passed to your gateway is positive, you will
encounter a very interesting problem. Armed with this
preliminary description of the problem, you will have no
problem whatsoever deciding how to fix it. My advice at this
point is to choose the quick and dirty solution. That solution
will not be good enough for Experiment 8.4.
This site is maintained by W. David Laverell
of the Computer Science Department
at Calvin College. For assistance or corrections,
please contact him at .