Popular Posts

Saturday, November 28, 2026

TCP vs. UDP Explained Simply: Which Protocol Does the Internet Use?

When your computer sends data across the internet—whether it is an email, a PDF file, or a live cricket match stream—it relies on the Transport Layer (Layer 4 of the OSI model) to deliver those data packets.


Old-school computer science textbook diagram comparing connection-oriented TCP with its 3-way handshake against fast connectionless UDP


At this layer, two protocols do almost all the heavy lifting: TCP (Transmission Control Protocol) and UDP (User Datagram Protocol). Both move data from Point A to Point B, but they have completely different priorities: accuracy vs. speed.

1. TCP: The Registered Courier (Reliable & Ordered)

TCP is a connection-oriented protocol. Before it sends a single byte of data, it establishes a formal connection using a process called the 3-Way Handshake:

  1. SYN: Your computer asks the server, "Are you ready to talk?"

  2. SYN-ACK: The server replies, "Yes, I am ready. Are you?"

  3. ACK: Your computer confirms, "Great, sending data now."

Once connected, TCP numbers every data packet (1, 2, 3...) and waits for a receipt (ACK) from the receiver. If packet #2 gets lost on the way, TCP pauses and resends it until it arrives intact.

  • Best for: Anything where missing even one piece of data ruins the result—webpages (HTTP/HTTPS), emails, file downloads, and online banking.

2. UDP: The Loud Megaphone (Fast & Lightweight)

UDP is a connectionless protocol. There is no handshake, no numbering, and no waiting for receipts. The sender simply fires packets out as fast as possible and hopes most of them arrive. If a packet gets dropped along the way, UDP does not stop to resend it—it just keeps moving forward.

Why would anyone want a protocol that drops data? Because waiting for lost packets creates lag.

Imagine you are on a WhatsApp video call or playing BGMI. If one tiny frame of video from 2 seconds ago gets lost, you do not want the whole call to freeze while your phone tries to re-download that old frame. You just want the live video to keep flowing smoothly.

  • Best for: Live video streaming, Zoom/WhatsApp calls, online multiplayer gaming, and DNS lookups.

Quick Comparison: TCP vs. UDP

FeatureTCPUDP
Connection TypeConnection-oriented (3-way handshake)Connectionless (No handshake)
ReliabilityHigh (Resends lost packets)Low (No error recovery)
Packet OrderStrictly maintainedNot guaranteed
SpeedSlower (More overhead)Very fast (Minimal overhead)
Common UsesWeb browsing, Email, File transfersVideo calls, Gaming, Live streams, DNS

When an interviewer or exam question asks which protocol is "better," the answer is neither. You use TCP when every single byte matters, and UDP when every single millisecond matters.

HTTP vs. HTTPS Explained: How SSL/TLS Keeps Your Data Safe

Every time you open a website, you see either http:// or https:// at the very start of the web address. That single letter "S" stands for Secure, and it is the only thing standing between your passwords and a hacker sitting on the same public Wi-Fi network.



diagram comparing unencrypted HTTP on Port 80 with encrypted HTTPS using SSL/TLS on Port 443



Whether you are preparing for a computer networks exam or setting up your own website, here is a simple breakdown of how HTTP and HTTPS actually work.

1. HTTP (The Postcard)

HTTP (Hypertext Transfer Protocol) is the basic language your browser uses to ask a server for a webpage. It runs on Port 80 and sends all data in plain text.

Think of HTTP like sending a postcard through the mail. Anyone who handles the postcard—the postman, a neighbor, or someone snooping on a railway station Wi-Fi—can flip it over and read everything written on it. If you type your bank password or credit card number on an HTTP site, anyone intercepting the network traffic sees your exact password in plain English.

2. HTTPS (The Locked Steel Briefcase)

HTTPS is simply HTTP wrapped inside an encrypted security layer called SSL/TLS (Transport Layer Security). It runs on Port 443.

Instead of a postcard, HTTPS puts your data inside a locked steel briefcase before it ever leaves your phone or laptop. Even if a hacker intercepts the data mid-way (a Man-in-the-Middle attack), all they see is scrambled, unreadable gibberish.

How the SSL/TLS Handshake Works

