Friday, January 30, 2026

Introduction to LAN (Local Area Network) – Simple Guide for Beginners


Introduction

A Local Area Network (LAN) is a network that connects devices within a small area, such as a home, school, office, or building.
LANs allow devices to share data, printers, internet, and services securely and efficiently.

This blog explains LAN concepts step by step in very simple language, inspired by TryHackMe – Network Fundamentals.


What is LAN?

LAN stands for Local Area Network.

Examples of LAN:

  • Home Wi-Fi network

  • Office computer network

  • School computer lab

All devices in a LAN can communicate with each other directly.


LAN Topologies (Network Designs)

In networking, topology means the shape or design of a network.

1️⃣ Star Topology

How it works:
All devices connect to a central device like a switch.

Advantages:

  • Easy to add new devices

  • Fast and reliable

  • Easy to manage

Disadvantages:

  • Expensive (more cables + switch)

  • If the switch fails, the whole network stops

Used in:
Homes, offices, schools (most common topology)


2️⃣ Bus Topology

How it works:
All devices share one main cable (backbone).

Advantages:

  • Cheap to install

  • Less cabling

Disadvantages:

  • Network becomes slow if many devices are active

  • If the backbone cable breaks, the whole network fails

  • Hard to troubleshoot

Used in:
Old networks (rare today)


3️⃣ Ring Topology

How it works:
Devices form a circular loop, and data travels in one direction.

Advantages:

  • No data collision

  • Easy fault detection

Disadvantages:

  • If one device or cable fails, the whole network stops

  • Data may travel slowly

Used in:
Very rare today


What is a Switch?

Image

Image

A switch connects multiple devices in a LAN and sends data only to the correct device.

Why switch is better than hub:

  • Hub sends data to all devices

  • Switch sends data only to the target device

Benefits:

  • Faster network

  • Less traffic

  • More secure


What is a Router?

Image

Image

A router connects different networks and sends data between them.

Example:

  • Home LAN ↔ Internet

  • Office LAN ↔ Branch office

The job of a router is called Routing.


What is Subnetting?


Image

Subnetting means dividing one large network into smaller networks.

Simple example

Office has departments:

  • HR

  • Finance

  • Accounts

Subnetting helps:

  • Separate departments

  • Improve security

  • Reduce network traffic


Subnet Mask Explained

Image

Image

  • Subnet mask has 32 bits

  • Written like an IP address

  • Range of each octet: 0–255

Example:

IP Address     : 192.168.1.100
Subnet Mask    : 255.255.255.0

Types of Addresses in a Subnet

1️⃣ Network Address

Identifies the network itself

Example:

192.168.1.0

2️⃣ Host Address

Identifies devices in the network

Example:

192.168.1.100

3️⃣ Default Gateway

Sends data to other networks

Usually:

192.168.1.1  or  192.168.1.254

What is ARP (Address Resolution Protocol)?

Image

Image

Devices use two identities:

  • IP Address

  • MAC Address

ARP connects these two.

How ARP works:

  1. Device sends ARP Request
    “Who has this IP?”

  2. Target device replies with MAC Address

  3. Mapping is stored in ARP Cache

ARP helps devices communicate inside a LAN.


What is DHCP?

Image

Image

DHCP automatically assigns IP addresses to devices.

DHCP Process (DORA):

  1. Discover – Device asks for IP

  2. Offer – Server offers IP

  3. Request – Device accepts

  4. ACK – Server confirms

Without DHCP, IPs must be set manually, which is slow and error-prone.


Why These Concepts Are Important?

Understanding LAN fundamentals helps in:

  • Networking jobs

  • Cybersecurity

  • Ethical hacking

  • Firewall & server configuration

  • Troubleshooting network issues


Conclusion

LAN is the foundation of networking.

Quick recap:

  • LAN connects devices locally

  • Topologies define network design

  • Switch connects devices efficiently

  • Router connects networks

  • Subnetting improves security

  • ARP links IP to MAC

  • DHCP automates IP assignment

If you understand these basics, advanced networking becomes easy.

Thursday, January 29, 2026

What is Networking? Understanding IP, MAC Address & the Internet (Beginner Guide)


 What is Networking? Understanding IP, MAC Address & the Internet (Beginner Guide)


1️⃣ What is Networking? (Diagram)

Image


Image

Explanation:
This diagram shows multiple devices (PC, laptop, mobile, server) connected through a switch or router.
When devices are connected and can share data, it is called networking.


2️⃣ What is the Internet? (Network of Networks)

Image


Image

Explanation:

  • Small networks = Private Networks (Home, Office)

  • Large connecting network = Public Network (Internet)
    The Internet connects millions of private networks worldwide.


3️⃣ IP Address Structure (IPv4)


Image

Image

Explanation:
An IPv4 address has 4 parts, and each part is called an Octet.

Example:

192 . 168 . 1 . 1

Each octet helps identify:

  • Network

  • Sub-network

  • Host (device)


4️⃣ Private IP vs Public IP

Image


Explanation:

  • Devices inside home/office use Private IP

  • Router uses Public IP to communicate with the Internet

  • Multiple devices can share one public IP using NAT


5️⃣ IPv4 vs IPv6 Comparison

Image


Image

Explanation:

  • IPv4 → Limited addresses

  • IPv6 → Very large address space
    IPv6 is the future due to billions of connected devices.


6️⃣ MAC Address (Hardware Identity)


Image

Explanation:
A MAC address is:

  • Fixed to network hardware

  • Written in hexadecimal

  • Example:

a4:c3:f0:85:ac:2d

7️⃣ MAC Spoofing (Hotel Wi-Fi Example)


Image

Image

Explanation:

  • Paid user’s MAC → Allowed

  • Attacker copies MAC → Gets access
    This shows why MAC-based security alone is weak.