What is send as ack in sliding window? The next packet which the sender want to received or the packet right now sender received?
I think the sender send the ack as the packet it has got right now. ?
In sliding window protocol, sender's window size is $'n'.$ Sender sent first $'n$' frames. Then he received first acknowledgment as ACK $'n'$. What frame(s) has receiver accepted$?$
$(A)$ Frame $n$
$(B)$ Frame $n-1$
$(C)$ Frames $0$ to $n$
$(D)$ Frames $0$ to $n-1$