RPA: a Simple, Efficient and Flexible Policy for Input Buffered Switches