Credit-based fair queueing