2008年3月25日 星期二

實驗一

step 1 執行光碟中的setup.exe

step 2 點選"下一步"


step 3 選擇 "Install from Local Directory "---->下一步


step 4 選擇路徑 建議不要更動預設路徑------>下一步


step 6 下一步


step 7 如下圖選擇 ftp%3a%2f%2fftp.nctu.edu.tw%2fWindows%2fcygwin此目錄----->確定


step 8 下一步


step 9 下一步


step 10 選擇 view ---->使Category變成Full,作細部調整


step 11 一定要安裝 XFree86-base、XFree86-bin、XFree86-prog、XFree86-lib
、XFree86-etc、make、patch、perl、gcc、gcc-g++、gawk、gnuplot、tar、gzip------>下一步


step 12 安裝完成


step 13 點選桌面"cygwin"圖示




安裝NS2

step 1 將光碟中的ns-allinone-2.29.rar複製到cygwin目錄下

step 2 開啟cygwin--->輸入(ns-allinone-2.29/ns-2.29)--->enter---->輸入(./configure; make depend; make)----->enter


step 3 重新編譯玩的結果畫面


step 4、5將".bashrc"複製到cygwin目錄下再來把"cygwinl.dll"複製到c:\cygwin\bin目錄下

step 6 輸入(startxwin.bat)進入圖形化介面視窗


step 7 在ns-tutorial/examples目錄下輸入(ns example2.tcl)---->enter


step 8 出現以下畫面表示成功安裝 NS2

2008年3月13日 星期四

實驗 二 範例二 Multicast

step 1 先產生以下的網路拓墣


step 2 開啟multicast功能,Configuration---->Routing


step 3 選取multicast路由協定




step 4 點選udp0設訂其傳送資料的目的位址為multicast的位置


step 5 Configuration---->Scenario


step 6 儲存project並產生TCL檔案

step 7 產生的TCL檔

實驗二 nsBench

step 1 開啟 cygwin --->輸入(cd ns-allinone-2.29/ns-2.29/book/lab2/)--->enter--->輸入(ls)---->enter----->輸入(java -jar nsBench-1.0b3.jar)


step 2 產生以下畫面


step 3 建立節點


step 4 建立四個節點


step 5 按住節點拖拉到想要的位置


step 6 建立連線


step 7 點兩下連線即可設定其參數,如下所示




step 8 將所有連線都設定完成


step 9 建立ftp連線,點選節點n0---->Insert----->Transport----->TCP Tahoe




step 10 節點n3---->Insert----->Transport----->TCP Sink
step 11 點選tcp0---->Insert----->Traffic----->FTP,建立FTP應用程式


step 12 建立tcp0與sink0之間的連線


step 13 在n1上建立UDP agent,n3上建立Null,並建立CBR應用程式


step 14 連點cbr0設定參數


step 15 設定程式一些相關時間 Configuration---->Scenario


step 16 按下Add Row設定相關資料,Time也是必須自行輸入




step 17 設定模擬過程紀錄檔名稱


step 18 儲存project檔




step 19 產生TCL檔


step 20 觀看TCL程式




step 21 執行模擬 開啟 cygwin --->輸入(cd ns-allinone-2.29/ns-2.29/book/lab2/)--->enter--->輸入(ns.exe sim.tcl)---->enter