From: sadg@cucumber.demon.co.uk (Andrew Gabriel)
Subject: Re: setting the TCP PSH bit
Date: 1995/08/22 [thread overview]
Message-ID: <41bepd$p9@cucumber.demon.co.uk> (raw)
In-Reply-To: 419t7g$d4v@noao.edu
In article <419t7g$d4v@noao.edu>,
rstevens@noao.edu (W. Richard Stevens) writes:
>
> I think there's something else going on with your connection. Have you
> tried watching the packets with snoop to try and determine why your TCP
> has decided to stop sending?
>
> Rich Stevens
You are right. I checked with tcpdump and there is something wrong with
the connection.
Am I right in assuming this is a broken TCP problem, rather than
a faulty application? The only fault I could imagine in the application
is failure to read data, but I assume that the window would fill and
close off in this case, which is not the problem when things go
wrong below.
The TCP connection is between a Sun Solaris x86 2.4 and DEC Alpha
OSF1 2.0. The DEC's TCP seems a bit screwy even before things go
badly wrong, spewing out loads of duplicate ACKs at a time.
I attach the tcpdump taken by the DEC of the end of the transaction.
(I have editted first 4 chars of time out, shrunk hostnames, and
removed ttls (all 63 or 255) from output to shorten lines.
Annotations are my attempts at diagnosing the problem.
Further comments/corrections welcome.
At this point, things are still working I think:
(BTW, what does (DF) mean - not in the man page?)
1:14.419511 DEC > Sun: . ack 2191790 win 7027 (id 11616)
1:14.421463 Sun > DEC: . 2191790:2192818(1028) ack 227 win 33580 (DF) (id 16101)
1:14.423415 Sun > DEC: P 2192818:2193846(1028) ack 227 win 33580 (DF) (id 16102)
1:14.429271 Sun > DEC: . 2193846:2194874(1028) ack 227 win 33580 (DF) (id 16103)
1:14.430247 Sun > DEC: P 2194874:2195308(434) ack 227 win 33580 (DF) (id 16104)
1:14.434151 Sun > DEC: . 2195308:2196336(1028) ack 227 win 33580 (DF) (id 16105)
1:14.435127 Sun > DEC: P 2196336:2197364(1028) ack 227 win 33580 (DF) (id 16106)
1:14.442935 DEC > Sun: . ack 2197364 win 1453 (id 11617)
1:14.443911 DEC > Sun: . ack 2197364 win 1453 (id 11618)
1:14.443911 DEC > Sun: . ack 2197364 win 1453 (id 11619)
1:14.443911 DEC > Sun: . ack 2197364 win 1453 (id 11620)
1:14.444887 DEC > Sun: . ack 2197364 win 1453 (id 11621)
1:14.444887 DEC > Sun: . ack 2197364 win 1453 (id 11622)
1:14.445863 Sun > DEC: P 2197364:2198392(1028) ack 227 win 33580 (DF) (id 16107)
1:14.445863 Sun > DEC: P 2198392:2198817(425) ack 227 win 33580 (DF) (id 16108)
1:14.447815 DEC > Sun: . ack 2198817 win 0 (id 11623)
1:14.447815 DEC > Sun: . ack 2198817 win 0 (id 11624)
1:14.448791 Sun > DEC: . 2197364:2198817(1453) ack 227 win 33580 (DF) (id 16109)
This looks worrying, although not illegal:
1:14.448791 DEC > Sun: . ack 2198817 win 0 (id 11625)
1:14.467335 DEC > Sun: . ack 2198817 win 0 (id 11626)
1:14.468311 DEC > Sun: . ack 2198817 win 0 (id 11627)
1:14.469287 DEC > Sun: . ack 2198817 win 0 (id 11628)
1:14.469287 DEC > Sun: . ack 2198817 win 0 (id 11629)
1:14.470263 DEC > Sun: . ack 2198817 win 0 (id 11630)
1:14.471239 DEC > Sun: . ack 2198817 win 0 (id 11631)
1:14.471239 DEC > Sun: . ack 2198817 win 0 (id 11632)
1:14.472215 DEC > Sun: . ack 2198817 win 0 (id 11633)
1:14.488807 DEC > Sun: . ack 2198817 win 0 (id 11635)
1:14.488807 DEC > Sun: . ack 2198817 win 0 (id 11636)
1:14.489783 DEC > Sun: . ack 2198817 win 0 (id 11637)
1:14.489783 DEC > Sun: . ack 2198817 win 0 (id 11638)
1:14.490759 DEC > Sun: . ack 2198817 win 0 (id 11639)
1:14.490759 DEC > Sun: . ack 2198817 win 0 (id 11640)
1:14.491735 DEC > Sun: . ack 2198817 win 0 (id 11641)
1:14.491735 DEC > Sun: . ack 2198817 win 0 (id 11642)
1:14.507351 DEC > Sun: . ack 2198817 win 0 (id 11643)
1:14.508327 DEC > Sun: . ack 2198817 win 0 (id 11644)
1:14.508327 DEC > Sun: . ack 2198817 win 0 (id 11645)
1:14.509303 DEC > Sun: . ack 2198817 win 0 (id 11646)
1:14.510279 DEC > Sun: . ack 2198817 win 0 (id 11647)
1:14.510279 DEC > Sun: . ack 2198817 win 0 (id 11648)
and after 121ms silence, the Sun tries its luck with
some out-of-window data...
1:14.631303 Sun > DEC: P 2198817:2199420(603) ack 227 win 33580 (DF) (id 16111)
1:14.632279 Sun > DEC: P 2199420:2200277(857) ack 227 win 33580 (DF) (id 16112)
..which the DEC accepts within 1ms (I wounder what
happened to its window update packet?)
1:14.633255 DEC > Sun: . ack 2200277 win 64076 (id 11649)
1:14.633255 DEC > Sun: . ack 2200277 win 64076 (id 11650)
1:14.635207 Sun > DEC: P 2200277:2201150(873) ack 227 win 33580 (DF) (id 16113)
1:14.636183 DEC > Sun: . ack 2201150 win 63203 (id 11651)
1:14.636183 DEC > Sun: . ack 2201150 win 63203 (id 11652)
1:15.208695 Sun > DEC: P 2201150:2201164(14) ack 227 win 33580 (DF) (id 16114)
1:15.211623 DEC > Sun: . ack 2201164 win 63189 (id 11654)
1:15.341431 DEC > Sun: P 227:241(14) ack 2201164 win 63189 (id 11658)
1:15.398039 Sun > DEC: . ack 241 win 33580 (DF) (id 16119)
1:15.398039 DEC > Sun: . ack 2201164 win 63189 (id 11660)
1:15.405847 Sun > DEC: P 2201164:2201200(36) ack 241 win 33580 (DF) (id 16120)
And now things go wrong.
The DEC consistantly fails to ACK the 36 bytes of data from the Sun,
in spite of having ample window.
1:15.406823 DEC > Sun: . ack 2201164 win 63189 (id 11661)
1:15.600071 Sun > DEC: P 2201164:2201200(36) ack 241 win 33580 (DF) (id 16124)
1:15.601047 DEC > Sun: . ack 2201164 win 63189 (id 11665)
1:15.979735 Sun > DEC: P 2201164:2201200(36) ack 241 win 33580 (DF) (id 16125)
1:15.982663 DEC > Sun: . ack 2201164 win 63189 (id 11666)
1:15.983639 Sun > DEC: P 2201164:2201200(36) ack 241 win 33580 (DF) (id 16126)
1:15.984615 DEC > Sun: . ack 2201164 win 63189 (id 11667)
And things get worse.
The DEC consistantly fails to notice that the Sun has ACKed its 14
bytes.
1:16.556151 DEC > Sun: P 227:241(14) ack 2201164 win 63189 (id 11675)
1:16.557127 Sun > DEC: . ack 241 win 33580 (DF) (id 16134)
1:16.558103 DEC > Sun: . ack 2201164 win 63189 (id 11676)
1:16.729879 Sun > DEC: P 2201164:2201200(36) ack 241 win 33580 (DF) (id 16135)
1:16.731831 DEC > Sun: . ack 2201164 win 63189 (id 11677)
1:18.230167 Sun > DEC: P 2201164:2201200(36) ack 241 win 33580 (DF) (id 16136)
1:18.233095 DEC > Sun: . ack 2201164 win 63189 (id 11678)
1:19.557127 DEC > Sun: P 227:241(14) ack 2201164 win 63189 (id 11679)
1:19.558103 Sun > DEC: . ack 241 win 33580 (DF) (id 16137)
1:19.559079 DEC > Sun: . ack 2201164 win 63189 (id 11680)
1:21.230167 Sun > DEC: P 2201164:2201200(36) ack 241 win 33580 (DF) (id 16143)
1:21.230167 DEC > Sun: . ack 2201164 win 63189 (id 11686)
netstat on the Sun shows 36 bytes waiting to be sent, and
netstat on the DEC shows 14 bytes waiting to be sent. Both
netstats show large windows available, as indeed they are.
This argument continues for 5 minutes, at which point the higher
level application decides it's giving up waiting, and chops the
connection.
[comp.unix.osf.osf1 added to newsgroups.]
--
Andrew Gabriel Home: Andrew@cucumber.demon.co.uk
Consultant Software Engineer Work: Andrew.Gabriel@net-tel.co.uk
next parent reply other threads:[~1995-08-22 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <418hks$kr@cucumber.demon.co.uk>
[not found] ` <419t7g$d4v@noao.edu>
1995-08-22 4:00 ` Andrew Gabriel [this message]
1995-08-22 4:00 ` setting the TCP PSH bit W. Richard Stevens
1995-08-23 4:00 ` William
1995-08-23 4:00 ` Andrew Gabriel
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox