Optimizing sensor networks involves addressing a wide range of issues
steaming from limited energy reserves, computation power, communication capabilities, and self-managing sensor nodes. The ns-2 simulation environment is a flexible tool for network engi