Computer Networks Project 2 & HW 1 By Qian Yan (qiany7@) 1 - - PowerPoint PPT Presentation

computer networks
SMART_READER_LITE
LIVE PREVIEW

Computer Networks Project 2 & HW 1 By Qian Yan (qiany7@) 1 - - PowerPoint PPT Presentation

Computer Networks Project 2 & HW 1 By Qian Yan (qiany7@) 1 Software Defined Network (SDN) Controller Switch OpenFlow Control Data Plane Plane Making decisions Perform actions How to forward data Forward Order to


slide-1
SLIDE 1

Computer Networks

Project 2 & HW 1 By Qian Yan (qiany7@)

slide-2
SLIDE 2

1

slide-3
SLIDE 3

Software Defined Network (SDN)

Computer Networks 3

Control Plane Data Plane

  • Making decisions
  • How to forward data
  • Order to send data
  • Perform actions
  • Forward
  • Route

Controller Switch OpenFlow

slide-4
SLIDE 4

Mininet & Pox

▶ Mininet: software that creates a virtual network ▶ Set up switches, connect components, ping ▶ Helpful links:

▶ https://github.com/mininet/mininet/wiki/Documentation ▶ https://github.com/mininet/mininet/wiki/Introduction-to-Mininet

#creating ▶ Pox: a Python-based SDN controller platform geared

towards research and education

▶ https://github.com/mininet/openflow-tutorial/wiki/Create-a-Lear

ning-Switch#Controller_Choice_POX_Python

▶ https://haryachyy.wordpress.com/2014/06/14/learning-pox-openfl

  • w-controller-proactive-approach/

Computer Networks 4

slide-5
SLIDE 5

Mininet: Download & Install

▶ Download VirtualBox ▶ Download Mininet Image ▶ http://mininet.org/download/ ▶ Log in to the box: username & password “mininet” ▶ sudo mn (options) ▶ Demo

Computer Networks 5

slide-6
SLIDE 6

VirtualBox with ssh (optional)

▶ For easier access, set up ssh connection to our VM ▶ Port forwarding: ▶ Forwarding a localhost port to port 22 (ssh) on the virtual machine ▶ ssh mininet@127.0.0.1 -p 2222 ▶ Copy files: ▶ scp -P 2222 part1.py mininet@localhost:~/ ▶ Another way: sshfs can be used to mount a remote fs to your local fs ▶ sshfs -p 3000 mininet@127.0.0.1:/home/mininet/cse461 ~/attu/

Computer Networks 6 http://blog.johannesmp.com/2017/01/25/port-forwarding-ssh-from-virtualbox/

slide-7
SLIDE 7

Project 2: Part 1

▶ Your task in part one is to modify part1.py to represent

the following network topology:

Computer Networks 7

S1 H1 H2 H4 H3

slide-8
SLIDE 8

Project 2: Part 1

▶ Run: ▶ sudo mn --custom ./topos/part1.py --topo part1 ▶ sudo python part1.py ▶ dump, pingall, <h1> ping <h2>, iperf

Computer Networks 8

slide-9
SLIDE 9

END

Computer Networks 9