Lab Exercises for cnet
- Get BOOT and
boot.c into your account. Run
this simulation by typing "cnet BOOT".
- 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.
- Read about cnet's
topology files.
Modify BOOT in any way you wish to get the hang of using the
topology file options.
- Get UTOPIA,
utopia.h, and
utopia.c.
Run UTOPIA.
- 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?
- Modify OnApplicationReady() in utopia.c to use
CNET_write_physical() instead of CNET_write_physical_reliable().
What happens when you run it?
- 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.
- 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