Homework 5 (Due: February 27)

[PDF]

ECE 465:Computer Network Protocols and Applications
Prof. B.-P. Paris
Homework 5
Due: February 27, 2007

Reading
Chapter 2
Experiments
  1. 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.
    1. Suppose you run the client program before the server. What happens? Why?
    2. What happens if you specify the wrong port number when you invoke the client?
  2. 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.