Before your browser sends any sensitive data to an HTTPS website, your browser and the server perform a lightning-fast TLS Handshake in three steps:

  1. Certificate Check: Your browser asks the website to prove its identity. The server sends back its SSL/TLS Certificate (a digital passport verified by a trusted Certificate Authority).

  2. Key Exchange: Using asymmetric encryption, your browser and the server safely agree on a temporary secret session key.

  3. Encrypted Browsing: Both sides switch to fast symmetric encryption using that session key. From that moment on, every click, search, and password is completely hidden from outsiders.

Quick Comparison: HTTP vs. HTTPS

FeatureHTTPHTTPS
SecurityUnencrypted (Plain text)Encrypted via SSL/TLS
Default PortPort 80Port 443
SSL CertificateNot requiredMandatory
Browser WarningShows "Not Secure" warningShows padlock / secure status
SEO ImpactRanked lower by GooglePreferred ranking signal

In 2026, running a website on plain HTTP is practically dead. Google Chrome flags HTTP sites as dangerous, and search engines penalize them. Always make sure HTTPS is enabled—both when you are browsing online and when you are running your own blog.

How DNS Works: The Phonebook of the Internet Explained (2026)

 Humans are great at remembering names like google.com or techguruakash.blogspot.com. Computers, however, have no idea what those words mean. Computers only communicate using numerical addresses called IP Addresses (like 142.250.190.46).

Old-school computer networks textbook diagram showing how DNS translates a domain name into an IP address through recursive, root, TLD, and authoritative servers



Imagine if you had to memorize a 12-digit number for every single website you wanted to visit. The internet would be unusable. That is why the DNS (Domain Name System) exists. It is quite literally the phonebook of the internet—it translates human-friendly website names into machine-friendly IP addresses in a fraction of a second.

What Happens When You Type a URL? (Step-by-Step)

The moment you type example.com into Chrome and hit Enter, your computer kicks off a rapid behind-the-scenes relay race across four different servers:

  1. The DNS Recursive Resolver (The Librarian): First, your browser asks your Internet Service Provider's (or Google's 8.8.8.8) Recursive Resolver if it knows the IP address for example.com. If it visited that site recently, it already has the answer saved (cached) and sends it straight back. If not, the librarian goes hunting for the answer.

  2. The Root Nameserver (The Index): The resolver asks a Root Server, "Where do I find example.com?" The Root Server doesn't know the exact IP address, but it looks at the .com at the end and says, "I don't have the number, but go ask the .com TLD server."

  3. The TLD Nameserver (The Shelf): TLD stands for Top-Level Domain (.com, .org, .in, .net). The .com TLD server checks its records and replies, "I don't have the exact IP either, but I know which company hosts example.com. Go ask their Authoritative Nameserver."

  4. The Authoritative Nameserver (The Exact Page): This is the final stop. The Authoritative Nameserver holds the actual DNS records for example.com. It hands over the exact IP address (e.g., 93.184.216.34) to the Recursive Resolver.

  5. The Connection: The resolver saves a copy of that IP address for future visitors, hands it back to your browser, and your browser immediately loads the website.

All five steps happen in roughly 20 to 50 milliseconds—faster than the blink of an eye.

Why DNS Matters for Speed and Security

Most people never touch their default DNS settings, leaving it to their local ISP. However, switching to a fast, secure public DNS like Cloudflare (1.1.1.1) or Google Public DNS (8.8.8.8) can noticeably speed up how fast websites start loading.

Modern browsers and routers also use DNS over HTTPS (DoH), which encrypts your DNS lookups. Without it, anyone snooping on a public Wi-Fi network can see a plain-text list of every single website you are trying to visit. Understanding DNS isn't just great for passing your computer networks exam—it is one of the easiest ways to make your daily browsing faster and more private.

Symmetric vs. Asymmetric Encryption Explained Simply (2026 Guide)

 Every time you log into your net banking portal, send a WhatsApp message, or enter your UPI PIN, your data is scrambled into unreadable gibberish so hackers cannot read it. This process is called Encryption.

If you are studying computer networks or cybersecurity, you will quickly run into the two main types of encryption: Symmetric and Asymmetric. They sound intimidating, but the difference between them is actually very simple.


