CS337
Midterm 2
Ondich
Due in class Monday, March 6, 2000

This exam is open-book, open-notes, open-computer, open-Internet, but closed-other-people. Have fun.

  1. (20 points) The cnet program flood.c implements a very simple-minded flooding algorithm. There is a globally defined maximum hop count. Whenever a node receives a frame, it increments the frame's hop count. If the resulting hop count is larger than the maximum, the node discards the frame. Otherwise, the node sends a copy of the frame to all its neighbors.

    This implementation tests its algorithm by allowing node 0 to flood a single frame, after which no more original frames are sent. When each node receives the frame for the first time, it saves a copy.

    Use flood.c and the topology file MINNESOTA to answer the following questions.



  2. (20 points) Suppose I am logged onto hamming.mathcs.carleton.edu, and I type (as I often used to before the Web) "ftp ftp.apple.com". Suppose further that ftp.apple.com is not in my DNS cache, that my IP routing table is as you will find it by logging onto hamming and typing "netstat -r", that my ARP cache is empty (by some bizarre and disturbing Act of the Test Writer), and that there exist on hamming some sort of software "entities" corresponding to and named after IP and TCP.



  3. (12 points) The protocol ICMP is described in RFC 792. Answer the following questions about ICMP.







Jeff Ondich, Department of Mathematics and Computer Science, Carleton College, Northfield, MN 55057, (507) 646-4364, jondich@carleton.edu