C code to simulate Transparent Optical Packet Switching (TOPS) mesh networks.