Apparatus for digital transmissions over optical fibers