Optimization of an optical fiber link and simulation using an optical resonator