Restricted permutations and queue jumping

A connection between permutations that avoid 4231 and a certain queuing discipline is established. It is proved that a more restrictive queuing discipline corresponds to avoiding both 4231 and 42513, and enumeration results for such permutations are given.