[ns] TCP's packet size does not vary with the FTP's packetsize.

2008-09-25 Thread Mayur
Dear all, I am using simple FTP over TCP. In ns, from the application layer (ftp) Though I send small packets, (eg. 100 bytes using '$ftp_($i) send 100' ), TCP's packet size remains fixed equal to 1000. What is the reason? How to change it. I tried to study the tcp.cc's send and sendmsg()

Re: [ns] TCP's packet size does not vary with the FTP's packetsize.

2008-09-25 Thread Mayur
Tatiana Polishchuk wrote: Did you try to change the header size? Pls refer to the chapter 12.1.2 of the ns2 tutorial. Tatiana On Thu, Sep 25, 2008 at 9:03 AM, Mayur [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Dear all, I am using simple FTP over TCP. In ns, from the

Re: [ns] TCP's packet size does not vary with the FTP's packetsize.

2008-09-25 Thread Mayur
Mubashir Rehmani wrote: Hello I hope that you are fine. I think that the TCP Header length will remain same: For instance if you are sending FTP Data = 300 then Total size = FTP Data + TCP Header FTP Data = 200 TCP Header = 1024 Total size = 200 + 1024 FTP Data = 300 TCP Header =

Re: [ns] TCP's packet size does not vary with the FTP's packetsize.

2008-09-25 Thread Mats Folke
Hi! It is a fundamental property of TCP to set the packet (segment) size of its own. This is set with respect to path MTU, and various buffers. Thus, the size of the incoming FTP packets will not impact the outgoing segment size, since TCP is a byte-oriented protocol. However, ns-2 is not a

Re: [ns] TCP's packet size does not vary with the FTP's packetsize.

2008-09-25 Thread Mayur
Mats Folke wrote: Hi! It is a fundamental property of TCP to set the packet (segment) size of its own. This is set with respect to path MTU, and various buffers. Thus, the size of the incoming FTP packets will not impact the outgoing segment size, since TCP is a byte-oriented protocol.