Figure 11.45 shows a state diagram to simulate the behavior of Stop-and-Wait $\triangle \mathrm{RQ}$ at the receiver site. (figure can't copy)
The states have a value of $R_n(0$ or 1$)$. The arrows shows the transitions. Explain the events that cause the two transitions labeled $A$ and $B$.