handle incoming traffic in a separate thread per input port