Homework 5 - Computer Networking Protocols | ECE 465, Assignments of Computer Systems Networking and Telecommunications

Material Type: Assignment; Class: Computer Networking Protocols; Subject: Electrical & Computer Enginrg; University: George Mason University; Term: Unknown 1989;

Typology: Assignments

Pre 2010

Uploaded on 02/10/2009

koofers-user-tqp-1
koofers-user-tqp-1 🇺🇸

8 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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 part-
ner). If that is not possible, run the programs in two different
windows.
(a) Suppose you run the client program before the server. What
happens? Why?
(b) 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.
1

Partial preview of the text

Download Homework 5 - Computer Networking Protocols | ECE 465 and more Assignments Computer Systems Networking and Telecommunications in PDF only on Docsity!

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 part- ner). If that is not possible, run the programs in two different windows. (a) Suppose you run the client program before the server. What happens? Why? (b) 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.