ns问题总结-持续更新

1.问题:运行DSR协议,出现

   解决办法:TCL脚本里的 set val(ifq) 改为 CMUPriQueue或者

if { $val(rp) == “DSR” } {
set val(ifq)            CMUPriQueue
} else {
set val(ifq)            Queue/DropTail/PriQueue
}

2.问题:编译c++代码,出现errorstray'\243'in program ;

   解决办法:表述‘\243’这个字符不能识别,应该是用的中文输入法输入标点符号,把问题指向的语句重新用英文输入法输一次就行了。
         

3.问题:模拟一个基于aodv的协议,trace文件里有大量的因为CBK而产生的drop。

 解答:cbk = drop rtr mac callback,

          其实就是mac层的丢包在rtr层的显示。

4 ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile,
    ns-2.27/indep-utils/webtrace-conv/conv/Makefile, and
    ns-2.27/indep-utils/webtrace-conv/dec/Makefile,
  needed to be modified in order to fix a bug in ISI's distribution.  The bug
  caused a compile-time error that looked like this:

  g++ -c -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@  -o setdest.o setdest.cc
  In file included from ../../../config.h:54,
                   from setdest.h:5,
                   from setdest.cc:57:
  ../../../autoconf.h:85: Error: namespace `CPP_NAMESPACE' undeclared
  setdest.cc:71:1: warning: "INFINITY" redefined
  In file included from /usr/include/math.h:40,
                   from setdest.cc:43:
  /usr/include/bits/mathdef.h:35:1: warning: this is the location of the previous definition
  make[1]: *** [setdest.o] Error 1
  make[1]: Leaving directory `/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/cmu-scen-gen/setdest'
  make[1]: Entering directory `/home/iandow/netsim/ns-allinone-2.27/ns-2.27/indep-utils/webtrace-conv/dec'

  To fix the bug, edit ns-2.27/indep-utils/cmu-scen-gen/setdest/Makefile and 
  change this line:
    DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@
  to this line:
    DEFINE = -Dstand_alone -DSTL_NAMESPACE=@STL_NAMESPACE@ -DCPP_NAMESPACE=std


posted @ 2012-05-06 20:58  应律  阅读(308)  评论(0编辑  收藏  举报