2. Two nodes A and B are using a sliding-window protocol with a 3-bit sequence number with the window size 7 for flow control. Assuming that A is transmitting and B is receiving frames, show a diagram including the window sizes and positions for each event described below: (10%)
a) Both A and B initializes the window size (before A sends any frames).
b) After A sends frames 0,1,2,3,4,5, A receives acknowledgement RR2 from B.
c) A sends frame 6, but it receives RR2 again from B.
d) A sends all remaining frames in the window.
A
01234567012345
B
01234567012345