@Hanane Saidi: please do not recommend NS2 for new work. That simulator has been deprecated over a decade ago.
This deprecation was for good reason, related to a number of performance issues and memory leaks. That alone is enough to use any other state of the art simulator, but results from NS2 are now widely considered unreliable, because the modules in NS2 obviously also have not evolved with time, and therefore recent improvements in MAC and PHY layers are not present in those modules.