In lab Assignment 1 - Measuring the Internet


This lab will consist of two parts. The first part will introduce the basic command of traceroute and how to use it. The second part will be an introduction to TCP Socket programming.


Part 1

Traceroute to 2 different locations

Copy all the traceroute results to a file and interpret them.
Then traceroute to www.google.com, and identify each hop by using whois command. Note that whois takes IP addresses as parameter. Append the results to previous file.

Turn-in the file before the end of lab.


Part 2

An introduction to TCP Socket Programming can be found in the following links Introduction to TCP Socket Programming Part I and Introduction to TCP Socket Programming Part II.
Of course there are many links in Internet that you can find useful tutorials. Just Google it

1) We will see the simple application of an Echo Client/Server

2) Implement both Client/Server parts of a communication such that the Client will send two integers and their sum to the Server. The Server will then reply with an answer if the Client's sum is correct or not and with the correct sum.

Client may take the three integers as an argument input to the program or in run-time from the user. After receiving the reply of the Server, Client will show the user final result.

Tip 1: Just modify echoServer and echoClient to complete the assignment.

Tip 2: You can use sprintf() function to convert an integer to a string, atoi() function to convert a string to an integer and strtok() to cut a string into substrings.

After you finish the programs, you have to raise your hand and let the TA check you out.

Turn-in the Client and Server files before the end of lab