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