A method, performed by an Optical Link Management Function, for obtaining an optical power level for an optical link between a first optical transformation module and a second optical transformation module, wherein the optical link is capable of carrying optical transmissions transferable between the first and second optical transformation modules, wherein the first optical transformation module is capable of converting electrical signals to the optical transmissions, wherein a second optical transformation module is capable of converting the optical transmissions to further electrical signals, wherein the first optical transformation module is accessible via a first interface for handling at least the optical power level of the optical transmissions, wherein the method comprising:
- sending, to a first unit connected to the first optical transformation module, a first message instructing the first unit to feed a set of optical transmissions representing at least one bit pattern onto the optical link by the first optical transformation module;
- sending, to the first optical transformation module via the first interface, a second message instructing the first optical transformation module to transmit the set of optical transmissions at optical power levels ranging from a first optical power level to a second optical power level;
- sending, to a second unit, a third message instructing the second unit to register successful or unsuccessful decoding of the set of optical transmissions based on the at least one bit pattern;
- receiving, from the second unit, a set of indications representing successful or unsuccessful decoding of the set of optical transmissions at the optical power levels;
- and
- finding, among the optical power levels, a lowest optical power level for which an optical transmission of the set on the optical link is successfully decoded by the second unit.