SDN_Lab2_ pptx

Similar documents
1.ai

Microsoft Word - template.doc

Windows XP

AL-M200 Series

EstiNet_Simulator_北科大_

OSI OSI 15% 20% OSI OSI ISO International Standard Organization 1984 OSI Open-data System Interface Reference Model OSI OSI OSI OSI ISO Prototype Prot

ansoft_setup21.doc

IC-900W Wireless Pan & Tilt Wireless Pan & Tilt Remote Control / Night Vision FCC ID:RUJ-LR802UWG

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

ebook140-8

幻灯片 1

Microsoft Word - 3D手册2.doc

Some experiences in working with Madagascar: installa7on & development Tengfei Wang, Peng Zou Tongji university

ebook140-9

Cadence SPB 15.2 VOICE Cadence SPB 15.2 PC Cadence 3 (1) CD1 1of 2 (2) CD2 2of 2 (3) CD3 Concept HDL 1of 1

Logitech Wireless Combo MK45 English

Microsoft Word - SupplyIT manual 3_cn_david.doc

Microsoft PowerPoint - Performance Analysis of Video Streaming over LTE using.pptx

穨control.PDF

Guide to Install SATA Hard Disks

IP505SM_manual_cn.doc

els0xu_zh_nf_v8.book Page Wednesday, June, 009 9:5 AM ELS-0/0C.8

TX-NR3030_BAS_Cs_ indd

软件测试(TA07)第一学期考试

Abstract arm linux tool-chain root NET-Start! 2

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

自由軟體教學平台

可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目 的 地 後

Microsoft PowerPoint - AWOL - Acrobat Windows Outlook.ppt [Compatibility Mode]

f2.eps

Windows 2000 Server for T100

PowerPoint Presentation

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

CANVIO_AEROCAST_CS_EN.indd

錄...1 說...2 說 說...5 六 率 POST PAY PREPAY DEPOSIT 更

WinMDI 28

SDP

User ID 150 Password - User ID 150 Password Mon- Cam-- Invalid Terminal Mode No User Terminal Mode No User Mon- Cam-- 2

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

網路安全:理論與實務 第二版

untitled

Microsoft Word - 第四組心得.doc

<4D F736F F F696E74202D20312EB9FEB6FBB1F5B9A4D2B5B4F3D1A7D5E7C1BCA3BAC3E6CFF2D1D0BEBFC9FAB8B4CAD4B5C4BDE1B9B9BBAFC3E6CAD4BFBCBACBCCBDCBF7D3EBCAB5BCF92E BBCE6C8DDC4A3CABD5D>

终端安全2

终端安全10

ebook140-11

穨IC-1000

例 度 讀 讀 不 不 來 念 來 了 讀 不 不 讀 不 讀行 利 了 說 更 了 讀

Microsoft PowerPoint - CH 04 Techniques of Circuit Analysis

epub83-1

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

ebook 185-6

热设计网

计算机网络概论

Microsoft Word - Final Exam Review Packet.docx

Measurement Studio Expands Your Test and Measurement Programming Power

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

AN INTRODUCTION TO PHYSICAL COMPUTING USING ARDUINO, GRASSHOPPER, AND FIREFLY (CHINESE EDITION ) INTERACTIVE PROTOTYPING

1 IT IT IT IT Virtual Machine, VM VM VM VM Operating Systems, OS IT

Microsoft Word doc

K7VT2_QIG_v3

untitled

VASP应用运行优化

Microsoft Word - HSK使用手册.doc

audiogram3 Owners Manual

5in1_eDVR_Manual_Chinese.cdr

Sophos Central 快速安裝手冊

Microsoft Word - InoTouch Editor编程软件手册 doc

(Guangzhou) AIT Co, Ltd V 110V [ ]! 2

99 學年度班群總介紹 第 370 期 班群總導 陳怡靜 G45 班群總導 陳怡靜(河馬) A 家 惠如 家浩 T 格 宜蓁 小 霖 怡 家 M 璇 均 蓁 雴 家 數學領域 珈玲 國燈 英領域 Kent

Progress Report of BESIII Slow Control Software Development

