An SDN simulator