OK, I don't need remove the headers.
But I didn't understand L3 header and L4 header. What's that? AODV / DSDV: 1060 bytes. (TCP 1000 + IP 20 + "??") DSR: 1040 bytes. (TCP 1000 + "??") Can you help me? Virginia. -----Mensagem original----- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Em nome de John Kioussis Enviada em: quarta-feira, 31 de maio de 2006 18:24 Para: ns-users Assunto: Re: [ns] packet size TCP Hi Virginia, In ns-2 the default packet size is 1000 bytes. In AODV and DSDV the default MTU is 1060 because of the L4 header (20 bytes) and L3 headers (IP 20 bytes and AODV[DSDV] another 20 bytes). In DSR there is no IP header, that's why the packet size is 1040. In TCP, if you want to change the packet size to X bytes you should use $tcpsource set segsize_ [ X - headers' size] if you want to keep the headers ( check for the other instance variables of TCP agents in ns manual). If you need to remove some or all of the headers, see ns manual page 117. vthoma wrote: >Hello, > >I'm using FTP with TCP, and would like know the packet size. > >In the my simulations, I'm using three types routing protocols. (AODV, >DSDV and DSR). Are the size packets differents? With AODV and DSDV the packet size is 1060. And DSR the packet size is 1040. Why occurs that? > >Regards. > >Virginia. > > > > >
