<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ravi Kumar Prasad on Medium]]></title>
        <description><![CDATA[Stories by Ravi Kumar Prasad on Medium]]></description>
        <link>https://medium.com/@ravikp7?source=rss-27305b9fcfb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Gr4JDFHgvNPBjKDq.</url>
            <title>Stories by Ravi Kumar Prasad on Medium</title>
            <link>https://medium.com/@ravikp7?source=rss-27305b9fcfb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 04:16:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ravikp7/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Understanding Software Defined Networking]]></title>
            <link>https://medium.com/@ravikp7/understanding-software-defined-networking-82bc0e723bac?source=rss-27305b9fcfb------2</link>
            <guid isPermaLink="false">https://medium.com/p/82bc0e723bac</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[software-defined-networks]]></category>
            <category><![CDATA[computer-network]]></category>
            <dc:creator><![CDATA[Ravi Kumar Prasad]]></dc:creator>
            <pubDate>Mon, 14 Jan 2019 01:35:56 GMT</pubDate>
            <atom:updated>2019-01-14T01:35:56.718Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*-CJ3mr5-cqoAWazS.jpg" /></figure><p>As a part of <a href="https://www.pesto.tech/">Pesto’s career accelerator program</a>, I was asked to read a research paper and summarise it in a blog post.</p><p>I’ve keen interest in Computer networks, I also played with a bunch of network protocols and lot of packets during my GSoC internships while developing a bootloader server and TCP/IP proxy server. So, for the research paper topic I decided to choose one from networking. First, I picked a <a href="https://osf.io/6qzxc/">paper on Datacenter Traffic Control</a>, but sooner than later, I realised that it was going above my head as I don’t have that much experience to understand the complexities linked with it and those technical jargon. So, I hopped to a <a href="https://dl.acm.org/citation.cfm?id=2486019">paper on a specific case study of Google deploying a SDN WAN</a>. And guess what? Same problem, now I needed to understand first what is a “Software Defined Network” actually. Finally settled with a <a href="https://ieeexplore.ieee.org/document/6994333">IEEE research paper on SDN</a>.</p><h3><strong>Really, is this a thing?</strong></h3><p>You’re right in thinking that if not software, what was that in my router that was doing all the networking stuff, and if that’s software, what’s new about this term <strong>Software Defined Networking</strong> ? Well, it’s a paradigm in implementation of computer networks.</p><blockquote><strong>SDN refers to a network architecture where the forwarding state in the data plane is managed by a remote control plane decoupled from<br>the former.</strong></blockquote><p>A lot of jargon? Yes, let’s first understand the underlying problem with the traditional networking techniques and then learn about what it is and how it solves the problem.</p><h3>Moving from a Distributed to Centralised Internet World</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/490/0*fHxGK2qzol0M0Wds.jpg" /><figcaption>That’s <strong>Robert Elliot Kahn, </strong>co-inventor of TCP/IP protocols, heart of internet</figcaption></figure><p>Internet once thought of realising the dream of Nikola Tesla in connecting the whole world as a huge network like our own brain, has now become controlled entities of some major organisations. But, whether it’s good or bad is another point of discussion.</p><p>On the positive note, we’ve got hassle free lives, from Maps, search, videos, social networks, food, cabs, shopping, home automation, jobs, startups everything at just a click away. We are generating and consuming a lot of data and this lots of data needs much more networking capabilities than ever. To have a figure, Google receives 3.5 billion search requests per day on average.</p><h3>Here come Data Centers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wtkj4OQRoyWRsn0K" /><figcaption>Data Center</figcaption></figure><p>All major organisations in the world have set up Data Centers all around the world which cater to the enormous network requests from the people using the internet. Data centers also need to communicate with each other for having multiple copies of data, fault tolerance, data synchronisation etc. And, here’s a surprise, the total traffic volume within a data center is often much more than that of entering or leaving it. If you want to learn more about this, read the first paper that I mentioned. So, the problem arises when we’ve to scale network devices for such low latency, high bandwidth and dynamic environment.</p><h4>A basic networking device</h4><p>Let’s take a look at a basic networking device first. What comes to your mind? Your Wi-Fi router? Yes, it’s your gateway to the internet. It gets request from all your devices phone, laptop etc. in form of network packets and routes them to your ISP through the WAN cable connected to it and gets them back to you the follow up data. Did you control your router with your phone or pc while doing all this stuff? No, it’s intelligent, it has software installed inside to do those things, you just needed to configure it once when you bought it.</p><p>Similar devices with some extra features like more ports, more protocols support can be stacked up to form a large network like in a data center. But it gets complicated as it’s scaled up. As these type of networks are vertically integrated. The <strong>control plane</strong> (that decides how to handle network traffic) and the <strong>data plane</strong> (that forwards traffic according to the decisions made by the control plane) are bundled inside the networking devices, reducing flexibility and hindering innovation and evolution of the networking<br>infrastructure. Also, even if they are configurable they need some vendor specific commands adding up more complexity. And we don’t want our Server Guy to end up like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/0*gF5eQxBw8GMx0F1E.jpg" /></figure><h3>Solution is abstraction of layers</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/0*ZHXEhPpuC8KzgLOp" /><figcaption>Simplified view of SDN architecture</figcaption></figure><p>SDN allows thinking of networking along two fundamental concepts, which are common in other disciplines of computer science: a) separation of concerns (leveraging the concept of abstraction) and b) recursion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*kq_0cq9XV4BEY2OBw3ovXA.png" /><figcaption>Comparison of Conventional and SDN networking</figcaption></figure><p>This paradigm shift in networking has been here just since the beginning of this decade. Though the core idea dates back to 80s and 90s when AT&amp;T used it to solve their telephone network issues with <a href="https://books.google.co.in/books?id=zxwEAAAAMBAJ&amp;pg=PA52&amp;lpg=PA52&amp;dq=ncp+at%26t&amp;source=bl&amp;ots=tM1y2RHXTa&amp;sig=v-_MJ4QmsS1uOLKGJCq-6oUPZiw&amp;hl=en&amp;sa=X&amp;ved=2ahUKEwjCr5Gq9uvfAhXMknAKHZOxB14Q6AEwDnoECAkQAQ#v=onepage&amp;q=ncp%20at%26t&amp;f=false">NCP</a>.</p><p>So, basically our switches become forwarding devices and all control logic is abstracted to a centralised mechanism. SDN separates the below logical concepts in devices which were previously tied in single device.</p><ul><li><strong>Data plane</strong> refers to all the functions and processes that forward packets / frames from one interface to another. Basically, it refers to the networking infrastructure comprised of forwarding devices connected through wires or wireless means.</li><li><strong>Control plane</strong> refers to all the functions and processes that determine which path to use. (Network Brain) Routing protocols, spanning tree etc.</li><li><strong>Management plane</strong> This includes applications such as routing, firewalls, load balancers, monitoring, and so forth.</li></ul><p>Ideally, the forwarding abstraction should allow any forwarding behavior desired by the network application (the control program) while hiding details of the underlying hardware.</p><p><a href="https://en.wikipedia.org/wiki/OpenFlow"><strong>OpenFlow</strong></a> is one realization of such abstraction, which can be seen as the equivalent to a “device driver” in an operating system. OpenFlow provides communication protocols for data plane access enabling API between the switches and SDN controller. An OpenFlow switch has one or more tables of packet handling rules. It’s open source and many companies make OpenFlow complaint switches for seamless compatibility.</p><p>The <a href="https://www.opendaylight.org/"><strong>OpenDaylight</strong></a><strong> Project</strong> is a collaborative open source project hosted by <a href="https://en.wikipedia.org/wiki/The_Linux_Foundation">The Linux Foundation</a>. The goal of the project is to promote software-defined networking (SDN) and <a href="https://en.wikipedia.org/wiki/Network_functions_virtualization">network functions virtualization</a> (NFV). The software is written in the Java programming language.</p><p>Using SDN, operational cost of building and maintaining networking infrastructure can be reduced drastically.</p><h3>SDN architecture</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9x59PCJ7Pk8BaLgK7c93Xw.png" /><figcaption>SDN architecture</figcaption></figure><p>The architecture can be divided into following parts:</p><ul><li><strong>Hardware Infrastructure: </strong>These are the forward devices which are either hardware or software based. They have a set rules for forwarding, modifying headers, or discarding packets defined by South bound interfaces like OpenFlow, ForCES, Protocol-Oblivious Forwarding (POF).</li><li><strong>Southbound Interfaces: </strong>It provides the Southbound API for interaction between data plane and control plane.</li><li><strong>Network Virtualisation (Hypervisor): </strong>With the rise in cloud services like IaaC (Infrastructure as a Cloud) it’s necessary for the data centers to employ network virtualisation which supports arbitrary network topologies and addressing schemas. For this to be made possible, further the data plane can be sliced to have abstractions of various layers which can be used by various services on demand while maintaining a virtual tables in switches.</li><li><strong>Network Operating System: </strong>Similar to a normal operating system which hides all the hardware layer details and provides high level API for applications to perform a variety of operations while managing the resources, NOS also hides the implementation details of forwarding devices from the management plane, providing access to only northbound APIs to the network applications.</li><li><strong>Northbound Interfaces: </strong>These APIs are provided by the NOS to the network applications for the usage of forward devices.</li><li><strong>Language based Virtualisation: </strong>A good virtualisation would be a big virtual switch which abstracts a combination of multiple forwarding devices in different states. Managing switches (forwarding devices) with different network topologies can be a very challenging for software developers, hence specific language to hide these abstractions from developers is required for less complexity. One such programming language is Pyretic (imperative language) which at the time of writing this blog is no longer maintained. Libraries like <a href="https://github.com/danieltt/libnetvirt">libnetvirt</a> are also used for these complex tasks which provide a simpler C++ or python interfaces.</li><li><strong>Programming Languages: </strong>Programming languages such as FML, <a href="https://link.springer.com/chapter/10.1007/978-3-642-03034-5_11">Nettle</a> (designed using Haskell as host language),and Procera are functional and reactive. Being functional they’re robust to fit the use case. Policies and applications written in these languages are based on reactive actions triggered by events (e.g., a new host connected to the network, or the current network load).</li><li><strong>Network Applications: M</strong>ost SDN applications can be grouped in one of five categories: Traffic engineering, Mobility and Wireless, Measurement and Monitoring, Security and Dependability and Data Center networking.</li></ul><h3>Conclusion</h3><p>The main goal of most applications utilising Software Defined Networking is to engineer traffic with goal of minimizing power consumption, maximizing network utilisation and provide optimized load balancing.</p><p>Reading the research paper I got to understand how software is being used to solve the complex networking problem. Most of the concepts of Computer Science that are used everywhere again prove as a saviour here too. There are a lot more details not covered here, I definitely recommend checking out the paper.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82bc0e723bac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GSoC 2018 Final Report : BeagleBoot]]></title>
            <link>https://medium.com/@ravikp7/gsoc-2018-final-report-beagleboot-303fcd41700d?source=rss-27305b9fcfb------2</link>
            <guid isPermaLink="false">https://medium.com/p/303fcd41700d</guid>
            <category><![CDATA[google-summer-of-code]]></category>
            <category><![CDATA[beaglebone-black]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[beaglebone]]></category>
            <dc:creator><![CDATA[Ravi Kumar Prasad]]></dc:creator>
            <pubDate>Tue, 14 Aug 2018 14:23:09 GMT</pubDate>
            <atom:updated>2018-08-21T15:46:12.079Z</atom:updated>
            <content:encoded><![CDATA[<p>This was another great summer spent writing open source code for BeagleBoard.org Foundation under the Google Summer of Code 2018 program. I learnt a lot about computer networks during the program. I want to thank my mentors for this project Jason Kridner and Kumar Abhishek for their guidance throughout the period.</p><p>The project was mainly focused on the following two parts:</p><ol><li>Integrating <a href="https://github.com/ravikp7/node-beagle-boot">node-beagle-boot</a> in Etcher flashing app. Link for commits <a href="https://github.com/ravikp7/etcher/commit/5c819a467c107e7f5cdf9d36b155695171aae3da">1</a> and <a href="https://github.com/ravikp7/etcher/commit/79dae6c2b38f8a8b844316981113e0806aa87d2f">2</a>.</li><li>TCP/IP proxy server for BeagleBone(AM335x) devices. Link for <a href="https://github.com/ravikp7/node-beagle-boot/tree/tcpip">repository</a>.</li></ol><p>Etcher is a very popular app in the community of Raspberry Pi and BeagleBone users for image flashing needs. This work now adds ability to boot BeagleBone board in USB mass storage mode for flashing directly from etcher app. Unfortunately, the pull request couldn’t be submitted due to cross platform issues. We hope to fix it soon.</p><p>Next, let’s look into why we needed a TCP/IP proxy server and what it does. We needed the BeagleBone board to access internet over USB. The BeagleBone board running Debian OS, when connected to PC over USB, it shows up as a Linux Composite Device. It provides following four interfaces:</p><ol><li>RNDIS interface (Acts as Network card for networking on Windows)</li><li>CDC ECM interface (Acts as Network card for networking on LInux, OSX)</li><li>CDC ACM interface (For USB Serial)</li><li>USB Mass Storage (For serving “Get Started” pages)</li></ol><p>So, the board on connection shows up as a network card on all platforms. But for internet access in board, host specific configuration needs to be done in order to forward packets. Like, internet sharing option in Windows.</p><p>To circumvent all these host specific configuration, we needed an app which does all these packet forwarding on all platforms. So, here comes the TCP/IP proxy server in picture. I’ve used the CDC ECM interface to capture and send ethernet packets to the board. If I go on to explain all the project details here, then it’d be a very long post. So, I’ve described the project details and demo in the following video :</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fr2lbyPsbrf4%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dr2lbyPsbrf4&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fr2lbyPsbrf4%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0410ad4ce9c3a9180247ebbcf95ebe61/href">https://medium.com/media/0410ad4ce9c3a9180247ebbcf95ebe61/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=303fcd41700d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GSoC 2017 Final Report : BeagleBoot]]></title>
            <link>https://medium.com/@ravikp7/gsoc-2017-final-report-beagleboot-a20d28c8d632?source=rss-27305b9fcfb------2</link>
            <guid isPermaLink="false">https://medium.com/p/a20d28c8d632</guid>
            <category><![CDATA[beaglebone-black]]></category>
            <category><![CDATA[usb]]></category>
            <category><![CDATA[beaglebone]]></category>
            <category><![CDATA[google-summer-of-code]]></category>
            <category><![CDATA[bootloader]]></category>
            <dc:creator><![CDATA[Ravi Kumar Prasad]]></dc:creator>
            <pubDate>Mon, 28 Aug 2017 18:09:00 GMT</pubDate>
            <atom:updated>2017-08-29T16:09:19.753Z</atom:updated>
            <content:encoded><![CDATA[<p>I had a great experience working as a Student developer for <a href="https://beagleboard.org/">BeagleBoard.org Foundation</a> under the <a href="https://summerofcode.withgoogle.com/">Google Summer of Code 2017 Program</a>. This program allowed me to learn awesome technologies, get closer to the Open Source Community and hone my skills all while developing an open source project.</p><p>First I’d like to thank Google and BeagleBoard.org Foundation for this life changing opportunity. Now I’d thank following people for supporting and guiding me throughout the project (in no particular order, non-exhaustive list):</p><ul><li><a href="https://twitter.com/Jadon">Jason Kridner</a> (my mentor for the project)</li><li><a href="https://twitter.com/QwertyEmbedded">Michael Welling</a></li><li><a href="https://github.com/sarnold">Steve Arnold</a></li><li><a href="https://github.com/jviotti">Juan Cruz Viotti</a></li></ul><h3><strong>Project Introduction</strong></h3><p>The project has been developed into the following two parts :</p><ol><li><a href="https://github.com/ravikp7/node-beagle-boot">node-beagle-boot</a> : A node.js bootloader server running over USB connection for the BeagleBone board platform. In this project, this bootloader server is used to transfer bootloader ( U-boot configured for USB Mass Storage) to the device which boots it into usb mass storage mode by exposing the on board eMMC as a storage device over usb.</li><li><a href="https://github.com/ravikp7/BeagleBoot">BeagleBoot</a> : A GUI based flashing app (using Electron Framework) for BeagleBone board by integrating the above bootloader server.</li></ol><h4>Working of the bootloader server</h4><p>When the AM335x ROM is connected to PC by holding down boot (S2) switch, it exposes a RNDIS interface which is a virtual ethernet link over usb.</p><ol><li>After running the server, it listens to events of device connection.</li><li>Once it detects the device connection, it starts serving BOOTP, ARP requests and finally TFTP request for respective file transfer for the device.</li><li>First TFTP trasnfer of SPL(Secondary Program Loader) is done for ROM device. SPL runs in device.</li><li>Now, newly connected device shows up as SPL device. TFTP trasnfer of UBOOT (configured for USB mass storage) is performed for SPL device.</li><li>Then UBOOT runs and mounts the emmc of device as USB mass storage device.</li></ol><p>More info about the project and detailed server working in this intro video :</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5JYfh2_0x8s%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5JYfh2_0x8s&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5JYfh2_0x8s%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/72f65afff10ade1829110deb0ae68ace/href">https://medium.com/media/72f65afff10ade1829110deb0ae68ace/href</a></iframe><h3><strong>Project Outcome : BeagleBoot App</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*PTBttuPCG3DzLDW-ffBUAA.png" /><figcaption>App’s Screenshot</figcaption></figure><p>So, after 3 months into the project, I’m able to deliver a functional flashing app for the BeagleBone board. Currently this app is supported on Linux and macOS. The installers for supported platforms can be downloaded <a href="https://github.com/ravikp7/BeagleBoot/releases">here</a>.</p><p>Here’s short summary of app’s working:</p><ul><li>User clicks the USB Mass Storage button, app then prompts user for su password.</li><li>After this app asks user to connect board by holding boot (S2) swicth.</li><li>The app runs bootloader server and puts board into usb Mass Storage mode.</li><li>User then selects OS image for flashing and clicks Flash button for flashing.</li></ul><p>Check out <a href="https://github.com/ravikp7/BeagleBoot/blob/master/doc/ARCHITECTURE.md"><strong>App’s architecture</strong></a> for more info on app’s working.</p><p>What I’m not able to deliver as per plans : <strong>Windows Support</strong></p><p>Remember as the project has been developed in two parts, the App fully supports all the functionality on its part on all the three major platforms Linux, macOS and Windows. The problem on Windows is with the bootloader server project. I was not able to transfer bootloader to device from Windows host. The issue is described <a href="https://github.com/ravikp7/node-beagle-boot/issues/14">here</a>.</p><p>So, for Windows support, I just need to update the bootloader server module by fixing the issue. The app will be automatically be functional on Windows too then.</p><p>This kind of project needs continuous support and development. I plan to continue working on this and get the Windows support working as well. Further improvements need to be implemented in the app:</p><ul><li>Automatic updates or just notifying user to download available updates.</li><li>Grab latest images from internet for flashing.</li><li>Options to transfer custom bootloader, ramdisk image distro etc.</li></ul><p>Here’s the video for the final presentation, summarizing everything and shows the app in action:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FE7HXnI2Os7I%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DE7HXnI2Os7I&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FE7HXnI2Os7I%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c2623894175ce82430fef01978655730/href">https://medium.com/media/c2623894175ce82430fef01978655730/href</a></iframe><p>I’ll be supporting the app development for as long as possible for me. Any contributions to the project are most welcome and appreciated.</p><p>Listing code repo links again:</p><ul><li><a href="https://github.com/ravikp7/node-beagle-boot">node-beagle-boot</a></li><li><a href="https://github.com/ravikp7/BeagleBoot">BeagleBoot</a></li></ul><p>Thanks for reading. Happy Coding :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a20d28c8d632" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>