网络仿真技术-NS2(学习笔记)
2010-12-13 12:47
579 查看
20101214 安装运行
资源整理:
About NS-3
1、 网络论坛(Network Forum):http://www.netforum.com.cn/ (暂不可用)
2、 台湾柯志亨教授的主页:http://140.116.72.80/~smallko/ns2/ns2.htm
3、 NS by Example:http://nile.wpi.edu/NS/
4、 Ns tutorial:http://www.isi.edu/nsnam/ns/tutorial/index.html
5、 源码与架构分析:http://www-sop.inria.fr/planete/software/ns-doc/ns-current
6、 官方手册:~/ns-allinone-2.30/ns-2.30/doc/everything.pdf (源码包中提供)
7、 NS2 学习交流论坛:http://ns2.tech.topzj.com/
(本书官方论坛)
8、 中文书籍:《NS与网络模拟》
About cygwin:
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
安装:
环境:window XP+cygwin+ns3.9
步骤[1]:
Step 1:
Download & install cygwin
.
(note: I install it in the recommended directory “{System
Root}/cygwin/”). Make sure you select “install” for python and devel
.
This will ensure you have python and gcc/g++ as well as all of the
dependencies. You can do this by clicking on the word default in the
list of packages. I left all of the other package options on default for
the install.
Step 2:
Download ns3.9. (http://www.nsnam.org/
) Save the file to “{System Root}/cygwin/home/{your-username}”
Step 3:
Start cygwin. At the cygwin prompt type: “tar xvf
ns-allinone-3.9.tar.bz2″. This will unpack the ns3 archive so you can
use it.
Step 4:
After it has unpacked, change directory to the new ns3 directory with
the following: “cd ns-allinone-3.7.1″. Then build ns3 by typing the
following: “./build.py”. You can probably grab a coffee or tea while it
compiles.
Step 5:
You should be good to go. You can validate the install by changing
directory again to the ns-3.7.1 directory (“cd ns-3.7.1″) and running
“./test.py”. It will let you know with a PASS / FAIL for each test case.
You can now edit the files yourself. The scenario files are located in
“” and the source files are located in “”. Good luck!
报错:
/usr/bin/env: python: No such file or directory
解决-〉上文红色部分,cygwin 默认 python and devel 为默认要改为"install".
/usr/bin/env: python: No such file or directory 这个错误为找不到 python, 可以查看release 中没有Python.
参考资料:
[1]http://www.jasonernst.com/2010/04/15/ns-3-7-1-windows-7-cygwin/
资源整理:
About NS-3
1、 网络论坛(Network Forum):http://www.netforum.com.cn/ (暂不可用)
2、 台湾柯志亨教授的主页:http://140.116.72.80/~smallko/ns2/ns2.htm
3、 NS by Example:http://nile.wpi.edu/NS/
4、 Ns tutorial:http://www.isi.edu/nsnam/ns/tutorial/index.html
5、 源码与架构分析:http://www-sop.inria.fr/planete/software/ns-doc/ns-current
6、 官方手册:~/ns-allinone-2.30/ns-2.30/doc/everything.pdf (源码包中提供)
7、 NS2 学习交流论坛:http://ns2.tech.topzj.com/
(本书官方论坛)
8、 中文书籍:《NS与网络模拟》
About cygwin:
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
安装:
环境:window XP+cygwin+ns3.9
步骤[1]:
Step 1:
Download & install cygwin
.
(note: I install it in the recommended directory “{System
Root}/cygwin/”). Make sure you select “install” for python and devel
.
This will ensure you have python and gcc/g++ as well as all of the
dependencies. You can do this by clicking on the word default in the
list of packages. I left all of the other package options on default for
the install.
Step 2:
Download ns3.9. (http://www.nsnam.org/
) Save the file to “{System Root}/cygwin/home/{your-username}”
Step 3:
Start cygwin. At the cygwin prompt type: “tar xvf
ns-allinone-3.9.tar.bz2″. This will unpack the ns3 archive so you can
use it.
Step 4:
After it has unpacked, change directory to the new ns3 directory with
the following: “cd ns-allinone-3.7.1″. Then build ns3 by typing the
following: “./build.py”. You can probably grab a coffee or tea while it
compiles.
Step 5:
You should be good to go. You can validate the install by changing
directory again to the ns-3.7.1 directory (“cd ns-3.7.1″) and running
“./test.py”. It will let you know with a PASS / FAIL for each test case.
You can now edit the files yourself. The scenario files are located in
“” and the source files are located in “”. Good luck!
报错:
/usr/bin/env: python: No such file or directory
解决-〉上文红色部分,cygwin 默认 python and devel 为默认要改为"install".
/usr/bin/env: python: No such file or directory 这个错误为找不到 python, 可以查看release 中没有Python.
参考资料:
[1]http://www.jasonernst.com/2010/04/15/ns-3-7-1-windows-7-cygwin/
相关文章推荐
- 学习笔记3_关于网络排行客户端的两点技术
- IBM UNIX & LINUX -AIX 5L 系统管理技术 学习笔记1 -网络文件系统 NFS network file system
- 网络技术温故知新(三):BGP学习笔记1
- NS2学习笔记---ns2模拟仿真的一般过程及要点
- MFC六大关键技术之仿真学习笔记(五)
- 基于Hadoop 的分布式网络爬虫技术学习笔记
- Android第一行代码学习笔记八----网络技术
- 深入浅出MFC学习笔记:MFC六大关键技术仿真之MFC程序的初始化过程
- NS2学习路程---1NS仿真创建网络基本框架
- 深入浅出MFC学习笔记:MFC六大关键技术仿真之MFC程序的初始化过程
- 三、MFC 六大关键技术之仿真 (学习笔记)
- MFC六大关键技术之仿真学习笔记(六)
- 全国计算机等级考试网络技术(三级教程)学习笔记
- 全国计算机等级考试网络技术(三级教程)学习笔记2
- 基于Hadoop 的分布式网络爬虫技术学习笔记
- 全国计算机等级考试网络技术(三级教程)学习笔记3
- 第二行代码学习笔记——第九章:看看精彩的世界——使用网络技术
- MFC六大关键技术之仿真学习笔记(七)
- 基于Hadoop 的分布式网络爬虫技术学习笔记
- MFC六大关键技术之仿真学习笔记(八)