A simulator for networking research