According to the invention there is provided a method of controlling an
optical communication system comprising an optical transmitter, an optical receiver
and an optical fiber interconnecting the optical transmitter and the optical receiver,
the method comprising determining the performance of the optical communication
system and controlling at least one setting parameter of the optical transmitter
according to the measured performance.