DOC PREVIEW
CMU 15441 Computer Networking - assignment

This preview shows page 1-2 out of 7 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 7 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

15-441 Computer NetworksHomework #3Out: Oct 27thDue: Nov 10th, 2005, Noon Wean Hall 7112Purpose: This assignment gives you experience with what actually happens on actual network wires. In order to achieve this we will use a packet sniffing and network analysis tool called "ethereal" and its terminal mode counterpart “tethereal”. "Ethereal" will allow you to monitor and analyze network packets on the LAN in the CS 441 lab. By capturing data and examining packets you will become more familiar with TCP/IP, and how layered protocols are represented within packets. Please do this lab on your own. DO NOT WORK IN GROUPS!! You can ask the TAs or other students for help, but you should do the work yourself. I. Preparing for the lab:Follow the instructions below to set-up your account on the netclass machines (machines in the CS441 lab). You won’t be able to log in if you don’t follow everything completely:- Create a directory in your Andrew home directory called 15-441.- Now you need to give access to campusnet so type the following:a. >fs sa /afs/andrew.cmu.edu/usr/<your_username> system:campusnet lb. >fs sa /afs/andrew.cmu.edu/usr/<your_username>/15-441 system:campusnet rl- Create a file called .klogin inside the 15-441 folder which contains: [email protected] You can not use unsecure telnet to connect to netclass machines. Therefore, either use Nifty Telnet or use ssh. The username you will use will be [email protected] not just your Andrew-id. Therefore, if you use sshdon’t forget to use the “– l” flag with the correct username as otherwise, ssh will try to use just your Andrew-id and therefore you won’t be able to login.- If you have any problems with logging in, send email to Sachin Kulkarni –[email protected]. Setup for this LabThe topology of the CS441 lab is shown below: (all end with .intro.cs.cmu.edu) Outside World netclass-2 netclass-3Outside World netclass-5 Outside World Outside WorldThe lab consists of 12 PCs as shown with 2 of them (11 and 12) configured as routers and the rest configured as endpoints. As can be seen the PCs are connected to form a LAN as well as being connected to the outside world (that’s how you can telnet in). This is achieved by the use of 2 interfaces on each PC – one connected to local LAN and one to the outside world. The traffic going on in the LAN is considered private traffic – it is isolated from the outside world. In order to login to these machines use your andrew-id and password and don’t log on to 11 and 12.III. Determining important hardware addressesThe hardware addresses on our LAN are 6 byte Ethernet addresses. You will want to know two hardware addresses on the LAN: the address of the PC on which you are running the Analyzer ("ethereal") and a target machine (Netclass-11 or Netclass-12) which are emitting packets to the other PCs on the LAN and from which you will be sniffing the network traffic. Note: If you get a "command not found" message when attempting to use the "ping", "arp" and "traceroute" commands or any other command, then they are not in your command search path. You can get around this by using the full pathnames ("/usr/sbin/ping or /sbin/arp or /usr/sbin/traceroute or /sbin/route") on the command line. For finding help about a certain command use “man <command name>”.netclass-1netclass-4netclass-6netclass-7netclass-8netclass-9netclass-10netclass-11netclass-12EXERCISES:a) Telnet to a pc in the LAN (other than 11 or 12) using your username and password. Use the ping command to contact Netclass-12. Ping will cause your local host to create an entry in the arp cache for each of these hosts. Find the IP and Hardware addresses of "netclass-12" (hint: lookup the arp command)b) Now we want to get the Ethernet hardware address and the IP (inet) address for the Ethernet interfaces on Netclass-8. (hint: look up ifconfig)c) Determine which ethernet card is used for the default route (use the man pages as a guide to find the command to use) IV. Capturing and Viewing packetsOpen up a terminal window. Since you don’t have write access to the directories other than the local temp go to “/tmp”. Create a subfolder with your username. You will create your dumpfile (the file which will contain the captured packets) in that subfolder. We will capture the packets using “tethereal” which is in “/usr/bin”. First run tethereal –help to see the command line options. We want to capture 500 packets from the external traffic (hint: there are 2 Ethernet cards on each PC (eth0 and eth1). You need to determine which one is dealing with the LAN traffic and which one is connected outside (which would mean you will see telnet packets when you look at the dump) Save the packets you sniff in a file (so that we can look at them with a graphical interface). Now start up "/usr/bin/ethereal" (make sure your X-Server is running). “Ethereal” will ask for the root password – just choose “Run unprivileged”. When "ethereal" is started up it will have three empty panes. Go to File -> Open and open up the capture file.EXERCISES:Select the "+" sign in front of each of the protocol layers to get more detail about each protocol header. a) View the captured broadcast packet data. Select the "Source" column to sort the packets by the source address. What is the most common source address? b) What protocols (ncp, sap, tcp, icmp, arp, udp, etc...) do you see? (HINT: select the "Protocol" column to sort by protocol) c) Which protocol is most common in your captured packets? d) Select a packet in the top frame that is labeled as a TCP packet. Determine the following values for this packet Ethernet destination addressIP source addressIP TTL TCP source porte) Select the "header length" field of the IP header. This should cause a byte in the raw data pane to be highlighted. What does this byte have and what does it mean?V. TracerouteTraceroute is a program that allows you to see the routers between your machine and a remote host. IP packets have a time-to-live field which gets decremented as the packet passes through intermediate nodes on the way to its final destination. If the time-to-live count ever gets decremented to 0, the packet is discarded and an ICMP error message is returned to the sending host. Traceroute uses this


View Full Document

CMU 15441 Computer Networking - assignment

Documents in this Course
Lecture

Lecture

14 pages

Lecture

Lecture

19 pages

Lecture

Lecture

14 pages

