Hi all,

I am using a simple procedure to record Window Size (cwnd_) variable of a
SCTP Agent. But if the nodes are multi-homed (for example, with 2
alternative paths to reach the destination), how can I distinguish the cwnd_
of the different paths?

I appreciate some help, please.

 

proc record_WindowSize {source file timetrace} {
      global ns 
      #Set the time after which thw procedure should be called again
      set time $timetrace     ;#seconds
      #get the current time
      set now [$ns now]
      set cwnd [$source set cwnd_]
      puts $file "$now $cwnd"
      #re-shedule the precedure (procedure calls itself)
      $ns at [expr $now+$time] "record_WindowSize $source $file $timetrace"
}
Elisabete

 

 

Reply via email to