About GT-ITM under the NS-2
来源:互联网 发布:淘宝客app哪个好 编辑:程序博客网 时间:2024/05/12 22:21
There might not be much organized information about how to use GT-ITM in NS2, so I just put some notes here, just in case I forget how to use it.
GT-ITM would have been built in your NS2, you can check it by searching under NS2 home directory. To use it, you need do the following steps.
1. Create the specification file for GT-ITM.
2. Generate the topology file.
3. Convert to NS2 format.
4. Tweak the result.
1. The format of the specification file could be found in the README file under the gt-itm/docs directory. Or, you will find it by google. And it is as follows.
## Comments :
## <#method keyword> <#number of graphs> [<#initial seed>]
## <#stubs/xit> <#t-s edges> <#s-s edges>
## <#n> <#scale> <#edgemethod> <#alpha> [<#beta>] [<#gamma>]
## number of nodes = 1*8* (1 + 4*6) = 200
ts 10 47
4 0 0
1 20 3 1.0
8 20 3 0.8
6 10 3 0.5
Save the content to whatever, e.g. ts200.
2. To generate the topology, run 'itm ts200'
After running the itm command, you get the .gb files that are generated topoloy files.
3. To convert to whatever NS2 can use, run 'sgb2ns ts200-0.gb ts200.tcl'
Then you get .tcl files.
4. You would need to pay attention to what would be obsolete in the generated .tcl files.
For newer version of NS2, you would probabily need to modify the .tcl code generated by sg2ns a little bit to get it work.
The duplex-link-of-interfaces statement is somewhat obsolete, and you would need to change it to duplex-link to get the code work.
To use the .tcl code in NS2, you will need to source the code, and run it.
GT-ITM would have been built in your NS2, you can check it by searching under NS2 home directory. To use it, you need do the following steps.
1. Create the specification file for GT-ITM.
2. Generate the topology file.
3. Convert to NS2 format.
4. Tweak the result.
1. The format of the specification file could be found in the README file under the gt-itm/docs directory. Or, you will find it by google. And it is as follows.
## Comments :
## <#method keyword> <#number of graphs> [<#initial seed>]
## <#stubs/xit> <#t-s edges> <#s-s edges>
## <#n> <#scale> <#edgemethod> <#alpha> [<#beta>] [<#gamma>]
## number of nodes = 1*8* (1 + 4*6) = 200
ts 10 47
4 0 0
1 20 3 1.0
8 20 3 0.8
6 10 3 0.5
Save the content to whatever, e.g. ts200.
2. To generate the topology, run 'itm ts200'
After running the itm command, you get the .gb files that are generated topoloy files.
3. To convert to whatever NS2 can use, run 'sgb2ns ts200-0.gb ts200.tcl'
Then you get .tcl files.
4. You would need to pay attention to what would be obsolete in the generated .tcl files.
For newer version of NS2, you would probabily need to modify the .tcl code generated by sg2ns a little bit to get it work.
The duplex-link-of-interfaces statement is somewhat obsolete, and you would need to change it to duplex-link to get the code work.
To use the .tcl code in NS2, you will need to source the code, and run it.
- About GT-ITM under the NS-2
- ns和gt-itm在ubuntu安装及使用
- gt-itm安装笔记
- gt-itm模型生成拓扑结构
- gt-itm模型生成拓扑结构
- GT-ITM拓扑生成器的原理及命令格式简介
- 关于gt-itm工具在window下使用
- ubuntu 16.04上ns2+nam+GT-ITM安装笔记
- The Network Simulator ns-2: Topology Generation
- The role of the server under Ajax (2)
- C++: Under the Hood
- C++: Under the Hood
- C++: Under the Hood
- FlushViewOfFile Under the Hood
- Android - under the hood
- Redis: under the hood
- Under The Same Sky
- Redis: under the hood
- Vista将死?微软放弃Vista 用Windows 7取而代之
- Web 2.0中AJAX技术应用详解
- 标准还是效果?
- Ajax的优势和不足
- 标准的三层架构
- About GT-ITM under the NS-2
- C# 判断中文字符(字符串)
- 序列化类
- 如何使我们的网站符合W3C网络标准,让IE8能够正常访问呢?
- 详细的windpws平台县cvsnt配置与权限分配
- 如何学习arm
- C# 错误码提示
- Asterisk与Google talk互通测试心得:
- CSS选项卡之一