ECE 465:Computer Network Protocols and Applications Prof. B.-P. Paris Homework 5 Due: February 27, 2007
Reading
Chapter 2
Experiments
Install and compile the two C programs simple-server.c and
test-port-client.c. You will also need DieWithError.c Ideally you should
run the two programs on two different hosts (team up with a
partner). If that is not possible, run the programs in two different
windows.
Suppose you run the client program before the server. What
happens? Why?
What happens if you specify the wrong port number when
you invoke the client?
Modify the two programs to use UDP instead of TCP. Repeat the
experiments. Explain the differences between the UDP and TCP
versions of the programs.