Consider a buffer, in which every second the number of packets increases by 1 with probability $.4$ and decreases by 1 with probability $.6$. Currently there are $n$ packets in the router. Calculate the expected amount of time to empty the buffer.
2026-03-28 13:59:01.1774706341
Calculate average time to empty the router
384 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
A formal argument: Consider a random walk on the integers that jumps to the left with probability $q$ and to the right with probability $p$ where $p+q=1$ and $q>p$.
Let $e$ be the expected number of jumps to hit the state to the left of the starting position. First step analysis says that $e=1+p(e+e)$, so that $e=1/(1-2p)$.
The expected number of steps to hit state 0 starting at $n$ is therefore $n/(1-2p)$. For $p=.4$, this gives the answer $5n$.