Simulating the behavior of a sliding window protocol