[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] TCP Session start and stops



You can enable the "recv" instproc in your attached application.  See the
code in app.cc.  Then in your apps recv proc, count the received bytes to
see when you received the correct amount.
George

					
			-George F. Riley ([email protected])

On Mon, 18 Dec 2000 [email protected] wrote:

> 
> hi everyone,
> 	i have a problem in which i am trying to simulate a number
> of sessions, one after the other, between a source destination pair. 
> the idea is to open a TCP connection between the source destination 
> pair and
> 
> step 1. transfer a file (or a given no. of packets) between them
> step 2. wait for some time say 5 seconds
> step 3. go to step 1
> 
> my problem is how do i know, (other than looking in the trace file)
> that my first transfer is over? and is there any way so that i can
> put all this in the .tcl file for the simulator? Thanks,
> 
> 						Biplab Sikdar,
> 						Grad. Student,	
> 						Dept. of eCSE,
> 					 Rensselaer Polytechnic Inst.,
> 						Troy NY 12180.
> 
>