Beginner’s Guide to Blockchain Layers
The “Layers” of a Platform
Say you want to build a 100-story tall building. You want it to be the tallest it can be, and at the same time, be able to support the weight all the way through. To ensure that the building is sturdy, you first start with getting the right materials, move on to build a strong base from a few stories below the ground, stabilize the base and carry on with the construction.
In the world of software and technology, the analogy holds just as well. To build a platform that supports networking, application building and other features, you have to work your way ground-up. You have to design an infrastructure that is simple at its base and ultimately supports complex specific applications as you move up.
Ground Zero for Building
The Internet, as we know it today, was a cumulation of decades of research in computing technologies. To finally end up with a platform that connects billions of people and machines around the world, we had to solve problems we didn’t even know existed. Eventually, with a mechanism that included 7 different Layers called the OSI Model, the Internet was born.
Just like the internet, Blockchain too is a platform that had to be constructed in Layers. The Layer-based model allowed developers and infrastructure architects to focus on their agendas and nothing else. Put into perspective, for an application builder it is more than enough to focus on the last Layer, the application Layer. While for a platform developer, having knowledge of the initial Layers is of utmost importance as they form the base for applications to be built on. As we move up, Layer to Layer, the complexity increase while the generality goes down.
To understand what each Layer in a blockchain means and the functions they play, let us too start ground-up.
Blockchain and its Layers
Blockchain, an infrastructure that is as complex as the Internet it runs on, thankfully does not boast as many Layers. The OSI Model goes from physical interactions up to the final application, jumping 7 Layers from the bottom up. A Blockchain on the other hand, uses the OSI Model as the base to develop. This allows blockchain to limit its complexity to 3 or 4 Layers, depending on the application.
To from Ashwath Balakrishnan of , “Think of [Layers] in terms of clothing. Layer 1 is your shirt, it’s the ‘main-chain’ of your outfit. Layer 0 is the undershirt – it keeps you warm but nobody can really see it doing its job.”
Layer 0 can be considered as a bridge between the Internet, the physical world and the blockchain. Remember that blockchain technology is not all software. It involves physical network infrastructure (like the mining component of PoW platforms, data storage, etc.) that allow a complex technology like Blockchain function. Layer 0 is the basement that is never seen, but is as important as the building itself.
Moving on from Layer 0, Layer 1 is the blockchain platform itself. The Bitcoin blockchain, Ethereum, XEM and other base layer protocols form the Layer 1. Layer 1 function as the soil for applications to germinate and grown on. Layer 1 is usually simple, broad and general purpose. When people talk about blockchains and networks, this is what they usually refer to. Layer 1 is responsible for protocols, consensus mechanisms, and anything else that ensures the base level functionality of a blockchain and its associated cryptocurrency (if any). It is also referred to as the Implementation Layer, alluding to the possibilities of development.
There is general confusion among developers and architects on finalizing what Layer 2 actually is. The confusion arises because there are several projects that differentiate what they use Layer 2 for. For instance, the Lightning network, which is a scalability update to Bitcoin, functions as a secondary Implementation layer to Layer 1. On the other hand, Smart Contracts, that are a central feature of Ethereum and many other Layer 1 protocols, are applications built on the Implementation Layer. For now, let us assume that Layer 2 is the level where additional updates and generalized applications to Layer 1 are developed.
Currently, Layer 2 is the area amassing the most interest. Ever since Ethereum showed the possibility of using a generalized blockchain to develop narrow and specific applications, developers are flocking in. This has resulted in a variety of innovations in the sector. Smart Contracts, quadratic voting, scalability solutions, atomic swaps, etc. are a few of the general-purpose Layer 2 applications that are built on Layer 1.
Although not the layer gathering interest right now, Layer 3 could quite easily become the area rumbling with activity. Layer 3 is the place where general applications developed on the second Layer could be used to develop specific solutions. Using smart contracts or atomic swaps or lightning network or APIs, developers can integrate and build applications that serve a narrow and specific function. ICOs, cryptokitties, Decentralized Finance (DeFi) are just some of the applications built on the third layer.