如何监控无线连接的流量?
我正在尝试使用流量监视器来监视 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)
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Wireshark (http://wireshark.org) 于 2006 年取代了 ethereal,是一款免费的开源网络协议分析器。 它可以捕获和分析来自几乎任何网络接口的数据,并且允许您通过过滤端口号等来过滤感兴趣的通信路径。
Wireshark (http://wireshark.org) replaced ethereal in 2006, and is a free, open-source network protocol analyser. It can capture, and analyse data from pretty much any network interface, and will allow you to filter on the communication path of interest by filtering on port number etc.
我警告你,我没有 ns(网络模拟器)的经验。 显然,变量 $lnk 在 proc“o3”的范围内具有值“”,这肯定是通过在某个时刻调用 [new ...] 创建的“对象”,尽管不一定在您的代码中。 也许在附加流监控通道之前,您必须执行 $ns_ 或其他对象之一进行一些初始化。
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.
Ethereal 是一个开源网络协议分析器。
它应该能够分析和显示应用程序的通信流。
Ethereal is an open source network protocol analyzer.
It should be able to analyze and display the communication flow of your application.