A mean-field limit for a class of queueing networks