Lab Exercises for cnet

  1. Get BOOT and boot.c into your account. Run this simulation by typing "cnet BOOT".

  2. Find nodeinfo (a global variable) and CnetNodeinfo (its type) in cnet.h. Modify the function reboot_node() in boot.c to report as much about the node as you can.

  3. Read about cnet's topology files. Modify BOOT in any way you wish to get the hang of using the topology file options.

  4. Get UTOPIA, utopia.h, and utopia.c. Run UTOPIA.

  5. Read about cnet's command line options, in particular -X, -s, -T, and -M. Run "cnet -X -T -M 3 -s UTOPIA". Try "cnet -X -T -s UTOPIA", too. Any difference?

  6. Modify OnApplicationReady() in utopia.c to use CNET_write_physical() instead of CNET_write_physical_reliable(). What happens when you run it?

  7. Add a node to UTOPIA to make a triangular network. Using CNET_write_physical_reliable() again, can you figure a way to make sure each packet coming from each application layer arrives at its proper destination application layer? Try it. If you get your idea to work, think of a different idea and try that.

  8. Extra time? Read the description of cnet's functions.




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