Old-school textbook diagram comparing Symmetric Encryption with a single shared key and Asymmetric Encryption with public and private keys


1. Symmetric Encryption (The Single House Key)

Symmetric encryption uses one single key to both lock (encrypt) and unlock (decrypt) the data.

Imagine you want to send a confidential diary to a friend in another city. You put the diary inside a metal box and lock it with a standard padlock. For your friend to open it, they need an exact copy of that same key.

  • The Advantage: It is blazingly fast. Because the math behind it is lightweight, symmetric encryption (like AES-256) is used to encrypt massive files, hard drives, and video streams in milliseconds.

  • The Big Problem: How do you safely send that key to your friend in the first place? If you send the key over the internet, a hacker could intercept it and unlock every message you ever send.

2. Asymmetric Encryption (The Mailbox Analogy)

Asymmetric encryption—also called Public Key Cryptography—solves that exact problem by using two mathematically linked keys: a Public Key and a Private Key.

Think of a locked mailbox outside your house:

  • The Public Key is the mail slot. Anyone in the world can drop a letter inside, and once it is in, nobody can pull it back out.

  • The Private Key is the physical key in your pocket. Only you can unlock the mailbox and read the letters inside.

In cybersecurity (using algorithms like RSA or ECC), you freely share your Public Key with everyone. Anyone can use it to encrypt a message for you, but only your secret Private Key can decrypt it. You never have to share your secret key over the internet.

  • The Advantage: Extremely secure for exchanging sensitive information with strangers over an untrusted network.

  • The Big Problem: The complex mathematics makes it much slower than symmetric encryption. Encrypting a 2GB video file with asymmetric encryption would take far too much processing power.

Quick Comparison: Symmetric vs. Asymmetric

FeatureSymmetric EncryptionAsymmetric Encryption
Number of Keys1 (Same key locks and unlocks)2 (Public key locks, Private key unlocks)
SpeedVery fastSlower (heavier math)
Key SharingRisky to share over the internetCompletely safe (Public key is open)
Common AlgorithmsAES, ChaCha20, DESRSA, ECC, Diffie-Hellman
Best Used ForBulk data, hard drives, Wi-Fi trafficDigital signatures, SSL/TLS handshakes

How the Real Internet Uses Both (HTTPS)

Because symmetric encryption is fast and asymmetric encryption is great for sharing keys safely, modern websites use both together.

When you open an https:// website, your browser first uses asymmetric encryption to safely agree on a temporary secret password with the server. Once both sides have that secret password, they immediately switch to symmetric encryption to load the rest of the website at lightning speed. You get the best of both worlds—maximum security without slowing down your connection.

Tuesday, November 24, 2026

Zero Trust Security Architecture: Why Old Security Design Fails in 2026

 For decades, designing a secure computer system followed one simple rule: the Castle-and-Moat approach. Companies built a massive firewall around their office network (the moat). Anyone outside the office was blocked, and anyone sitting inside the office was automatically trusted.

Technical schematic diagram comparing traditional Castle-and-Moat perimeter security with Zero Trust Security Architecture


In 2026, that security design structure is completely broken. Employees work from home, cafés, and airports. Company data no longer sits in one basement server—it is spread across AWS, Google Cloud, and SaaS apps. Worse, if a single hacker tricks one employee with a phishing email and gets inside the castle, they have free access to the entire network.

This is why every modern tech company has shifted to Zero Trust Architecture.

What is Zero Trust? ("Never Trust, Always Verify")

Zero Trust is not a single software tool you buy; it is a security mindset. Its core rule is simple: treat every single user, device, and network request as a potential threat—even if it is coming from inside the company's own Wi-Fi.

Instead of checking your ID once at the front gate of the building, Zero Trust puts a security guard at every single door inside the office. Want to open the company database? Verify your identity. Want to download a financial report five minutes later? Verify again.

The 3 Core Pillars of Zero Trust Design

