Abstract: Systems, methods, and software for automatically optimizing QoS configuration in networking equipment. A network device measures current line metric values associated with a network connection of the device and compares the current line metric values to previously measured values to determine whether there has been a material change in a line metric value. If a material change in a line metric value has occurred, new QoS settings are computed for the network device based on the current line metric values measured, and the new QoS settings are applied to the QoS functions of the network device. The measuring, comparing, computing, and applying steps are repeated on a periodic basis in order to keep the QoS settings optimized to changing network conditions.