網頁

顯示具有 NS-3 標籤的文章。 顯示所有文章
顯示具有 NS-3 標籤的文章。 顯示所有文章

2011年9月8日 星期四

2011.09.08 NS-3 安裝 on Linux

之前有提到說,因為在Windows XP安裝上有問題

所以這次改用Linux來安裝

主要是利用VirtualBox這套VM來做Linux的系統安裝

Linux是開放的,所以在網路上下載下來很方便

我使用Ubuntu來做Linux的系統

最近出了11.04版,畫面很炫,但是聽說好吃電

竟然只能撐十幾分鐘筆電就沒電了,建議改回傳統介面應該就不會有這樣誇張的問題

這是題外話,轉回正題

--


先安裝了Mercurial

sudo apt-get install mercurial meld

 (sudo是表示用root權限來操作,安裝軟體則是apt-get install 軟體名稱)

--
再安裝python

wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz

tar zxvf Python-2.7.2.tgz

cd Python-2.7.2

./configure

make

make install

2011.09.08 NS-3的奇幻旅程 on Windows XP

先說明一下這篇,然後也希望網路上若有高手看到我的問題,

且知道如何解決希望能告訴我是哪個環節出了差錯。

這篇是依照我安裝的順序所寫的,以用來記錄自己在安裝過程中,

是否有哪個步驟是錯的,或者順序上有問題以致於造成NS-3無法順利運行的原因

因為是在Windows XP 之下進行安裝NS-3

所以,需要使用Unix-Like,而Cygwin正是Unix-Like,且可安裝在Windows XP

安裝方法是使用NS-3官方網站所提供的ns-3-tutorial.pdf來進行的

由於對於整個系統的運作模式並不是太清楚,只憑著教學裡面的順序來操作

教學文件裡是英文敘述,所以著實的有點頭大,但也不是全看不懂

只是看了後面忘了前面就有點囧了。


2011年8月30日 星期二

2011.08.30 網路模擬工具

NS-2:
1.使用者數最多
2.較多模組可使用,節省自行開發的時間
3.使用C++實作protocol(協定)
4.使用OTcl控制模擬環境和事件排程

NS-3:
(1) Different softw are core : The core of NS3 is written in C++ and with Python scripting interface(compared with OTcl in NS2). Several advanced C++ design patterns are also used.
(2) Attention to realism : protocol entities are designed to be closer to real computers.
(3) Software integration : support the incorporation of more open-source networking software and reducethe need to rewrite models for simulation;
(4) Support for virtualization : lightweight virtual machines are used.
(5) Tracing architecture : NS3 is developing a tracing and statistics gathering framework trying to enable customization of the output without rebuilding the simulation core.

OMNeT++:
1. Simulation kernel library
2. Compiler for the NED topology description language (nedc)
3. Graphical network editor for NED files ( GNED )
4. GUI for simulation execution, links into simulation executable ( Tkenv )
5. Command-line user interface for simulation execution ( Cmdenv )
6. Graphical output vector plotting tool ( Plove )
7. Graphical output scalars visualization tool ( Scalars )
8. Model documentation tool (opp_neddoc)
9. Utilities (random number seed generation tool, makefile creation tool, etc.)
10. Documentation, sample simulations, etc.

--
目前預計工作
有考量使用C++或是MATLAB來實現網路模擬分析
只是底子沒紮好,有些頭大啊TOT
而NS-2之前就有摸過
比較容易上手,只是需要複習。
所以還是先使用NS-2
短期目標:這週完成所有複習以及完成一個類似的網路模擬
而若要修改協定部分,是由C++所寫的,找出如何做分段編譯
以減少編譯時間(一般編譯會全部重新編譯一次,太浪費時間)
這個部分我想在這兩個星期內可以搞定。
然後論文部分,一些相關研究要開始陸陸續續的寫進去,才不會一次趕得亂七八糟。
之後的預計工作是,完成這階段的工作之後
想辦法實現用C++或是C#來寫網路模擬,增加自我實力。

2011年8月23日 星期二

2011.08.23 紀錄

Survey 三種實現網路模擬的方式:
1.用C自己將模擬器和網路架構寫出來
2.Ns-2或Ns-3
3.OMNeT++
暫時因要用的PC資料還須保留一段時間,所以系統不重灌,使用VirtualBox模擬器安裝Linux系統來做以上三種方式的survey
目標週五前完成

論文部分,相關研究部分可以先寫起來。
須加強了解會拿來做比較的演算法,例如flooding、gossiping和CSMA-CA...等。

閱讀:學長的論文:An Energy-Efficient Message Propagation Scheme for Wireless Sensor Networks