Re: [ns] important: TCP packet size

2008-04-28 Thread Francesco Zampognaro
Packets coming from sink are ACKs, so 40 bytes in size (minimum TCP packet size). If you want balanced transmission probably you need tcp-full. Anyway I'm not familiar with that. Bye FZ On Thu, 2008-04-24 at 18:29 +, cheki imane wrote: > > Hi all,i have a question which seems stupid but, i

Re: [ns] important: TCP packet size

2008-04-25 Thread Levinsohn Chris M
Use the following code: # setup a tcp connection across the n8-n18 link # create a new tcp agent called tcp818 set tcp818 [new Agent/TCP] # Set the source to be node n8 $ns attach-agent $n(8) $tcp818 # create a new TCP sink agent called sink set sink818 [new Agent/TCPSink] # set the sink to be no

[ns] important: TCP packet size

2008-04-24 Thread cheki imane
Hi all,i have a question which seems stupid but, i'had vreated a simple network (2 nodes) tcp and tcp sink and i'd like to set the packets size =1000 bytes so i have used 'Agent/TCP set packetSize_ 1000' & 'Agent/TCPSink set packetSize_ 1000' '$tcp set packetSize_ 1000' & '$tcpsink set packe

[ns] important: TCP packet size

2008-04-24 Thread cheki imane
Hi all,i have a question which seems stupid but, i'had vreated a simple network (2 nodes) tcp and tcp sink and i'd like to set the packets size =1000 bytes so i have used 'Agent/TCP set packetSize_ 1000' & 'Agent/TCPSink set packetSize_ 1000' '$tcp set packetSize_ 1000' & '$tcpsink set packe