sdn training - open daylight installation + example with mininet
DESCRIPTION
SDN Training - Open daylight installation + example with mininetTRANSCRIPT
![Page 1: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/1.jpg)
OpenDaylight, FloodLight stallation, and Example with Mininet
OpenDaylight-Installation + Example with Mininet
https://wiki.opendaylight.org/view/OpenDaylight_Controller:Installation
Download VM with both OpenDayLight, FloodLight and Mininet
http://yuba.stanford.edu/~srini/tutorial/SDN_tutorial_VM_64bit.ova
user: ubuntu password: ubuntu
Edit /etc/bash.bashrc
Add the following line:
PATH=$PATH:/var/lib/gems/1.8/gems/trema-0.3.19/objects/openvswitch/bin
Mininet Sample Virtual Network
Start Minit with this topology
su -
sudo mn --topo=tree,3 --mac --switch=ovsk --controller=remote,ip=a.b.c.d
where IP is the address of your VM (Remote OpenDayLight Controller VM/Server)
OpenDaylight Example
Start OpenDayLight
cd opendaylight/opendaylight/distribution/opendaylight/target/distribution.opendaylight-osgipackage/opendaylight
sudo ./run.sh
![Page 2: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/2.jpg)
Open OpenDayLight GUI
localhost:8080
user: admin password: admin
Using the Simple Forwarding Application
The OpenDaylight Controller includes an application called Simple Forwarding that lets you use the basic services for making forwarding decisions and install flows across all devices on the Openflow network. This application discovers the presence of a host via ARP message and installs dest-only /32 entries across all switches in the network, with the corresponding output ports toward the host.
![Page 3: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/3.jpg)
1. With OpenDaylight Controller and Mininet running as described in previous sections, log into the web interface.
![Page 4: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/4.jpg)
2. Drag and drop devices to organize the topology into its logical arrangement, then save the configuration.
![Page 5: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/5.jpg)
3. Click the Add Gateway IP Address button (shown above) and add the IP and subnet of 10.0.0.254/8
4 Confirm that hosts are now reachable from one another. On the console where Mininet is running, have one host ping another.
mininet> h1 ping h7PING 10.0.0.7 (10.0.0.7) 56(84) bytes of data.64 bytes from 10.0.0.7: icmp_req=1 ttl=64 time=1.52 ms64 bytes from 10.0.0.7: icmp_req=2 ttl=64 time=0.054 ms64 bytes from 10.0.0.7: icmp_req=3 ttl=64 time=0.060 ms64 bytes from 10.0.0.7: icmp_req=4 ttl=64 time=0.052 ms--- 10.0.0.7 ping statistics ---4 packets transmitted, 4 received, 0% packet loss, time 2999msrtt min/avg/max/mdev = 0.052/0.422/1.523/0.635 msmininet>
![Page 6: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/6.jpg)
5. Click the Troubleshooting tab and then load the Flow Details for one of the switches.
![Page 8: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/8.jpg)
FloodLight Example
Start FloodLight
cd floodlight
./floodlight.sh
Note: use the same previous Mininet Virtual network
sudo mn --topo=tree,3 --mac --switch=ovsk --controller=remote,ip=a.b.c.d
Open OpenDayLight GUI
localhost:8080/ui/index.html
![Page 9: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/9.jpg)
![Page 10: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/10.jpg)
Sample FloodLight Java Application
Avior is an application built outside of floodlight that gives network administrators a graphical user interface to support their needs. Avior eliminates dependency on using python scripts or viewing the restAPI in order to monitor or manipulate the network.
Download from: http://openflow.marist.edu/avior
Enter IP of the remote controller (i.e. machine running FloodLight).
![Page 11: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/11.jpg)
Controller Information
Switch Information
![Page 12: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/12.jpg)
Hosts/Servers Information
Flow Manager Sample Application
![Page 13: SDN Training - Open daylight installation + example with mininet](https://reader035.vdocuments.net/reader035/viewer/2022081416/55395dc1550346b82d8b4a66/html5/thumbnails/13.jpg)
Firewall Sample Application
Also available, a QoS Java Application: https://github.com/wallnerryan/floodlight-qos-beta