1 / 2

Computer Networks Project #1 - Linux Router and Berkeley Socket Programming (20%)

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).

tosca
Download Presentation

Computer Networks Project #1 - Linux Router and Berkeley Socket Programming (20%)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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

  2. 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.

More Related