Wednesday, July 10, 2019

My Ph.D. Defense - Software-Defined Systems for Network-Aware Service Composition and Workflow Placement

I successfully defended my Ph.D. thesis at IST (Tecnico) - ULisboa, Lisbon, Portugal on the 1st of July 2019. I passed with a distinction. My presentation slides and the abstract are given below.


Composing complex workflows efficiently from diverse services on the Internet requires communication and coordination across heterogeneous execution environments, ranging from data centers and clouds to the edge managed by different infrastructure providers. Through complete virtualization of network and its services, network softwarization provides efficient management of network architecture. This dissertation exploits the flexibility and management benefits of the network softwarization to solve the problems of service composition and workflow placement at Internet scale. We present two main contributions: first, a set of extensions to network softwarization to simplify and enhance application development and deployment, and second, a scalable architecture to compose service chains in wide area networks. Finally, we evaluate these contributions in the context of big data applications. We thus intend to mitigate the challenges concerning resource management and interoperability of heterogeneous infrastructures, to efficiently compose and schedule various service workflows at Internet scale, while sharing the network and the computing resources among several users.

Network Softwarization revolutionizes the network landscape in various stages, from building, incrementally deploying, and maintaining the environment. Software-Defined Networking (SDN) and Network Functions Virtualization (NFV) are two core tenets of network softwarization. SDN offers a logically centralized control plane by abstracting away the control of the network devices in the data plane. NFV virtualizes dedicated hardware middleboxes and deploys them on top of servers and data centers as network functions. Despite its growing application, network softwarization has not been fully exploited for effectively composing service workflows of multiple users sharing third-party network infrastructures and services. To this end, we propose our contributions to extend network softwarization for network-aware service composition and workflow placement in heterogeneous infrastructures.

First, we separate network from infrastructure by exploiting network softwarization to move out of data centers toward the edge seamlessly, and from simulations to actual deployments, with little or no additional development effort. We extend SDN in cloud and data center environments to unify various phases of development, by uniformly managing the executions of the network applications from an extended SDN controller, regardless of the execution environment and phase. We thus deploy the workloads seamlessly across the phases, from simulations and emulations to physical deployment environments. We further extend this work to support multiple Service Level Agreements (SLAs) across diverse network flows in data centers, by selectively enforcing redundancy on the network flows. Thus, we aim for Quality of Service (QoS) and efficient resource provisioning, while adhering to user policies. Finally, we design a cloud-assisted overlay network, as a latency-aware virtual connectivity provider. Consequently, we propose cost-efficient data transfers and workflow executions at Internet scale.

Second, we propose a scalable architecture to compose service chains in wide area networks efficiently. We exploit SDN and Message-Oriented Middleware (MOM) for a logically centralized composition and execution of service workflows. We thus propose a Software-Defined Service Composition (SDSC) framework for web service compositions, Network Service Chains (NSCs), and a network-aware execution of data services. We further present Software-Defined Systems (SDS) consisting of virtual network allocation strategies for multi-tenant service executions in large-scale networks comprised of multiple domains.

Finally, we investigate how our proposed SDS can operate efficiently for real-world application scenarios of heterogeneous infrastructures. While traditionally web services are built following standards and best practices such as Web Services Description Language (WSDL), network services and data services offered by different service providers often fall short in providing common Application Programming Interfaces (APIs), thus resulting in vendor lock-in. We look into facilitating interoperability across service implementations and deployments, to enable seamless workflow executions and service migrations. We propose big data applications and smart environments such as Cyber-Physical Systems (CPS) and the Internet of Things (IoT) as our two application scenarios. We thus build CPS and big data applications as composable service chains, offering them an interoperable execution.

Our research contributions highlight that network softwarization can be used to build and deploy network applications with minimal repetitive effort, from initial design and development stages to production. Evaluations on the proposed SDS demonstrate performance and economic benefits to service composition and workflow placement at various scales, from data centers to the Internet. By managing and leveraging redundancy in the network flows and network paths, our SDS prototypes ensure that SLAs are met in the critical network flows of multi-tenant systems. Furthermore, our SDS framework reduces Internet latency by up to 30%, yet in an economic approach. Finally, we elaborate the broader applicability of our proposed SDS by extending it to CPS and big data applications.

Saturday, June 22, 2019

IPSec VPN Configuration on Ubuntu 18.04

This was something I had to do repeatedly on all my Linux laptops. I found that you must follow *both* 2 articles listed below in the same order, to get it working!




The package to install in Ubuntu 18.04 can be found here.

Saturday, May 18, 2019

Thermald and MCE error

I randomly kept getting the below errors in my Centos laptop. I installed thermald. It seems the error is fixed for now. Let's see. :)

Message from syslogd@llovizna-lenovo at Apr 17 14:29:02 ...
 kernel:mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 5: ee0000000040110a

Message from syslogd@llovizna-lenovo at Apr 17 14:29:02 ...
 kernel:mce: [Hardware Error]: TSC 0 ADDR fef81fc0 MISC 78a0000086

Message from syslogd@llovizna-lenovo at Apr 17 14:29:02 ...
 kernel:mce: [Hardware Error]: PROCESSOR 0:40651 TIME 1555525734 SOCKET 0 APIC 0 microcode 24

Message from syslogd@llovizna-lenovo at Apr 17 14:29:02 ...
 kernel:mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 6: ee0000000040110a

Message from syslogd@llovizna-lenovo at Apr 17 14:29:02 ...
 kernel:mce: [Hardware Error]: TSC 0 ADDR fef82100 MISC 78a0000086

Message from syslogd@llovizna-lenovo at Apr 17 14:29:02 ...
 kernel:mce: [Hardware Error]: PROCESSOR 0:40651 TIME 1555525734 SOCKET 0 APIC 0 microcode 24







