Skip to main content

Command Palette

Search for a command to run...

🧠 Day 4: Routes, Ports, Protocols & Switchcraft – Diving Deeper into Networking

Updated
β€’4 min read
🧠 Day 4: Routes, Ports, Protocols & Switchcraft – Diving Deeper into Networking
N

I have a strong and evolving interest in cybersecurity and ethical hacking, proven by my top 1% rank on TryHackMe, completion of SOC Fundamentals, multiple Udemy courses, and active participation in CTF programs and practical hacking series. Currently, I work as a Cybersecurity Associate at Sattrix Information Security, where I serve as an ArcSight Administrator and have hands-on experience with SIEM tools like Splunk and NewEvol.

Alongside cybersecurity, I also have a background in web development with experience in HTML, CSS, JavaScript, and Python scripting. I’m deeply committed to continuous learning and real-world application, with a consistent track record of completing certifications and challenges. Despite ongoing health challenges that impact productivity, I remain focused on deepening my expertise and building a successful career in cybersecurity and ethical hacking.

Welcome back, tech enthusiasts! πŸš€
Day 4 of my networking expedition took me deep into the heart of what makes our digital world run smoothly: routing, well-known ports, protocols, and some serious switch magic like VLANs, STP, and Port Mirroring.

Let’s break it down in a way that feels like you’re sipping chai while debugging a router (relatable, right?). β˜•πŸ› οΈ


🧭 Routes: Your Network's GPS

Imagine sending a letter – it needs a path to get to its destination. That’s exactly what routing does in networking: it defines the way data packets travel from source to destination.

πŸ›£οΈ Types of Routing

πŸ“Œ Static Routing

  • Manually configured, straightforward.

  • Best for small networks or when you want full control.

  • Cisco Example:

      Router(config)# ip route 192.168.2.0 255.255.255.0 192.168.1.1
    

πŸ“Œ Default Routing

  • Like telling your network, β€œIf you don’t know where to go, ask this guy.”

  • Uses 0.0.0.0 0.0.0.0 as a catch-all.

πŸ€– Dynamic Routing

  • Think of it like GPS that updates based on traffic.

  • Routers exchange info to find the best path automatically.

  • Used in larger, constantly changing networks.


πŸ”Œ Well-Known Ports: Digital Doorways

Ports are like doors in your system’s buildingβ€”some are wide open, some locked, and some only open to specific people.

PortServiceProtocol
22SSH – Secure Remote AccessTCP
80HTTP – Web TrafficTCP
443HTTPS – Secure WebTCP
53DNS – Internet Name LookupTCP/UDP
25SMTP – Sending EmailsTCP
110POP3 – Retrieving EmailsTCP
161SNMP – Monitoring DevicesUDP
3389RDP – Remote DesktopTCP

These are just a few. Knowing them is vital for firewalls, pentesting, or troubleshooting.


πŸ”„ TCP vs UDP: The Reliability Showdown

FeatureTCPUDP
ConnectionReliable (Handshake)No connection
SpeedSlowerFaster
Error HandlingYesMinimal
Use CasesWeb, Email, File TransferStreaming, VoIP, Gaming

In short:

  • TCP = β€œLet’s talk properly.” πŸ“ž

  • UDP = β€œYOLO, just send it.” πŸš€


πŸ•΅οΈβ€β™‚οΈ Packet Analyzer – Like X-ray Vision for Networks

Tools like Wireshark let you peek inside network packets.
You can:

  • See who’s talking to whom.

  • Check what protocols are in use.

  • Spot suspicious or faulty traffic.

It’s essential for security pros and curious nerds alike.


🧩 VLANs – Virtual Party Rooms

A VLAN (Virtual Local Area Network) lets you segment your physical network into logical groups.

  • Devices can behave like they’re on the same network, even if they’re not.

  • Reduces broadcast traffic.

  • Helps in organizing departments (HR, Finance, etc.).

🧱 Think of it like giving each team their own invisible room in the same office.


πŸŒ‰ Trunking VLANs – One Cable, Many Channels

Trunking allows multiple VLANs to share a single network connection.

  • Uses 802.1Q tags to mark VLAN info on packets.

  • If a packet has no tag, it goes to the Native VLAN.

Efficient, elegant, and neat.


🌲 STP – Saving Networks from Loops

Spanning Tree Protocol prevents your switches from creating loop nightmares.

Here's how it works:

  1. πŸ† Root Bridge Election – Lowest Bridge ID wins.

  2. πŸ›£οΈ Path Cost Calculation – Lower is better.

  3. 🎯 Port Roles – Root, Designated, or Blocked.

  4. πŸ” State Transitions – Ports go from Blocking β†’ Listening β†’ Learning β†’ Forwarding.

  5. πŸ“© BPDU Exchange – Like switch gossip to keep everyone updated.

Without STP, your network might collapse into a looping black hole. πŸŒ€


πŸ§‘β€πŸ’» Managing Switches – Like Being the Network DJ

πŸ› οΈ Console Access

  • Physical port to connect directly for setup/recovery.

🌐 Remote Access

  • Assign IP & Default Gateway.

  • Use VTY lines (SSH/Telnet) for remote control.

πŸ” Security

  • User accounts, strong passwords, and AAA (Authentication, Authorization, Accounting) ensure only legit users mess with your switches.

πŸ”— Port Bonding – Because One Cable is Never Enough

Using LACP (Link Aggregation Control Protocol):

  • Combines multiple ports into one logical link.

  • Benefits?

    • Increased bandwidth.

    • Redundancy (failover).

    • Easy management.

Think of it as switch teamwork. πŸ™Œ


πŸ” Port Mirroring – Network Surveillance Mode

Want to monitor traffic without disrupting it? Use Port Mirroring.

  • Copies traffic from one port/VLAN to another.

  • Connects to IDS/packet analyzers like Wireshark.

πŸ›‘οΈ Supports:

  • Local mirroring (same switch).

  • RSPAN (remote switch).

  • ERSPAN (encapsulated across networks).

Perfect for debugging or catching intrusions red-handed.


🎯 Final Thoughts

Day 4 was a deep dive into the essential nuts and bolts of networking. From routing your packets and identifying key ports, to designing efficient switch topologies and mirroring traffic like a proβ€”I’ve unlocked a new level of network wizardry! πŸ§™β€β™‚οΈ

If you’ve made it this farβ€”congrats, you now know more than half the planet about how networks actually work. πŸŒπŸ’‘

More from this blog

C

Codename Origin: Your Tech Destination

19 posts