[Ns-bugs] [Bug 426] TCP: close does not send RST

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Sun Jun 28 22:05:56 PDT 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=426





--- Comment #7 from Tom Henderson <tomh at tomh.org>  2009-06-29 01:05:56 EDT ---
Created an attachment (id=505)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=505)
test case

If I close the socket while the sender is sending data, and I use an NSC TCP,
here is the (expected) behavior:

0.160000 IP 10.1.2.2.50000 > 10.1.3.1.51089: F 1:1(0) ack 19865 win 1448
<nop,nop,timestamp 160 129>
0.189460 IP 10.1.3.1.51089 > 10.1.2.2.50000: P 19865:21313(1448) ack 1 win 183
<nop,nop,timestamp 168 147>
0.189460 IP 10.1.2.2.50000 > 10.1.3.1.51089: R 5177816:5177816(0) win 0
0.189926 IP 10.1.3.1.51089 > 10.1.2.2.50000: P 21313:21841(528) ack 1 win 183
<nop,nop,timestamp 168 147>
0.189926 IP 10.1.2.2.50000 > 10.1.3.1.51089: R 5177816:5177816(0) win 0

If I run this without NSC, I see:

0.160000 IP 10.1.2.2.50000 > 10.1.3.1.49153: F 1:1(0) ack 537 win 65535
0.200134 IP 10.1.3.1.49153 > 10.1.2.2.50000: . ack 2 win 65535
0.261092 IP 10.1.2.2.50000 > 10.1.3.1.49153: . ack 537 win 65535
0.302084 IP 10.1.3.1.49153 > 10.1.2.2.50000: . 537:1073(536) ack 2 win 65535
0.302084 IP 10.1.2.2.50000 > 10.1.3.1.49153: . ack 1073 win 65535
0.302547 IP 10.1.3.1.49153 > 10.1.2.2.50000: . 1073:1609(536) ack 2 win 65535
0.302547 IP 10.1.2.2.50000 > 10.1.3.1.49153: . ack 1609 win 65535
0.343076 IP 10.1.3.1.49153 > 10.1.2.2.50000: . 1609:2145(536) ack 2 win 65535

i.e., the sink sends a FIN, but has not closed the socket for reading, and
never sends a reset.


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list