



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




**Group Number: ________ Member Names: _________________________ _________________________
Date Issued: Tuesday September 13, 2005 Date Due: Tuesday September 20, 2003 Last Edited: 12/05/**
Finish a UDP sockets programs to transmit and receive UDP datagrams. Analyze UDPand TCP network traffic using ethereal Linux network utility. Filter out specific information from ethereal using custom filters.
Before you start this lab, make sure that you can access NAS (refer to ECE4110 Lab 1). After you are sure that NAS is mounted and ready for access, perform the following steps to copy and extract the source code that you will need to understand, comment, and modify: $cd /mnt/nas/Lab3
At this point your programs should finished and ready to perform data transmission. The scenario to execute these programs is as follows:
To run under X Windows:
1. startx
Put IA measured on sender in this box Debug OFF at both sink and gen. Enter the maximum Mbps for the sink and gen.
Question: Show the math equation and answer to how many Mbits/sec you expect if you were to input a packet size of 500 bytes, zero variance and an inter-arrival time of 0.01 seconds Note: The debug mode for the udp programs produces some weird behavior since we got the new machines. If you’ll notice, the packet count for the sink and generator does not match if you let the simulation run long enough. This is probably due to the PC not being able to process incoming and outgoing packets and printing data to the screen. When you have completed this Sections I and II, demonstrate to the TA the maximum number of Mbits/sec you can generate with a packet size of 1,000 bytes, and a packet size variance of zero. Make sure the TA records the maximum number of Mbits/sec that you demonstrated. Look in the Turn-in list for any deliverables at this point in the lab.
For this part of the lab, you will need to run udp_gen on ‘gatechftp,’ which is a machine that will be used as the sender side. To make sure your results don’t get mixed up with those of other students, you
Q2. Draw IP and UDP headers and label their field. Then, looking at the details of a packet captured by ethereal, fill in the corresponding values in hexadecimal. Make sure that you specify how many bits are used per field. Q3. Only for the IP header, double check by hand the checksum field (in binary).
For the rest of this section you will need to run your tcp_gen and tcp_sink programs from lab2 in addition to your udp_gen and udp_sink programs. To do this, you will need to open two more terminals. Then, use one of those terminals to telnet to gatechftp using the same username and password. The scenario will look like the one below. Your commands will look like this: $./udp_sink –p <your_port_number>