ComSim is a framework for communication system simulation