QoSP: A priority-based queueing mechanism in software-defined networking environments