如何通过无线连接监控流量?

时间:2008-11-05 17:16:45

标签: tcl simulation wireless ns2

我正在尝试使用流量监视器监视tcp流。 attach-fmon想要无线连接中不可用的链接对象。我怎么解决这个问题 ?还有其他解决方案吗?

我的代码在这里 http://pastebin.com/f59241692

我收到此错误消息

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)

3 个答案:

答案 0 :(得分:0)

我提醒您,我没有使用ns(网络模拟器)的经验。显然,变量$ lnk在proc“o3”的范围内具有值“”,这肯定是通过在某个时刻调用[new ...]而创建的“对象”,尽管不一定在您的代码中。在您可以附加流量监控通道之前,可能需要进行一些初始化操作$ ns_或其他一个对象。

答案 1 :(得分:0)

Wireshark(http://wireshark.org)于2006年取代了ethereal,是一款免费的开源网络协议分析器。它可以捕获和分析来自几乎任何网络接口的数据,并允许您通过过滤端口号等来过滤感兴趣的通信路径。

答案 2 :(得分:-1)

Ethereal是一个开源网络协议分析器。 它应该能够分析和显示应用程序的通信流程。