DEV Community

Aisalkyn Aidarova
Aisalkyn Aidarova

Posted on

Network Topologies (How devices are connected)

1.

Star Topology (Most common in real life)

Image

Image

Image

Image

Image

Simple explanation:

Think of this like a teacher in the middle of a classroom:

  • Every student talks through the teacher
  • Students don’t talk directly to each other

In network:

  • All computers connect to one switch/router
  • Data always goes through that central device

Why we use it:

  • Easy to manage
  • Easy to troubleshoot

Problem:

  • If the switch dies → everything stops

Mesh Topology (Internet style)

Image

Image

Image

Image

Simple explanation:

Everyone is connected to everyone.

In network:

  • Each device has multiple paths to reach others

Why important:

  • If one path fails → another path works

Real example:

  • The internet

Point-to-Point

Image

Image

Image

Image

Image

Image

Simple explanation:

  • Just two devices directly connected

Example:

  • Your laptop → router
  • Server → database (private connection)

Spine-Leaf (Used in Cloud / Data Centers)

Image

Image

Image

Image

Image

Image

Simple explanation:

  • Special design for fast communication

Why used:

  • Data travels fast (max 2 steps)
  • No traffic jam

Real use:

  • AWS
  • Kubernetes clusters

2. OSI Model (How data travels)

Image

Image

Image

Image

Image

Simple explanation:

Imagine sending a package:

  1. You write message → Application
  2. Pack it → Presentation
  3. Start conversation → Session
  4. Delivery method → Transport
  5. Address → Network
  6. Local delivery → Data Link
  7. Cable → Physical

VERY SIMPLE:

Layer Meaning
7 What user sees (browser)
4 Reliable or fast (TCP/UDP)
3 IP address (routing)
2 MAC address
1 Cable

3. Switch vs Router (IMPORTANT)

Switch

Image

Image

Image

Image

Image

Image

Simple explanation:

  • Works inside one network
  • Uses MAC address
  • Sends data to exact device

Think:
→ Like receptionist inside office


Router

Image

Image

Image

Image

Image

Image

Simple explanation:

  • Connects different networks
  • Uses IP address

Think:
→ Like GPS deciding where to send data


4. Firewall (Security)

Image

Image

Image

Image

Simple explanation:

  • Gatekeeper of network

What it does:

  • Allow traffic
  • Block traffic

Real example:

  • AWS Security Groups

5. Load Balancer (VERY IMPORTANT FOR DEVOPS)

Image

Image

Image

Image

Image

Image

Simple explanation:

Imagine 3 cashiers in store:

  • Customers are distributed evenly

In network:

  • Sends traffic to multiple servers

Why important:

  • Prevents crash
  • Improves performance

6. TCP vs UDP

Image

Image

Image

Image

Image

TCP (Reliable)

  • Checks delivery
  • Resends data

UDP (Fast)

  • No checking
  • Faster

Example:

  • TCP → websites
  • UDP → video streaming

7. VPC (Cloud Network — VERY IMPORTANT)

Image

Image

Image

Image

Image

Image

Simple explanation:

  • Your private network in cloud

Inside VPC:

  • Subnets
  • Route tables
  • Security groups

Example:

  • Public subnet → website
  • Private subnet → database

8. Traffic Types

Image

Image

Image

Image

Image

Image

Image

Easy explanation:

  • Broadcast → to everyone
  • Unicast → one person
  • Multicast → group
  • Anycast → closest server

9. Cables & Media

Image

Image

Image

Image

Image

Image

Types:

  • Ethernet → common
  • Fiber → very fast
  • Coaxial → TV/internet

10. How This Connects to SRE

In real job:

You will:

  • Fix network issues
  • Design systems
  • Debug failures

Example Problem:

“Website is slow”

You check:

  1. Load balancer
  2. Network path
  3. Firewall rules
  4. Server health

Top comments (0)