I see some HTTP response that are occasionally being decoded by wireshark as TCP segments, as opposed to HTTP Response OK's. The total response spans approx 300 packets (450KBytes). Would such a large response hinder Wiresharks ability to decode/reassemble properly ?? If so, what is the limit ? If not, what is the likely reason for such behavior ?? thanks, wk asked 13 Mar '12, 12:52 wakelt edited 13 Mar '12, 14:22 grahamb ♦ |
One Answer:
Check out if there are any TCP retransmissions, out-of-order packets, or other "oddities" in the TCP sequence that has the HTTP response. Wireshark frequently has trouble with those; see for example bug 4715. (Of course any holes the TCP stream would also cause a problem.) One thing you can try is to ignore (Edit->Ignore Packet) the troublesome TCP packets. [If this answers your question, don't forget to stop by and Accept the answer.] answered 13 Mar '12, 15:03 JeffMorriss ♦ |
Thanks Jeff..I'll take a look at the capture in the morning.
Assuming it has something to do with retransmissions, is there a way to tell wireshark to ignore ALL retransmitted packets so that the HTTP response can be properly reassembled ??
I realize that if packets are out-of-order, I may be out of luck :-)
Is there a api somewhere that I could use to write a dissector for wireshark that takes into consideration these type of network events ?? Or is there an existing tool I can feed the cap file into that does the reassembly even under these circumstances ?
thanks again, wk
[I converted your Answer into a Comment--please see the FAQ.]
To ignore all the retransmissions, you'd probably have to filter out all the retransmissions (tcp.analysis.retransmission) and then ignore each packet.
Out-of-order packets would be a lot more work; I think technically 'editcap' can move packets around, but that would be a pain.
I'm not aware of another tool that would do it better, but I don't generally work with TCP much, so I wouldn't know. The bugs exist to make Wireshark do it better, but there are a lot of bugs and not so many developers and time...