This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

how to calculate ACK

0

Given the 3 frames how is the acknowledgment receipt of 2700 calculated?

Transmission Control Protocol, Src Port: http (80), Dst Port: 52545 (52545), Seq: 1, Ack: 973, Len: 1460

Transmission Control Protocol, Src Port: http (80), Dst Port: 52545 (52545), Seq: 1461, Ack: 973, Len: 1239

Transmission Control Protocol, Src Port: 52545 (52545 ), Dst Port: http(80), Seq: 973, Ack: 2700, Len: 0

asked 14 Mar '12, 07:42

dingdong123's gravatar image

dingdong123
6114
accept rate: 0%

edited 14 Mar '12, 07:43


One Answer:

2

Simple: Sequence No from the second packet plus its length: 1461 + 1239 = 2700.

answered 14 Mar '12, 07:48

Jasper's gravatar image

Jasper ♦♦
23.8k551284
accept rate: 18%

thanks. Also what is the explanation for the 3rd frames length being 0?

(14 Mar '12, 07:49) dingdong123

Also simple: its only purpose is to acknowledge the first two frames, but the node has no own content to transmit. In that case the TCP payload length is zero - a quite common thing to observe.

(14 Mar '12, 08:16) Jasper ♦♦