The great idea of NS2

原创 2012年03月22日 08:23:29
Here is my understanding about ns2. Just my understanding!!!!

Ok, NS2 is a good combination of C++ and OTCL(OTCL is an object-oriented TCL). In fact, high-efficient C/C++ language can be used to simulate the complexity of data exchange between different ISO layers, also can be used compuatation. However, its' interactivity is bad. If you have change a parameter, you'll have to compile the whole package, then run it. Oh, it will be very time-consuming. For example, it'll cost 15 minutes to 'make' the ns2 source in my X31 laptop.
So what's tcl? As I understand, it's a script language like shell language, such as bash, command(DOS). It is interactive. You input something, it'll reponse you immediately. Yeah, you may be thought of something.

Yeah, how about we combine them together. This is what the elites of ns2 developer have done. Their great effort creates the NS2.

In the above scenario, when you input a parameter, TCL interpreter will transfer it to the C++ code, then C++ code will run with the parameter and return the result. So you have to connect with tcl interferace, C++ code will do the next.

In fact, when you run ns2, it's looks like a tcl interpreter.
版权声明:本文为博主原创文章,未经博主允许不得转载。

NS-3网络模拟器基础与应用 2 of 2.zip

  • 2017年03月10日 19:54
  • 43.9MB
  • 下载

[翻译]Ignoring the Great Firewall of China

Ignoring the Great Firewall of ChinaRichard Clayton, Steven J. Murdoch, and Robert N. M. WatsonUnive...
  • ppatdao
  • ppatdao
  • 2011年01月09日 20:11
  • 1173

Personality Characteristics of Great Designers

选自Steve McConnell的《Professional Software Development》一书。此书虽然写的比较早,但道理还是经得起时间考验的。   Personality Cha...

Great Classical Musics For All of U.

Great Classical Musics For All of U.(from youtube)1.The Best of Bach https://www.youtube.com/watch?...

codeforces185D.Visit of the Great

http://codeforces.com/contest/185/problem/D 题意: 求LCM(k^(2^l)+1, k^(2^(l+1)) + 1, k^(2^(l+2)) + 1, ....

Codeforces Round #407 (Div. 2) E. The Great Mixing [bfs]

Codeforces Round #407 (Div. 2) E. The Great Mixing [bfs]

Examples of Performance Analysis using NS

Performance Analysis of Drop Tail Queues(the NS script is here: click here ) Constructing ...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:The great idea of NS2
举报原因:
原因补充:

(最多只允许输入30个字)