What protocol do you want to simulate? At what layer? You should be able to code a simulation up depending on which protocol you want to simulate.
You might also want to do a search into network simulation tools. I haven't used any, but I've heard of omnet and ns-2 being fairly common.