1) We have GBN where N=4 , total packets to transmit =10 , every 4th packet lost so #total transmission to send those 10 packets...
after sending first 3 packets successfully the sliding window would be 4567 , now as packet 4 lost , sliding window won't slide until source get ACk for packet 4 ,after timeout for ACKWAIT , as it's GBN , sender will send 4567 again,
Now as it's given every 4th packet is lost , so here last 5,6,7 and now this 4 make 4th 4th packet so again packet number 4 lost , sender agian send 4567 , again 4th packet after last unsuccessful transmission is packet number 4 , which will get lost , so in that way every time 4th packet is packet number 4 ,so it will go on...never stop...
123(4*)567 (4*)567 (4*)567 (4*)567 (4*)567 (4*)567 (4*)567 (4*)567..............
2) here very 3rd packet will lost
so after losing 3 rd packer the sliding window will be 3456 , so sender will send again , in last 3456 window 3 and 6 got lost , but as whole sliding window will be resend , so no problem to take care about lost of 6 ....now 3456 is sent but here after last 6 lost the 3rd packet is packet number 5 , and at that time sliding window is 5678 so send 5678 , here ,after last lost packet (5) next 3rd packet is packet number 8, that will lost , but as 5678 are resent , 8 is ultimately retransmitted , so no problem , now after 8 the next 3rd packet is 7 , which will lost , now SW is 78910, next 3rd packet is 10 which will too lost but it's okay as 78910 resent ,so eventually 10 resent with net SW , but here next 3rd packet is packet number 9 , that will lost but SW now is 910 so send it...but here 3 packet after last loss is 10 number packet , so sender will send it again ...
12(3*)45(6*) 34(5*)67(8*) 56(7*)89(10*) 78(9*)10 9(10*) 10