Sojourn-time based active queue management library