[ns] Problem in attaching flow monitor to a link

2006-09-10 Thread Bhavana Gandhi
Dear all, I am trying to attach a flow monitor to a bottleneck link in my simulation. The relevant code is given below: #Create links between the nodes $ns duplex-link $n0 $n2 10Mb 10ms DropTail set flink [$ns link $n2 $n3] $ns simplex-link $n3 $n2 10Mb 10ms DropTail set monfile [open mon.tr w]

[ns] dropping packets belonging to a particular flow

2006-07-21 Thread Bhavana Gandhi
Hi all, I am new to this group and not much experience with ns-2 as well. I was interested in knowing how can I drop all packets belonging to a particular flow whose flow id is known at a particular router. One way is to extract the headers of the arriving packets and learn the flow id and call t