DEV Community

Cover image for How the Internet Works: A Beginner's Guide to Networking from Browser to Server
Adeje Oluwatobiloba
Adeje Oluwatobiloba

Posted on

How the Internet Works: A Beginner's Guide to Networking from Browser to Server

Learn how DNS, IP addresses, TCP/IP, packet switching, and HTTPS work together when you visit a website.

"You can't troubleshoot what you don't understand. For a DevOps Engineer, networking isn't optional, it's the foundation behind every deployment, API call, and cloud service."

When I first started learning DevOps, networking felt overwhelming. I could memorize terms like DNS, IP Address, TCP/IP, and HTTP/HTTPS, but I struggled to understand how they worked together. I knew the definitions, but I couldn't visualize what actually happens when someone types a website address into a browser.

To make learning easier, let's use an imaginary online bookstore called EpicReads.

The Journey Begins

Imagine you open your browser and type:

https://epicreads.com
Enter fullscreen mode Exit fullscreen mode

From your perspective, it's just a website address.

Behind the scenes, however, several networking technologies work together in just a few milliseconds to deliver the webpage to your screen.

Let's walk through that journey step by step.

Step 1: DNS Finds the Server

The first question your browser asks is:

"Where is epicreads.com?"
Enter fullscreen mode Exit fullscreen mode

Browsers cannot communicate using names like epicreads.com.

They communicate using IP addresses.

This is where DNS (Domain Name System) comes in.

Think of DNS as the internet's phonebook.

It translates:

epicreads.com

into something computers understand:

52.172.142.222
Enter fullscreen mode Exit fullscreen mode

This translation happens because of a DNS A Record, which maps a domain name directly to an IPv4 address.

Without DNS, we'd have to memorize long strings of numbers every time we wanted to visit a website.

Step 2: Connecting to the Server

Now the browser knows where the server lives.

It begins communicating using the TCP/IP protocol suite.

This consists of two major protocols:

  • IP (Internet Protocol)

IP is responsible for routing data to the correct destination.

Think of it as the address written on a package.

  • TCP (Transmission Control Protocol)

TCP ensures that every piece of data arrives safely, completely, and in the correct order.

Think of TCP as the delivery company making sure every package reaches the customer without anything missing.

Together, TCP/IP forms the foundation of internet communication.

Step 3: Packet Switching

The browser doesn't send one huge request.

Instead, it breaks the request into many smaller pieces called packets.

This process is known as Packet Switching.

Each packet can travel through different routers and network paths.

Some packets may even arrive before others.

TCP keeps track of every packet and puts them back together once they reach the destination.

This makes the internet faster, more efficient, and more resilient.

Step 4: HTTP and HTTPS

After reaching the server, the browser sends an HTTP or HTTPS request.

These protocols define how browsers and web servers communicate.

Today, almost every website uses HTTPS because it encrypts communication between the browser and the server.

That encryption protects information such as:

  • Passwords
  • Credit card details
  • Personal information
  • Login sessions

Without HTTPS, anyone intercepting the traffic could potentially read the transmitted data.

Step 5: The Server Processes the Request

The request finally reaches the EpicReads web server.

The server may:

Retrieve available books
Check user accounts
Read shopping cart information
Process orders
Query the database

Once everything is ready, the server creates a response and sends it back to your browser.

Step 6: The Browser Displays the Website

The response also travels across the internet using Packet Switching.

TCP checks that every packet arrives successfully.

The browser reassembles the packets, interprets the HTML, CSS, and JavaScript, and finally displays the EpicReads homepage.

All of this typically happens in less than a second.

Putting It All Together

flow chart diagram of how data travels through the internet

When you understand this flow, networking becomes much less intimidating.

Conclusion

Networking is one of the most important skills for anyone pursuing a career in DevOps, Cloud Engineering, or Site Reliability Engineering.

At first, it can feel like a collection of disconnected terms and protocols. But once you understand how DNS, IP addresses, TCP/IP, Packet Switching, and HTTPS work together, the internet starts to make much more sense.

If you're just beginning your DevOps journey, don't focus solely on memorizing definitions. Focus on understanding the complete flow of a request—from your browser to the server and back again.

That's when networking truly starts to click.

P.S. This post is part of the DevOps Micro Internship (DMI) with Agentic AI — Cohort 3 — by Pravin Mishra. My graded progress is public: https://dmi.pravinmishra.com/s/YOUR-GITHUB-USERNAME.html · Start your DevOps journey: https://dmi.pravinmishra.com/?utm_source=student&utm_medium=ps-linkedin&utm_campaign=cohort3

Top comments (0)