views:

420

answers:

2

I am trying to monitor a tcp flow using flow monitor. attach-fmon wants link object which is not available in wireless connections, how can I solve this problem ? are there any other solutions ?

My code is here http://pastebin.com/f59241692

I got this error message

eid@eid-laptop:~/code/ns2/noisy$ ns mixed.tcl
num_nodes is set 3
INITIALIZE THE LIST xListHead
invalid command name ""
    while executing
"$lnk attach-monitors $isnoop $osnoop $dsnoop $fm"
    (procedure "_o3" line 5)
    (Simulator attach-fmon line 5)
    invoked from within
"$ns_ attach-fmon $wllink $fmon"
    (file "mixed.tcl" line 182)
A: 

I caution you that I have no experience with ns (Network Simulator). Clearly the variable $lnk has the value "" in the scope of the proc "o3" which is surely an "object" created by calling [new ...] at some point, though not necessarily in your code. Perhaps there is some initialization that you have to do so $ns_ or one of the other objects before you can attach a flow monitoring channel.

Joseph Bui
A: 

Ethereal is an open source network protocol analyzer. It should be able to analyze and display the communication flow of your application.

lothar