TCP Sliding window question

fluk3dfluk3d Member Posts: 141 ■■■□□□□□□□
Question: When using sliding windows for a TCP Transmission if a sender has a windows size of 3 and sends out segments 1,2,3 and the reciever returns and ack of 3 what is the next segment sent to the reciever?

There is where i'm confused, wouldn't the next segment be 4?

windows size = 3

send 1
>
send 2
>
send 3
>

<
ack 3
"Imagination is more important than knowledge." - Albert Einstein

Comments

  • eleguaelegua Member Posts: 282
    fluk3d wrote:
    Question: When using sliding windows for a TCP Transmission if a sender has a windows size of 3 and sends out segments 1,2,3 and the reciever returns and ack of 3 what is the next segment sent to the reciever?

    There is where i'm confused, wouldn't the next segment be 4?

    windows size = 3

    send 1
    >
    send 2
    >
    send 3
    >

    <
    ack 3

    If the receiver sent back ack 3, the sender has to send segment 3 and 4, if the receiver sent back ack 4 then the sender will send the next 3 segments.

    In this case the windows side is for only 2 segments.

    Hope this help. icon_wink.gificon_wink.gif
  • fluk3dfluk3d Member Posts: 141 ■■■□□□□□□□
    Ah okay so I did some further reading when the reciever sends back and ack of 3 it is telling the sender which segment it is expecting to recieve in this case it send segment 1 2 3 and ack 3 so it needs to resend 3

    correct me if im wrong
    "Imagination is more important than knowledge." - Albert Einstein
Sign In or Register to comment.