- 1、本文档共88页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
ns进阶以及在科研中的应用
NS-2 快速tools之nsBench 介绍: nsBench makes NS-2 simulation development and analysis faster and easier for students and researchers without losing the flexibility or expressiveness gained by writing a script. The goal of nsBench project is to develop supporting tools that enable creating, analyzing and visualizing NS-2 simulation scripts and traces automatically. GUI 安装 安装jvm 运行 $java? -jar? nsBench-1.0b3.jar 官方tutorial Installing NSBench Download and store NS in C:\NSW. Download NSBench and store in C:\NSW. Download and install Java 1.4 or later. Download and install the ConTEXT editor. ConTEXT is not necessary for the operation of NSBench, however it provides a convenient text editor for TCL scripts. Using NSBench Start nsBench by double clicking the nsBench.jar icon in windows Explorer. In unix and linux, open x terminal, then type “java -jar nsBench103b.jar” to start nsBench. Use the top menus to save files, set NS global configuration and generate the TCL script. Use bottom menus to create NS objects. Choose your file names for the simulation project. Open Configuration menu and choose Trace. Create network nodes. Click the circle icon, or select the insert menu and select Node. Create a network links. Click and drag the mouse from the point on the center of one node (cursor changes to hand) to the center point of the other node. To configure the created link, double click the mouse on any point on the link. 7. Attach transport agents to nodes. To attach an TCP agent to a node first select the node. Then, open the insert menu and select TCP, or click on the square icon and select the agent. 8. You can now create a sink agent and connect it to the other node. To do that follow the same steps as in step 7, but select n1 prior to starting. 9. To configure the TCP agent, double click on the TCP object. 10. Create a transport connection between the two TCP agents by connecting the center points of both TCP objects. 11. Create application or traffic genera
文档评论(0)