OSI Model and Zomato: A Fun take on Data Movement

OSI Model and Zomato: A Fun take on Data Movement

What is OSI Model and why Zomato?

Since the beginning of food delivery apps, most of us have ordered through Zomato at least once to know what this hype around this apps and how we get food delivered to our home and experience it, so that’s it if you have ordered food through Zomato then you know OSI model.

What is this OSI model —→ OSI model (Open Systems interconnection) model used to move the data over the internet, it has seven layers each responsible for specific tasks.

Ahh too much technical I went, ok let’s head back to Zomato, I am hungry and need to order Food, I opened the app selected dish and ordered, until my food arrives let’s talk about this OSI model and how it is connected to Zomato.

  1. Application Layer (Layer 7) - You request a web page in tech world (open the app, browse the menu and place an order)

  2. Presentation Layer (Layer 6) - The request is formatted and encrypted (the app formats your order into a standard structure the restaurant system understands, and your payments details are encrypted)

  3. Session Layer (Layer 5) - A session is established between browser and the server (this is like keeping the line open with the restaurant until they confirm your order means a session is established)

  4. Transport Layer (Layer 4) - The data is broken into packets and transported (order is split into smaller tasks like making the food, packing it, assigning a driver)

  5. Network Layer (Layer 3) - Packets are routed across the internet (delivery driver determines the best route to reach your address where GPS is guiding the driver for the most efficient and fastest path)

  6. Data Link Layer (Layer 2) - Routers and switches forwards packets (driver communicating with local traffic signals and rerouting to avoid any roadblocks)

  7. Physical Layer (Layer 1) - data is transmitted over cables, fiber optics or wireless through data bits (0s and 1s) to its destination (delivery driver physically handover the food to you)

Once the food reaches you, you unwrap it, verify it’s exactly what you ordered and the enjoy your meal! I have to enjoy mine, similarly when data reaches its destination, it is reassembled and presented to the user like displaying a webpage.