Algorithms for Improving QoS in Optical Networks