Bi-directional transmission using loopback and a spectrally-filtered modelocked laser