Friday, December 5, 2014

Composing Software-Defined Networks

We at Distributed Systems Group (GSD) of INESC-ID Lisboa have regular technical meetings, where we discuss some papers that we have published recently, or are going to publish in the near future. We also discuss some external research work that is interesting to the research group. Recently I presented Pyretic, a language for composing software-defined networking, with the help of the original video recordings. The complete video can be found below, explaining the language for a modular software-defined networking.


My profile at GSD/INESC-ID can be found at http://www.gsd.inesc-id.pt/~pradeeban/

[TAVM] The Value of zSeries Virtualization Technology for Linux

We have 3 presentations to be done for the Advanced Virtualization Techniques (TAVM) module. I presented z/VM for this. The presentation slides are given below, which are a sub set of slides adopted from the slides of the original developers.


Sunday, November 30, 2014

SDNSim, A Compact Simulator for Software-Defined Networking

Magnificent view from Cacilhas..
The weather is getting colder. I am reaching my third winter in Lisbon. Time indeed goes fast. I am currently building SDNSim, a compact and expressive simulator for Software-Defined Networking (SDN) built using Java, extending the xSDN, an Expressive Simulator for Dynamic Network Flows.

Today I marked all the emails in Gmail as "Read". It was slightly more than 6000, just in the inbox, excluding the filters. This was my first time to have zero-unread-email, since the emails were adding up since late 2008, in the scales of 1000s. Never marked the emails read in bulk before. Gmail took a bit of time to make this transaction, and Gmail was unavailable for a minute or two. Having a cleaner looking Gmail now. :D You may read this post to learn how to mark all your unread emails in your Gmail account "read" in one shot.

Thursday, October 23, 2014

Configuring OpenDaylight Controller with Mininet

OpenDaylight with network emulated by Mininet
Once you have built OpenDaylight controller (or just chose to use the built OpenDaylight controller bundle), you may build and test the SDN solutions, with either networks or networks of virtual machines. Network emulators such as Mininet provide an effective alternative for SDN prototyping. Mininet can easily be installed from the regular repositories in Ubuntu.
$ sudo apt-get install mininet

Run OpenDaylight Controller (often as super user, for the privileges).
$ cd ~/OpenDayLight/controller/opendaylight/distribution/opendaylight/target/opendaylight
$ ./run.sh


Starting Mininet, for example, with a three-level tree topology.
The below command creates a tree topology with 3 levels.
$ sudo mn --controller=remote,ip=127.0.0.1 --topo tree,3
 
[sudo] password for pradeeban:
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2 h3 h4 h5 h6 h7 h8
*** Adding switches:
s1 s2 s3 s4 s5 s6 s7
*** Adding links:
(h1, s3) (h2, s3) (h3, s4) (h4, s4) (h5, s6) (h6, s6) (h7, s7) (h8, s7) (s1, s2) (s1, s5) (s2, s3) (s2, s4) (s5, s6) (s5, s7)
*** Configuring hosts
h1 h2 h3 h4 h5 h6 h7 h8
*** Starting controller
*** Starting 7 switches
s1 s2 s3 s4 s5 s6 s7
*** Starting CLI:
mininet>

OpenDaylight OSGi console would produce the below logs connecting to the network topology emulated by Mininet.

osgi>
osgi> 2014-10-16 11:58:07.606 WEST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller  - Switch:127.0.0.1:33215 is connected to the Controller
2014-10-16 11:58:08.450 WEST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller  - Switch:127.0.0.1:33216 is connected to the Controller
2014-10-16 11:58:08.502 WEST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller  - Switch:127.0.0.1:33217 is connected to the Controller
2014-10-16 11:58:08.552 WEST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller  - Switch:127.0.0.1:33218 is connected to the Controller
2014-10-16 11:58:08.613 WEST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller  - Switch:127.0.0.1:33219 is connected to the Controller
2014-10-16 11:58:08.686 WEST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller  - Switch:127.0.0.1:33220 is connected to the Controller
2014-10-16 11:58:08.770 WEST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller  - Switch:127.0.0.1:33221 is connected to the Controller
2014-10-16 11:58:08.849 WEST [ControllerI/O Thread] INFO  o.o.c.p.o.core.internal.Controller  - Switch:127.0.0.1:33222 is connected to the Controller

osgi>

The connected networked devices can be monitored from the admin console of OpenDaylight. In the default configurations, you may access the admin console in a browser from the url, http://127.0.0.1:8080, with user name and password 'admin'.


Different Topology options
Network topologies can be visualized using Mininet and OpenDaylight. While a few topologies are available out of the box with Mininet, more custom topologies can be programmed as well.

1. Single node with 5 ports 
$ sudo mn --controller=remote,ip=127.0.0.1 --topo single,5

2. Linear topology with 5 nodes
$ sudo mn --controller=remote,ip=127.0.0.1 --topo linear,5

3. Tree topology
a. 3-ary, 2 level tree

$ sudo mn --controller=remote,ip=127.0.0.1 --topo tree,depth=2,fanout=3

b. 3-ary, 4 level tree 
(This looks a bit messy)
 $ sudo mn --controller=remote,ip=127.0.0.1 --topo tree,depth=4,fanout=3

OpenDaylight wiki page mentions that only the Mininet in a VM (option #1) is tested with the OpenDaylight controller. However, as seen in this post, Mininet works well with OpenDaylight even in the Mininet installation from the packages (option #3).

Tuesday, October 21, 2014

Cheese Alternatives for Ubuntu..

If you want to take a photo of yourself using your laptop camera, say in a conference hall, or when someone else is presenting his project, without disturbing others, tools such as cheese come handy.

Cheese is a function-rich tool. However, the photos it takes are not of a good quality. Though the tool can be configured, this issue is not addressed. I found a few alternatives for Ubuntu - kamoso, camorama, and guvcview (GTK UVC Video Viewer). Just like cheese, all of these can be easily installed in Ubuntu from the repositories, using, 
$ sudo apt-get install kamoso camorama guvcview cheese

Among the tools, unfortunately the photos taken using guvcview are crashed and could not be opened in Ubuntu 14.04 LTS when I tried. The below error was produced when I opened the captured image.
Could not load image 'guvcview_image-3.jpg'.
Error interpreting JPEG image file (Quantization table 0x00 was not defined

Kamoso is good and can be configured; though it does not have all the fancy features of cheese, it produces somewhat better photos and also can capture videos as well as images in the burst (multiple photos with a specified time interval) mode.

Among all the tools that I have tried, camorama seemed to produce the best quality images. It also provides easy options to change the resolutions (small - 160 * 120, medium - 320 * 240, and large - 1280*720). Unlike the other tools, this does not provide options to capture videos or images in the burst mode. However, it does what it is supposed to do, perfectly.