20 likes | 197 Views
Computer Networks Project #1 - Linux Router and Berkeley Socket Programming (20%). 1. (10%) As shown in the above figure, set up a 2-port Linux PC Router, a Linux PC as FTP client and a Linux PC as FTP server (you need two Ethernet cards and two crossover UTP cables).
E N D
Computer NetworksProject #1 - Linux Router and Berkeley Socket Programming (20%) 1. (10%) As shown in the above figure, set up a 2-port Linux PC Router, a Linux PC as FTP client and a Linux PC as FTP server (you need two Ethernet cards and two crossover UTP cables). 2. (20%) Write a FTP client and a FTP server program using Berkeley sockets on Linux. • The FTP client can download three different files from the FTP server concurrently, which means you have to design a TCP concurrent server (Hint: use fork() and backlog = 3). Linux- PC-3: 2-Port Router Cross-over Cross-over Linux PC2: FTP server Linux PC1: FTP client 100 Mbps Ethernet 100 Mbps Ethernet
3. (70%) Use tcpdump and tcpstat to measure the following performance parameters. I. On the Linux router: (1) (10%) Measure the average packet forwarding delay at the router. The packet forwarding delay is defined from the time when an IP packet arrives at the IP input queue till the time when the packet is ready to leave the IP output queue (Hint: use tcpdump). (2) (10%) Count the number of IPv4 packets and average packet sizes forwarded by the router for the three different files, respectively (Hint: use tcpstat). II. On the FTP client and the FTP server: (1) (10%) Measure the end-to-end file transmission delay and average throughput (Mbps) for the three different files from the FTP server to the FTP client (Hint: use tcpstat). (2) (20%) Discuss the relationship between the end-to-end file transmission delay versus the average packet forwarding delay. Do the same discussions on the average throughput. (3) (20%) Use hand calculation to find out the end-to-end file transmission delay and average throughput and compare the results with your measurements. Are the numbers very close? If not, Identify those factors that may create the differences. Due Day:Demo on April 21, 22, 23, 2008. Report (15 pages) due before 5:30pm on April 23, 2008.