This paper presents the design and implementation of an all optical networks simulator. It has been developed for teaching purposes through a minimum-deflection routing algorithm applied on a mesh network. Using a Poisson distribution, the packets arrive into the system to simulate data flow. The simulator is highly configurable. Each node may serve as an input (with its accessory queue), an output or both. The amount and the location of these nodes can be adjusted, as well as the number of iterations carried out by the simulation, and the packet generation. This allows the user to evaluate and grasp quite a variety of simulation scenarios.