[Ns-bugs] [Bug 248] Newer version of tcp-2way that exhibits an 'excess bytes' problem
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Jul 7 17:20:28 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=248
------- Comment #1 from evensky at dancer.ca.sandia.gov 2008-07-07 20:20 -------
Created an attachment (id=194)
--> (http://www.nsnam.org/bugzilla/attachment.cgi?id=194&action=view)
test case that shows the bug.
Run as:
./tcp-2way-2 --useDummyBytes=0 --recvSize=600 --preSchedule=1 --useBadTimings=0
to have correct results. It has output like:
...
536:I{536} *bytes from 10.1.0.1 [02-06-0a:01:00:01:01:c0] <0|536|381>
381:I{381} *bytes from 10.1.0.1 [02-06-0a:01:00:01:01:c0] <0|381|0>
Finished Packet. from handleread: cmpl_recv(0.328662,0,0,10000,1) Read 10000
of <I>
simulator::cmpl_recv(0.328662,0,0,10000,1)
....
where all 10000 bytes were read, and there is no left over bytes (<0|) in the
packet, so processing on the packet ends.
In the bad case:
./tcp-2way-2 --useDummyBytes=0 --preSchedule=1 --recvSize=600 --useBadTimings=1
...
536:I{536} *bytes from 10.1.0.1 [02-06-0a:01:00:01:01:c0] <0|536|338>
381:I{381} *bytes from 10.1.0.1 [02-06-0a:01:00:01:01:c0] <43|338|0>
Finished Packet. from handleread: cmpl_recv(0.0221596,0,0,10000,1) Read
10000 of <I>
simulator::cmpl_recv(0.0221596,0,0,10000,1)
43:I{43} bytes from 10.1.0.1 [02-06-0a:01:00:01:01:c0] Removing unexpected
header.
....
Notice that there appears to be 43bytes left over, and in the rle of the
PeekData in the packet there are 43 bytes of payload 'I'. What is confusing is
that the program send 10000 bytes of 'I' as payload but there appears to be
10043 bytes of 'I' as payload.
Also note with the 'bad' timing we are seeing both directions being interleaved
here.
Thanks,
\dae
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list