[Ns-bugs] [Bug 248] New: 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:09:52 PDT 2008


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

           Summary: Newer version of tcp-2way that exhibits an 'excess
                    bytes' problem
           Product: ns-3
           Version: pre-release
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P1
         Component: internet-node
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: evensky at dancer.ca.sandia.gov


My real code exhibits a problem that during a run it send 10000 bytes of
payload and on the receiving side seems to have 10043 bytes of payload. This
causes an error when I try to do a RemoveHeader, but there isn't a header
there, but some left over payload. I modified tcp-2way to have two options. The
significant option that shows the bug is:
   --useBadTimings=1

which is false by default.

What this does is change the way packets are scheduled. In the old tcp-2way
packets were all pre-scheduled before Simulator::Run() is called. The times
that the packets were to be sent was by incrementing the time regularly. Using
the --useBadTimings=1 option causes the timings to be the same that exists in
my real app (at least until it dies).

By changing useBadTimings from 0 to 1 you can cause the program to fail.

program and differences from expected output to follow.


-- 
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