----- Original Message ----- From: "shahnawaz S.P" <[EMAIL PROTECTED]> To: "Philippine Linux Users' Group (PLUG) Technical Discussion List" <[email protected]>
Sent: Tuesday, July 04, 2006 10:50 PM
Subject: [plug] Out of order packets-TCP




Hi all,

I want to test the behaviour of Linux TCP stack for
receiving the out of order packets.
The following is my setup

client machine----------------MUT(Machine under test)
192.168.2.50                  192.168.2.51

from client machine I am sending 5 out of order
packets in the following order to the MUT.

              3whs
            <--------->

               data1
            ---------->

               data2
            ---------->

               ACK 2
            <----------

               ACK 3
            <----------

             data 5
            ----------->

             data 4
            ----------->

             data 3
            ----------->
              ACK 3
            <----------
              ACK 3
            <----------
              ACK 6
            <----------
                close
            <----------->

The above dump output is fine saying the sender that
it expects data3 on receiving  packets data5 and data4
.On receiving the expected it sends the cumulative
ack.
but my application running on the client machine
doesnt get the data4 and data5. It is only able to res
data1 data3 and dat3 at the end. i.e application is
not getting the data of out of order packets.
What could be the problem?
Do I need to enable any TCP variable??
Why the TCP stack is not reordering and sending the
whole data to the application after receiving the
missing packet?

i assume that data1 is acknowledge by ack2 and data2 is acknowledge by ack3 where ack1 is part of the 3 way handshake (3whs )... your last data was data5... i saw it was acknowledge by ack6... therefore the receiver which is your MUT received data1 to data5 accordingly...

fooler.
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to