On Wed, 25 Feb 2004, Adrian Chadd wrote:
> Ok. I've tested it and, thus far, I think I've got all the cases
> right. I'm having trouble convincing nc to actaully _do_ half-closed
> connections - instead, I have to ctrl-C it partway through a request.
Works here.. using the procedure described with netcat-1.10.
09:32:38.806599 10.2.1.252.57623 > 10.1.1.1.http: S 2047757373:2047757373(0) win 5840 <mss 1460,sackOK,timestamp 288646975 0,nop,wscale 0> (DF)
09:32:38.806952 10.1.1.1.http > 10.2.1.252.57623: S 2016865998:2016865998(0) ack 2047757374 win 5792 <mss 1460,sackOK,timestamp 502971659 288646975,nop,wscale 0> (DF)
09:32:38.807015 10.2.1.252.57623 > 10.1.1.1.http: . ack 1 win 5840 <nop,nop,timestamp 288646975 502971659> (DF)
09:32:38.808643 10.2.1.252.57623 > 10.1.1.1.http: P 1:34(33) ack 1 win 5840 <nop,nop,timestamp 288646976 502971659> (DF)
09:32:38.808942 10.1.1.1.http > 10.2.1.252.57623: . ack 34 win 5792 <nop,nop,timestamp 502971660 288646976> (DF)
09:32:38.809280 10.2.1.252.57623 > 10.1.1.1.http: F 34:34(0) ack 1 win 5840 <nop,nop,timestamp 288646976 502971660> (DF)
09:32:38.848063 10.1.1.1.http > 10.2.1.252.57623: . ack 35 win 5792 <nop,nop,timestamp 502971664 288646976> (DF)
09:32:40.858851 10.1.1.1.http > 10.2.1.252.57623: P 1:198(197) ack 35 win 5792 <nop,nop,timestamp 502971865 288646976> (DF)
09:32:40.858937 10.2.1.252.57623 > 10.1.1.1.http: . ack 198 win 6432 <nop,nop,timestamp 288647181 502971865> (DF)
09:32:40.860563 10.1.1.1.http > 10.2.1.252.57623: F 198:198(0) ack 35 win 5792 <nop,nop,timestamp 502971865 288647181> (DF)
09:32:40.860626 10.2.1.252.57623 > 10.1.1.1.http: . ack 199 win 6432 <nop,nop,timestamp 288647181 502971865> (DF)
Also works with the busybox netcat.
If you ctrl-C then you fully close the connection, resulting in RST and
connection aborted if the server tries to respond..
09:33:47.418069 10.2.1.252.57624 > 10.1.1.1.http: S 2117801092:2117801092(0) win 5840 <mss 1460,sackOK,timestamp 288653836 0,nop,wscale 0> (DF)
09:33:47.418447 10.1.1.1.http > 10.2.1.252.57624: S 2078937221:2078937221(0) ack 2117801093 win 5792 <mss 1460,sackOK,timestamp 502978521 288653836,nop,wscale 0> (DF)
09:33:47.418510 10.2.1.252.57624 > 10.1.1.1.http: . ack 1 win 5840 <nop,nop,timestamp 288653837 502978521> (DF)
09:33:47.420079 10.2.1.252.57624 > 10.1.1.1.http: P 1:34(33) ack 1 win 5840 <nop,nop,timestamp 288653837 502978521> (DF)
09:33:47.420378 10.1.1.1.http > 10.2.1.252.57624: . ack 34 win 5792 <nop,nop,timestamp 502978521 288653837> (DF)
09:33:47.420734 10.2.1.252.57624 > 10.1.1.1.http: F 34:34(0) ack 1 win 5840 <nop,nop,timestamp 288653837 502978521> (DF)
09:33:47.458482 10.1.1.1.http > 10.2.1.252.57624: . ack 35 win 5792 <nop,nop,timestamp 502978525 288653837> (DF)
09:33:49.468613 10.1.1.1.http > 10.2.1.252.57624: P 1:198(197) ack 35 win 5792 <nop,nop,timestamp 502978726 288653837> (DF)
09:33:49.468689 10.2.1.252.57624 > 10.1.1.1.http: R 2117801127:2117801127(0) win 0 (DF)
Regards
Henrik
Received on Thu Feb 26 2004 - 01:36:57 MST
This archive was generated by hypermail pre-2.1.9 : Mon Mar 01 2004 - 12:00:04 MST