Optical switch emulation in programmable software router testbed