Simulator for network code