I want to run a simulation for three-stage Clos Network in the field of packet switching. In every switching module, every packet from the input port will randomly go to output port, which will cause contention in output due to multiple packets to the same output. Therefore, a central controller is needed to make decision based on certain rules. How to implement this three-stage Clos Network as well as calculate mean delay caused by contention in NS2?
Thanks