A router comprising an interface module (IM), having an optical path and
an electrical path and a speed sensor coupled between an input of the
router and an input of the IM. The speed sensor is adapted to receive a
packet and detect a speed of the IM connection and in response to the
speed of the IM connection being above a threshold value, the speed
sensor provides the packet to the optical path of the IM and in response
to the relative speed being below the threshold value, the speed sensor
provides the packet to the electrical path of the IM.