To build a reliable and secure system using Zero Trust, engineers rely on three strict principles:

  1. Verify Explicitly: Every access request is authenticated using multiple signals—not just a password. The system checks your biometrics, your device health, your geographic location, and whether your behavior looks normal. If an employee who works in Bengaluru suddenly tries to log in from Eastern Europe at 3:00 AM, the system instantly blocks the request.

  2. Least Privilege Access: Give users only the exact amount of access they need to do their job, and nothing more. A marketing intern does not need access to the company's production source code or payroll database. If their account gets hacked, the damage is strictly contained.

  3. Assume Breach (Micro-Segmentation): Zero Trust assumes that a hacker is already inside your network. To stop them from moving around, the network is chopped into tiny, isolated zones (micro-segmentation). Even if an attacker compromises a smart printer or a single laptop, they hit a digital brick wall and cannot reach the main servers.

Why It Matters for Your Career and Business

Whether you are building a small startup app or studying system design for a tech interview, perimeter-only security is obsolete. Implementing basic Zero Trust habits—like enforcing Multi-Factor Authentication (MFA), encrypting all internal traffic, and restricting admin privileges—is now the bare minimum for keeping modern systems reliable and safe from AI-driven cyberattacks.

OSI Model vs. TCP/IP Model Explained Simply (2026 Networking Guide)

If you have ever opened a computer networks textbook like Behrouz Forouzan, the very first thing that hits you is a massive diagram of stacked boxes: the OSI Model and the TCP/IP Model. Most engineering students memorize the names of the layers the night before an exam and forget them the next morning.

diagram comparing the 7-layer OSI Model and the 4-layer TCP/IP Model


Understanding how these two models actually work is much easier when you stop memorizing jargon and look at what happens every time you send a WhatsApp message.

The Postal Service Analogy

Imagine you are sending a handwritten letter from Prayagraj to a friend in Bengaluru. You do not just throw the paper out the window. You follow a strict set of steps:

  1. You write the letter in a language your friend understands.

  2. You put it inside an envelope and write the destination address.

  3. You drop it at the post office, where it gets sorted into a mailbag.

  4. A truck or flight physically carries it across cities.

  5. Your friend opens the envelope and reads it.

Computer networks work in the exact same way. Both the OSI and TCP/IP models are simply rulebooks that break down the journey of your data into neat, manageable layers.

What is the OSI Model? (The 7-Layer Blueprint)

The Open Systems Interconnection (OSI) model is a conceptual framework created to standardize how different computers talk to each other. It splits networking into 7 distinct layers:

  • Layer 7 – Application: The apps you actually see and use (Chrome, WhatsApp, Gmail).

  • Layer 6 – Presentation: Translates, encrypts, and compresses data (turning your text into secure code).

  • Layer 5 – Session: Opens, manages, and closes the connection between two devices.

  • Layer 4 – Transport: Breaks large files into smaller packets and ensures they arrive intact (using TCP or UDP).

  • Layer 3 – Network: Decides the best route for your data using IP addresses (handled by routers).

  • Layer 2 – Data Link: Handles physical addressing (MAC addresses) within your local Wi-Fi or office LAN.

  • Layer 1 – Physical: The actual hardware—fiber-optic cables, Wi-Fi radio waves, and Ethernet ports.

What is the TCP/IP Model? (The 4-Layer Reality)

While the OSI model is great for textbooks and troubleshooting, the actual internet in 2026 runs on the TCP/IP Model. It is leaner, more practical, and combines several OSI layers into just 4 layers:

TCP/IP LayerEquivalent OSI LayersMain Job
Application LayerApplication, Presentation, SessionHandles user apps, encryption, and formatting (HTTP, HTTPS, DNS).
Transport LayerTransportEnsures reliable data delivery and error checking (TCP, UDP).
Internet LayerNetworkRoutes packets across different networks globally (IPv4, IPv6).
Network Access LayerData Link, PhysicalMoves raw bits over Wi-Fi, 5G, or fiber cables.

Which One Should You Actually Care About?

In real-world networking jobs, you use TCP/IP to configure servers, routers, and cloud networks because that is how the internet is built. However, engineers still use the OSI Model to diagnose problems. When a network engineer says, "It looks like a Layer 1 issue," they are telling you to check if the Ethernet cable is unplugged.

Mastering both gives you the theoretical clarity to ace your exams and the practical foundation to troubleshoot real networks.