A simple network simulator