面白い記事を見つけたのでメモしておく.
特にWindows+DやWindows+Rが使えそうなのでこれから活用していこうかな.
ns2をインストールする時にエラーが発生することがある.
いくつかのエラーの対処法を記載しておく.
エラー1
<エラーメッセージ>
tcl8.4.18 make failed! exiting…
tk8.4.18 make failed!
make: *** [tk3d.o] error 1 tk8.4.18 make
tk8.4.18 make fail<対処法>
# yum install libX11-devel
エラー2
<エラーメッセージ>
checking for X11 header files
can’t find X includes
otcl-1.13 configuration failed! Exiting …
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.<対処法>
# yum groupinstall “X Software Development”
少しでも役立てばと思います.
namでノードに色を付けようとしたら以下のエラー(?)が出た.
$ nam nam-test.nam
You are using the tracefile format older than 1.0a5
which will not allow you to run namgraph
どうやらinitial_node_posよりも後でノードの色を付けようとしたのがいけなかったらしい.
ns2のシナリオ作成には色々便利なツールがあるので,ここにメモしておく.
トラフィックジェネレータ
/indep-utils/cmu-scen-gen/cbrgen.tcl
<usage example> ns cbrgen.tcl -type cbr -nn 2 -seed 1.0 -mc 1 -rate 0.1
ノード移動ジェネレータ
/indep-utils/cmu-scen-gen/setdest/setdest
<usage example> setdest -v 1 (バージョン) -n 10 -p 2 (待機時間) -M 30 (最大移動速度) -t 50 -x 300 -y 00
viで検索結果に色を付けるには以下のコマンドを入力すればいい.
set hlsearch