編 者 的 話 理 財 的 概 念 要 從 小 培 養 還 記 得 小 時 候, 一 個 香 腸 包 賣 多 少 錢 嗎? 3 元? 4 元? 5 元? 現 在 又 需 要 幾 多 錢 才 可 買 一 個 呢? 6 元? 8 元? 10 元? 十 年 後 又 賣 多 少 錢?( 大 概 20 元 有

712s

Microsoft Word - ChineseSATII .doc

Symantec™ Sygate Enterprise Protection 防护代理安装使用指南

1 目 錄 1. 簡 介 一 般 甄 試 程 序 第 一 階 段 的 準 備 第 二 階 段 的 準 備 每 間 學 校 的 面 試 方 式 各 程 序 我 的 做 法 心 得 及 筆 記 結 論..

Microsoft Word - PS2_linux_guide_cn.doc

簡報技巧

目 录

翻 那 本 日 记, 好 像 和 自 己 赌 气, 好 像 那 个 人 还 在 乎 一 样, 里 面 的 内 容, 因 为 在 较 着 劲, 就 是 不 愿 意 去 看 那 些 甜 蜜 的 过 往 小 小 的 日 记 本 塞 在 行 李 箱 的 底 部, 安 静 地 呆 在 那 儿, 只 是, 不

Simulator By SunLingxi 2003

CX_300 Manual.book

GPRS IP MODEM快速安装说明

EK-STM32F

TPM BIOS Infineon TPM Smart TPM Infineon TPM Smart TPM TPM Smart TPM TPM Advanced Mode...8

K301Q-D VRT中英文说明书141009

Microsoft PowerPoint - Aqua-Sim.pptx

PROLOGUE 不 要 害 怕 化 粧, 請 大 膽 嘗 試 thank you very much 002

工程师培训

USING MAYA ANIMATION Keyset set Maya sets partitions MEL MEL copykey cutkey pastekey scalekey snapkey keytangent bakeresults MEL Command Reference Edi

Microsoft PowerPoint - STU_EC_Ch08.ppt

自动化接口

WTO

Bus Hound 5

GoFlex Home UG Book.book

经华名家讲堂


入學考試網上報名指南

國立中山大學學位論文典藏.PDF

Transcription:

SDN Lab 02 助教:林賢哲 林佳瑩 sdn@imslab.org 2015.11.05

Outline l Highlight l Prologue l Environment introduction l Lab 2-1 create a simple SDN network l Questions part 1 l Lab 2-2 OpenFlow13 vs Legacy Switch l Questions part 2

Highlight

Highlight 熟悉 Estinet 的操作 觀察 SDN 與傳統網路之異同

Prologue Read or Die!!!!

Prologue How to use Estinet on my PC? Several ways to get image which has Estinet with license key Computers @ 65304(windows) - go to C:\Users\User\Documents\Virtual Machine\Fedora - compress the fedora folder and save to your USB TA s USB Download link: https://drive.google.com/open?id=0b0ucp82m_32pcdizqwrmlw1imvk Putting files in the path of your VMware Notes: If you can t find the path of VMware, you can create another useless vm first to make VMware create path.

Prologue Choose I moved it when you open VMware for the first time If you choose it wrong accidently, Estinet can t be executed. Please tell TAs to solve the problem.

Prologue ChooseEstinet Kernel when booting up Fedora (3.11.10.estinet20150430.fc20) 20 (Heisenbug)

Prologue Account Estinet Password Estinet Root_password sdn2015

Prologue Wireshark openflow plugin You need to install this plugin to get openflow packets in wireshark. Download link : https://drive.google.com/file/d/0b0ucp82m_32pt0o1wmlregvac0u/view?usp=sh aring Moveopenflow.soto /usr/lib64/wireshark/plugins/1.10.14 You can use the command below # cp {path of openflow.so} /usr/lib64/wireshark/plugins/1.10.14/

Environment introduction Estinet 9.0

Environment introduction Estinet 9.0 VMware Workstation Player https://my.vmware.com/web/vmware/free Fedora 20 fedora archive link

Environment introduction Execute Estinet Step 4: 視窗一指令 [root@localhost ~]# dispatcher Step 5: 視窗二指令 [root@localhost ~]# coordinator Notes : You can use command # dispatcher_coordinator_estinetgui to execute them together Step 6: 視窗三指令 [root@localhost ~]# estinetgui 13

Environment introduction Steps of simulation 14

Environment introduction [D] 模式 : 繪製拓撲 (Draw Topology) 15

Environment introduction [E] 模式 : 編輯屬性 (Edit Property) 模擬時傳送端的指令 1 2 3 模擬時傳送端的指令 : Start time 1 (sec) Stop time 10 (sec) Command: ttcp -t -s -p 8000 1.0.1.2 16

Environment introduction 模擬時接收端的指令 1 2 3 模擬時接收端的指令 : Start time 1 (sec) Stop time 10 (sec) Command: ttcp -r -s -p 8000 17

Environment introduction 為什麼模擬器內預設應用程式的起始時間是 1 秒鐘? 真實世界的應用程式並不預期作業系統的時間會少於 1 秒鐘 ( 如 Java,OpenDaylight 控制器等 ) 在模擬器內執行這類型的應用程式, 並設定啟動時間小於 1 秒, 將會發生不正常的行為 18

Environment introduction Node Editor 位置 雙擊 Node Host 視窗 Node Editor 滑鼠右鍵點擊 Node Node Editor 19

Environment introduction [R] 模式 : 執行模擬 (Run Simulation) 切換 [R] 模式時詢問訊息 3 1 模擬程式啟動執行 2 若跳出此 warning, 請開啟 Terminal, 輸入 # systemctl stop firewalld.service 來關閉防火牆 20

Environment introduction [P] 模式 : 結果播放 (Play Back) 21

Environment introduction 播放工具控制選項 Frame-rate Control Time Scroll Bar Control Panel Time LCD Time Granularity Control Playing-speed Control 22

Environment introduction 封包箭頭的意義 Link 的顏色 無封包在此 link 中傳送有封包在此 link 中傳送 箭頭大小 長度 : 依據封包長度 傳輸 bandwidth 及 link delay 顯示傳送失敗符號 :X 箭頭顏色 23

Environment introduction 箭頭顏色 有線網路 IPsrc = NodeA or IPdst = NodeB, 該 link 顯示為藍色, 否則為紅色 無線網路 根據封包種類的不同, 其箭頭顏色 箭頭旁的文字各不相同 (80211a DATA) 24

Lab 2-1 create a simple SDN network

Lab 2-1 create a simple SDN network Controller : Ryu OpenFlow : 1.3 Installation and Setup Check the slides last week. No need to worry. Already done for you. 26

Lab 2-1 create a simple SDN network [D] 模式 : 控制面 (Control Plane) OpenFlow Controller OpenFlow Controller Switch OpenFlow 1.3 Switch 27

Lab 2-1 create a simple SDN network 自動連接到 Controller Switch 28

Lab 2-1 create a simple SDN network 連接 Controller 29

Lab 2-1 create a simple SDN network [D] 模式 : 資料面 (Data Plane) 部署 Host Node 5~8 30

Lab 2-1 create a simple SDN network 連接 Host 到 OpenFlow 1.3 Switch 31

Lab 2-1 create a simple SDN network [E] 模式 :G_Setting->Simulation 設定模擬時間及模擬速度 of course you can set different time other than 200 secs 32

Lab 2-1 create a simple SDN network [E] 模式 : 設定節點資訊 1 2 3 33

Lab 2-1 create a simple SDN network 4 Copy to all modules on all nodes with the same type 5 34

Node 1./ryu-manager ofctl_rest.py simple_switch_13.py Start Time: 1 sec Stop Time: 200 sec Command:./ryu-manager ofctl_rest.py simple_switch_13.py 35

Node Node 5 8 Start Time: 1 sec Stop Time: 200 sec Command: ttcp -t -u -s -p 8000 1.0.2.4 Start Time: 1 sec Stop Time: 200 sec Command: ttcp -r -u -s -p 8000 -w node8.log 36

Lab 2-1 create a simple SDN network Tcpdump(add on the nodes you want to monitor) tcpdump -U -i eth1 -w controller.log Start Time: 1 sec Stop Time: 200 sec Command: tcpdump -U -i eth1 -w controller.log Notes: number of eth is the same as the port ID The parameter of w means filename of log

Lab 2-1 create a simple SDN network Tcpdump After simulation, you can usethe command belowin terminal # wireshark {path to the log file}

Lab 2-1 create a simple SDN network [R] 模式 : 執行模擬 : Simulation Run 模擬中進入 OFSwitch_V13 模組 1 2 39

Lab 2-1 create a simple SDN network Openanother Terminal Use curl at run time to get switches ID # curl http://1.0.1.1:8080/stats/switches 1.0.1.1 is your controller s IP Use curl at run time to add flow For example, forward packets from port 2 to port 4 (check the slides last week) # curl -X POST -d '{"dpid": "3", "cookie":1, "priority":"0", "match":{"in_port":2}, "actions":[{"type":"output", "port":4}]}' http://1.0.1.1:8080/stats/flowentry/add

Lab 2-1 create a simple SDN network [R] 模式 :Run Simulation 期間, 查看 switches 的 Flow Table 4 3 41

Lab 2-1 create a simple SDN network [P] 模式 : 模擬結果 42

Questions Part 1

Questions part 1 觀察 flow table 從沒有 flow 到有 flow ( 截圖 ) (20pt) 用 wireshark 分析 log 檔, 解釋在 ryu 上有無執行 simple_switch_13.py 的差異 ( 說明為主, 截圖為輔 ) (30pt) Flow Packets

Lab 2-2 OpenFlow13 vs Legacy Switch

Lab 2-2 OpenFlow13 vs Legacy Switch [D] 模式 : 繪製網路拓撲 OpenFlow Controller OpenFlow Controller Switch OpenFlow 1.3 Switch Switch 46

Lab 2-2 OpenFlow13 vs Legacy Switch [E] 模式 : 設定模擬時間 47

Lab 2-2 OpenFlow13 vs Legacy Switch [E] 模式 :SDN 網路拓撲設定 設定 Node3 ~ Node12 中的 OFSwitch_V13 模組 Controller IP 為 Node1 的 IP 48

Node 1 Nox 1.3 控制器的啟動指令 Start Time: 1 sec Stop Time: 50 sec Command: nox_core -i ptcp: switch Notes: You can use nox or ryu as you like. 49

Node Node 13 24 Start Time: 1 sec Stop Time: 50 sec Command: ttcp -t -s -p 8000 1.0.2.12 Start Time: 1 sec Stop Time: 50 sec Command: ttcp -r -s -p 8000 -w node24.log 50

Node Node 17 20 Start Time: 1 sec Stop Time: 50 sec Command: ttcp -t -s -p 8002 1.0.2.8 Start Time: 1 sec Stop Time: 50 sec Command: ttcp -r -u -s -p 8002 -w node20.log 51

Node Node 35 46 Start Time: 1 sec Stop Time: 50 sec Command: ttcp -t -s -p 8001 1.0.3.12 Start Time: 1 sec Stop Time: 50 sec Command: ttcp -r -s -p 8001 -w node46.log 52

Node Node 39 42 Start Time: 1 sec Stop Time: 50 sec Command: ttcp -t -s -p 8003 1.0.3.8 Start Time: 1 sec Stop Time: 50 sec Command: ttcp -r -s -p 8003 -w node42.log 53

Lab 2-2 OpenFlow13 vs Legacy Switch [R] 模式 : Simulation Run [P] 模式 : 傳統交換器 : 執行 Learning Bridge Protocol, 將 ARP 要求 Flood 給整個網路, 直到透過 Node46 及 Node42 的 ARP 回覆才知道收端的位置 SDN 網路 : 先由 OpenFlow 控制器收集整體網路的資訊, 在傳統網路找到目的地的同時,SDN 架構中的控制器仍在蒐集網路資訊 54

Lab 2-2 OpenFlow13 vs Legacy Switch 送端送出 ARP Request 封包 55

Lab 2-2 OpenFlow13 vs Legacy Switch 傳統交換器網路將 ARP 要求 Flood 給整個網路 56

Lab 2-2 OpenFlow13 vs Legacy Switch 收端 Node42 ARP 回覆 57

Lab 2-2 OpenFlow13 vs Legacy Switch 收端 Node46 ARP 回覆 58

Lab 2-2 OpenFlow13 vs Legacy Switch 控制器蒐集網路資訊 59

Lab 2-2 OpenFlow13 vs Legacy Switch SDN 開始通訊 60

Questions Part 2

Grading Please describe the difference of the packets behaviors between SDN and traditional network. Tag some snapshot to promote your points. (50pt)

Reference EstiNet 網路模擬實驗與應用 作者 : 王協源, 陳永昇, 柯志亨, 思銳科技追蹤作者 新功能介紹 出版社 : 旗標