Skip to main content

๐Ÿง  Day 4: Routes, Ports, Protocols & Switchcraft โ€“ Diving Deeper into Networking

Updated 4 min readMarkdown
Part of seriesNetwork+ Journey
๐Ÿง  Day 4: Routes, Ports, Protocols & Switchcraft โ€“ Diving Deeper into Networking

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. ๐ŸŒ๐Ÿ’ก

About the author

  • 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.

No comments yet. Be the first to comment.