Link margin can be optimized using ACM by dynamically changing the modulation scheme and forward error correction (FEC) code rate based on the channel conditions.