Starting out with cnet
- Get my example topology file UTOPIA
and the corresponding source file
utopia.c. Read them both.
- Run UTOPIA on turing using the command "cnet -s -T -M 10 UTOPIA".
What do -s, -T, and -M 10 do? (Check the
cnet documentation.)
- Try messing with the link and node properties in UTOPIA (many options
are described in the documentation) and see how the
end-of-run statistics change.
- What do the various statistics reported mean? Can you make them
change in predictable ways by modifying either UTOPIA or utopia.c?
- Get Chris McDonald's example topology file
TICKTOCK and source file
ticktock.c. Read them.
- Run the TICKTOCK example. Why does it stutter? Can you make
it stop?
- What's missing from the end-of-run report, as compared to the
reports you got for UTOPIA? Why?
- Rewrite ticktock.c to make the nodes pass a "token" back and
forth. For example, they could pass a counter n from one to the other.
Whenever node 0 gets the counter with value n from its physical
layer, it prints "tick n" and, say, adds 2 to n before sending
the counter back to node 1. Node 1 can say "tock n" upon receipt,
and add 3 to n before shipping it back. Or whatever. Give it a whirl.
Jeff Ondich,
Department of Mathematics and Computer Science,
Carleton College, Northfield, MN
55057,
(507) 646-4364,
jondich@carleton.edu