Dynamic physical layer equalization in optical communication networks