Kernel Reentering Simulation Methodology TunnelKernel Reentering Simulation Methodology

  • Slides: 15
Download presentation

Kernel Re-entering Simulation Methodology Tunnel網路介面是實現Kernel Re-entering Simulation Methodology的關鍵技術 Tunnel Pseudo network interface A corresponding

Kernel Re-entering Simulation Methodology Tunnel網路介面是實現Kernel Re-entering Simulation Methodology的關鍵技術 Tunnel Pseudo network interface A corresponding device special file in the /dev directory

Kernel Re-entering Simulation Methodology Simulation Time= Link Propagation Time + Packet transmission Time

Kernel Re-entering Simulation Methodology Simulation Time= Link Propagation Time + Packet transmission Time

Emulator Architecture External host 指在NCTUns GUI裡的Emulation host External machine 指欲emulation的真實機器,有可能是PC、PDA、IP CAM…等。

Emulator Architecture External host 指在NCTUns GUI裡的Emulation host External machine 指欲emulation的真實機器,有可能是PC、PDA、IP CAM…等。

Example 1 實驗環境 Fedora 9 NCTUns 5. 0

Example 1 實驗環境 Fedora 9 NCTUns 5. 0

設定Machine IP 在Linux設定實體IP 設定Nctuns External host IP

設定Machine IP 在Linux設定實體IP 設定Nctuns External host IP

Run NCTUns - ifup tun 1~tun 4 #ifconfig tun 1=1. 0. 1. 1 tun

Run NCTUns - ifup tun 1~tun 4 #ifconfig tun 1=1. 0. 1. 1 tun 2=1. 0. 1. 2 tun 3=1. 0. 2. 1 tun 4=1. 0. 2. 2 eth 0= 192. 168. 1. 100

Run NCTUns-route add #route -n

Run NCTUns-route add #route -n

Run NCTUns Tun 1=n 1 Destination Gateway 1. 0/24 Tun 3=n 2(right) Destination Gateway

Run NCTUns Tun 1=n 1 Destination Gateway 1. 0/24 Tun 3=n 2(right) Destination Gateway X 1. 2. 2. 0/24 X 1. 0. 2. 0/24 1. 1. 1. 2 1. 0. 2. 0/24 x 1. 1. 1. 0/24 x 2. 1. 2. 0/24 x Tun 2=n 2(left) Destination Gateway 1. 2. 1. 0/24 X 1. 0/24 x 2. 1. 1. 0/24 x Tun 4=n 4 Destination Gateway 1. 0. 2. 0/24 X 2. 2. 1. 0/24 2. 2. 2. 1 2. 2. 2. 0/24 x

Simulator turned into network emulator First, virtual clock與real time同步 Second, 在真實世界中,新增system routing table 為了傳packet至simulation

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.

Kernel Emulation Module External Machine - TCP Sender

Kernel Emulation Module External Machine - TCP Sender

Kernel Module(Emulation Module) Filter packet, capture packet Simulation start: emulation module被加載到Kernel, 它會自動讀取配置文件,該文件包含了所有的過濾規 則。 During

Kernel Module(Emulation Module) Filter packet, capture packet Simulation start: emulation module被加載到Kernel, 它會自動讀取配置文件,該文件包含了所有的過濾規 則。 During simulation: emulation module 解讀所有packet header,為了把external machine packet作傳或收。

Kernel Emulation Module External Machine - TCP Receiver

Kernel Emulation Module External Machine - TCP Receiver

參考資料 NCTUNS TOOL FOR INNOVATIVE NETWORK EMULATIONS http: //nsl. csie. nctu. edu. tw/Nova. NCTUns.

參考資料 NCTUNS TOOL FOR INNOVATIVE NETWORK EMULATIONS http: //nsl. csie. nctu. edu. tw/Nova. NCTUns. Emulation. Ne w 2009. pdf The GUI User Manual for the NCTUns 6. 0 Network Simulator and Emulator(Ch 7 Emulation) http: //nsl 10. csie. nctu. edu. tw/support/documentation/GUIM anual. pdf The Protocol Developer Manual for the NCTUns 6. 0 Network Simulator and Emulator http: //nsl 10. cs. nctu. edu. tw/support/documentation/Develo per. Manual. pdf