Lecture

Lecture

78 pages

Lecture

Lecture

35 pages

Lecture

Lecture

4 pages

Lecture

Lecture

4 pages

Lecture

Lecture

29 pages

Lecture

Lecture

52 pages

Lecture

Lecture

40 pages

Lecture

Lecture

44 pages

Lecture

Lecture

41 pages

Lecture

Lecture

38 pages

Lecture

Lecture

40 pages

Lecture

Lecture

13 pages

Lecture

Lecture

47 pages

Lecture

Lecture

49 pages

Lecture

Lecture

7 pages

Lecture

Lecture

18 pages

Lecture

Lecture

15 pages

Lecture

Lecture

74 pages

Lecture

Lecture

35 pages

Lecture

Lecture

17 pages

lecture

lecture

13 pages

Lecture

Lecture

21 pages

Lecture

Lecture

14 pages

Lecture

Lecture

53 pages

Lecture

Lecture

52 pages

Lecture

Lecture

40 pages

Lecture

Lecture

11 pages

Lecture

Lecture

20 pages

Lecture

Lecture

39 pages

Lecture

Lecture

10 pages

Lecture

Lecture

40 pages

Lecture

Lecture

25 pages

lecture

lecture

11 pages

lecture

lecture

7 pages

Lecture

Lecture

10 pages

lecture

lecture

46 pages

lecture

lecture

7 pages

Lecture

Lecture

8 pages

lecture

lecture

55 pages

lecture

lecture

45 pages

lecture

lecture

47 pages

lecture

lecture

39 pages

lecture

lecture

33 pages

lecture

lecture

38 pages

lecture

lecture

9 pages

midterm

midterm

16 pages

Lecture

Lecture

39 pages

Lecture

Lecture

14 pages

Lecture

Lecture

46 pages

Lecture

Lecture

8 pages

Lecture

Lecture

40 pages

Lecture

Lecture

11 pages

Lecture

Lecture

41 pages

Lecture

Lecture

38 pages

Lecture

Lecture

9 pages

Lab

Lab

3 pages

Lecture

Lecture

53 pages

Lecture

Lecture

51 pages

Lecture

Lecture

38 pages

Lecture

Lecture

42 pages

Lecture

Lecture

49 pages

Lecture

Lecture

63 pages

Lecture

Lecture

7 pages

Lecture

Lecture

51 pages

Lecture

Lecture

35 pages

Lecture

Lecture

29 pages

Lecture

Lecture

65 pages

Lecture

Lecture

47 pages

Lecture

Lecture

41 pages

Lecture

Lecture

41 pages

Lecture

Lecture

32 pages

Lecture

Lecture

35 pages

Lecture

Lecture

15 pages

Lecture

Lecture

52 pages

Lecture

Lecture

16 pages

Lecture

Lecture

4 pages

lecture

lecture

27 pages

lecture04

lecture04

46 pages

Lecture

Lecture

46 pages

Lecture

Lecture

13 pages

lecture

lecture

41 pages

lecture

lecture

38 pages

Lecture

Lecture

40 pages

Lecture

Lecture

25 pages

Lecture

Lecture

38 pages

lecture

lecture

11 pages

Lecture

Lecture

42 pages

Lecture

Lecture

12 pages

Lecture

Lecture

36 pages

Lecture

Lecture

46 pages

Lecture

Lecture

35 pages

Lecture

Lecture

34 pages

Lecture

Lecture

9 pages

lecture

lecture

49 pages

class03

class03

39 pages

Lecture

Lecture

8 pages

Lecture 8

Lecture 8

42 pages

Lecture

Lecture

20 pages

lecture

lecture

29 pages

Lecture

Lecture

9 pages

lecture

lecture

46 pages

Lecture

Lecture

12 pages

Lecture

Lecture

24 pages

Lecture

Lecture

41 pages

Lecture

Lecture

37 pages

lecture

lecture

59 pages

Lecture

Lecture

47 pages

Lecture

Lecture

34 pages

Lecture

Lecture

38 pages

Lecture

Lecture

28 pages

Exam

Exam

17 pages

Lecture

Lecture

21 pages

Lecture

Lecture

15 pages

Lecture

Lecture

9 pages

Project

Project

20 pages

Lecture

Lecture

40 pages

L13b_Exam

L13b_Exam

17 pages

Lecture

Lecture

48 pages

Lecture

Lecture

10 pages

Lecture

Lecture

52 pages

21-p2p

21-p2p

16 pages

lecture

lecture

77 pages

Lecture

Lecture

18 pages

Lecture

Lecture

62 pages

Lecture

Lecture

25 pages

Lecture

Lecture

24 pages

Project

Project

20 pages

Lecture

Lecture

47 pages

Lecture

Lecture

38 pages

Lecture

Lecture

35 pages

Roundup

Roundup

45 pages

Lecture

Lecture

47 pages

Lecture

Lecture

39 pages

Lecture

Lecture

13 pages

Midterm

Midterm

22 pages

Project

Project

26 pages

Lecture

Lecture

11 pages

Project

Project

27 pages

Lecture

Lecture

10 pages

Lecture

Lecture

50 pages

Lab

Lab

9 pages

Lecture

Lecture

30 pages

Lecture

Lecture

6 pages

r05-ruby

r05-ruby

27 pages

Lecture

Lecture

8 pages

Lecture

Lecture

28 pages

Lecture

Lecture

30 pages

Project

Project

13 pages

Lecture

Lecture

11 pages

Lecture

Lecture

12 pages

Lecture

Lecture

48 pages

Lecture

Lecture

55 pages

Lecture

Lecture

36 pages

Lecture

Lecture

17 pages

Load more
Download assignment
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view assignment and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view assignment 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?