Optimal routing of customers with general independent interarrival times in simple deterministic networks