Download presentation
Presentation is loading. Please wait.
Published byNora Lucas Modified over 9 years ago
1
NCTUns Emulation 指導教授:潘仁義 報告者:李詩涵、蕭惠陽
2
Kernel Re-entering Simulation Methodology Tunnel 網路介面是實現 Kernel Re-entering Simulation Methodology 的關鍵技術 Tunnel Pseudo network interface A corresponding device special file in the /dev directory
3
Kernel Re-entering Simulation Methodology Simulation Time= Link Propagation Time + Packet transmission Time
4
Emulator Architecture External host 指在 NCTUns GUI 裡的 Emulation host External machine 指欲 emulation 的真實機器,有可能是 PC 、 PDA 、 IP CAM… 等。
5
Example 1 實驗環境 Fedora 9 NCTUns 5.0
6
設定 Machine IP 在 Linux 設定實體 IP 設定 Nctuns External host IP
7
Run NCTUns - ifup tun1~tun4 #ifconfig tun1=1.0.1.1 tun2=1.0.1.2 tun3=1.0.2.1 tun4=1.0.2.2 eth0= 192.168.1.100
8
Run NCTUns-route add #route -n
9
Run NCTUns Tun1=n1 Tun2=n2(left) DestinationGateway 1.0.1.0/24X 1.0.2.0/241.1.1.2 1.1.1.0/24x DestinationGateway 1.2.1.0/24X 1.0.1.0/24x 2.1.1.0/24x Tun3=n2(right) Tun4=n4 DestinationGateway 1.2.2.0/24X 1.0.2.0/24x 2.1.2.0/24x DestinationGateway 1.0.2.0/24X 2.2.1.0/242.2.2.1 2.2.2.0/24x
11
Simulator turned into network emulator First, virtual clock 與 real time 同步 Second, 在真實世界中,新增 system routing table 為了傳 packet 至 simulation machine -------------------emulation 開始 ------------------------- Third, packet-filtering rules need to be installed Add the system routing table on the simulation machine 為了允許在真實世界中 incoming packet 可被抓取至 simulation network Finally, the headers of the captured packets need to be translated they can be forwarded between the simulated network and the real- world devices.
12
Kernel Emulation Module External Machine - TCP Sender
13
Kernel Module(Emulation Module) Filter packet, capture packet Simulation start: emulation module 被加載到 Kernel ,它 會自動讀取配置文件,該文件包含了所有的過濾規則。 During simulation: emulation module 解讀所有 packet header ,為了把 external machine packet 作傳或收。
14
Kernel Emulation Module External Machine - TCP Receiver
15
參考資料 NCTUNS TOOL FOR INNOVATIVE NETWORK EMULATIONS http://nsl.csie.nctu.edu.tw/NovaNCTUnsEmulationNe w2009.pdf http://nsl.csie.nctu.edu.tw/NovaNCTUnsEmulationNe w2009.pdf The GUI User Manual for the NCTUns 6.0 Network Simulator and Emulator(Ch7 Emulation) http://nsl10.csie.nctu.edu.tw/support/documentation/GUIManu al.pdf http://nsl10.csie.nctu.edu.tw/support/documentation/GUIManu al.pdf The Protocol Developer Manual for the NCTUns 6.0 Network Simulator and Emulator http://nsl10.cs.nctu.edu.tw/support/documentation/Developer Manual.pdf http://nsl10.cs.nctu.edu.tw/support/documentation/Developer Manual.pdf
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.