$  dmesg | grep -i 'mce:'
[    0.023131] mce: CPU supports 7 MCE banks
[    1.037974] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 6: ae0000000040110a
[    1.038009] mce: [Hardware Error]: TSC 0 ADDR fef87380 MISC 278a0000086
[    1.038033] mce: [Hardware Error]: PROCESSOR 0:40651 TIME 1555486489 SOCKET 0 APIC 0 microcode 24
[  300.672620] mce: [Hardware Error]: Machine check events logged
[24841.300647] mce: [Hardware Error]: Machine check events logged
[24841.300730] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 5: ee0000000040110a
[24841.300735] mce: [Hardware Error]: TSC 0 ADDR fef81fc0 MISC 78a0000086
[24841.300739] mce: [Hardware Error]: PROCESSOR 0:40651 TIME 1555525734 SOCKET 0 APIC 0 microcode 24
[24841.300743] mce: [Hardware Error]: CPU 0: Machine Check: 0 Bank 6: ee0000000040110a
[24841.300747] mce: [Hardware Error]: TSC 0 ADDR fef82100 MISC 78a0000086
[24841.300750] mce: [Hardware Error]: PROCESSOR 0:40651 TIME 1555525734 SOCKET 0 APIC 0 microcode 24


Wednesday, May 8, 2019

Hosting a RIPE ATLAS Probe in Atlanta

My RIPE ATLAS Probe
I used RIPE Atlas for my Internet measurements in my IFIP Networking 2018 paper (NetUber: A cloud-assisted overlay network as an alternative connectivity provider) and consequently my thesis. I consumed the RIPE Atlas credits from my co-author for those experiments. Afterward, I requested RIPE to send me a probe, and now I have received it! I have connected it to my home router. My probe is currently connected to the RIPE Atlas network and started receiving traffic. I am happy to contribute back to the Internet measurements community! Now I am accumulating RIPE Atlas credits every day. Time for a very large-scale Internet measurement experiment.

Sunday, April 14, 2019

My EMDC Erasmus Mundus Journey

KTH Welcome Reception at Stockholm City Hall, 2013
7 years ago in 2012 August, I arrived in Lisbon for my Erasmus Mundus masters program, European Master in Distributed Computing (EMDC). My mobility was, IST (Lisboa, Portugal) -> KTH (Stockholm, Sweden). My first academic year should be in Portugal and the third semester (first half of the second academic year) should be in Sweden. The final semester is the thesis, and it was proposed that it should be in KTH, Sweden, although it was not set in stone, unlike the first 3 semesters.

KTH Main Campus in Summer
Initially, my grant was in a waiting list, and I was careful with the money. But I was approved for the full scholarship, Category "A" soon after. This eliminated my worry about money. I had planned to spend just one year in Portugal and the second year in Sweden. However, I decided to come back to IST for my final semester for my master thesis.

The first semester was interesting. Everything was new. We had a group of international students doing our Erasmus Mundus program. We all were always together. We also had other international students from various other mobility programs.

KTH Main Campus in Autumn
Portugal was my 4th country to visit. Lisbon was my second city in Europe. My first trip was in 2010 to Paris. Of course, at first, Lisbon felt underwhelming compared to my expectations based on Paris. However, it became a positive experience quickly. We had 2 out of the 4 courses of the first semester in Taguspark. We would take the IST shuttle in the morning to commute to Taguspark campus from the Alameda campus. My apartment was in a walking distance to the Alameda campus where we had most of the lectures. We often had meals in the canteen - the Taguspark canteen was much better than the ones in Alameda. We also had a winter event in Nuria, Spain in the snowy mountains. We enjoyed the snow and the -11℃.

View of the Langholmen island, Stockholm
Our move to Stockholm was smooth. We had more students in KTH/Sweden in our group compared to IST/Portugal, as all the students of EMDC had to spend one semester in KTH. While we spent our first year in IST, Portugal, the other half of us had spent their time in UPC, Barcelona, Spain. Stockholm was fun. It had lots of lakes and forests. Its metro stations were beautiful. It also had a popular story involving a discontinued metro station, Kymlinge, and an old Silverpilen (silver arrow), the Ghost Train. Summer was long and comfortable. Winter was depressingly dark. But inside our apartment, it was warm enough. Unlike Lisboa, Stockholm had a good central heating.

EMDC Summer Event in Fejan
For the final semester, I decided to come back to IST for the master thesis. Everyone else either stayed at KTH or went on to different companies or research labs. So I was back to INESC-ID Lisboa. But my experience was entirely different from 2012 and 2013 when I had a big group. Anyway, I successfully completed EMDC, with a score of 18/20 for the master thesis, with 2 publications (at MASCOTS and UCC). I also worked at UniPlaces as a part-time software engineer by the end of the 3rd semester to early 4th semester.

Gamla Stan
Masters in Europe, specifically the Erasmus Mundus mobility programs, are very exciting. I decided to continue my higher education in Europe with Erasmus Mundus. I applied for EMJD-DC (Erasmus Mundus Joint Doctorate in Distributed Computing) and got selected with the category A scholarship. Finally, my EMDC came to a successful end.

We also had 2 graduation ceremonies. One for KTH at the Stockholm city hall where they usually present the Nobel awards! We also had our welcome reception in the city hall when we arrived in Stockholm. Most of us had a reunion there meeting our friends after a long time during the KTH graduation ceremony. We also had a graduation ceremony at IST. But unfortunately, it was only me who was attending. Luckily, I was staying in Lisboa for my EMJD-DC at that time. Overall, EMDC left me with very happy memories and no regrets! Given a chance, I would not do anything different. :)