Networking

Network Devices

router · switch · firewall · nas · san

Network Devices, Applications, Functions

Physical and virtual appliances

Networking appliances can exist as hardware devices (physical) or software-based virtual machines (virtual appliances)

A physical appliance is a dedicated piece of hardware—like a Cisco router or firewall installed in a rack.

A virtual appliance performs the same job but runs inside a hypervisor (VMware, Hyper-V, KVM, etc.).

For example, a company might have:


Router

Example: your home router connects your LAN to the Internet and assigns internal IPs like 192.168.1.x.

Switch

A switch operates at Layer 2 (Data Link layer) and forwards frames based on MAC addresses.

It reduces collisions by giving each port its own collision domain.

Modern Layer 3 switches can also route between VLANs using IP addresses.

Remember: Switch = Connects local devices and forwards frames intelligently.

Firewall

A firewall filters network traffic based on defined security rules. It can operate at various layers:

The Traditional Firewall/stateless firewall

This is the main gate security guard from the early 2000s. He has a simple list:

A stateless firewall filters based only on static source/destination IP, port, and protocol. It has no memory of previous packets and cannot distinguish a legitimate reply from a faked one.

Stateful Packet Inspection (The Context-Aware Guard)

A stateful firewall maintains a state table that tracks all active connections. It dynamically opens and closes ports as needed, providing much stronger security by understanding the two-way flow of traffic.

This is a much smarter guard. He doesn't just have a clipboard; he has a notebook where he tracks every outgoing request.

His Job: He understands the state or the context of a conversation. He knows which internal conversations are legitimate and only allows replies that are part of those conversations.

His Process:

  1. You from inside the office request a webpage. The guard notes in his book: "Workstation A initiated a connection to WebServer B on port 80. I expect a reply."

  2. When a packet arrives from the outside, he doesn't just check his clipboard. He checks his notebook first. "Is this packet a legitimate reply to a conversation I saw start from the inside?"

  3. The legitimate web server reply arrives. He checks his notebook, sees it matches, and allows it.

  4. The hacker's fake packet arrives. He checks his notebook. There is no record of Workstation A ever talking to that hacker's IP. He blocks it immediately.

Application-Aware Firewall/The Next-Generation Firewall (NGFW)

An Application-Aware firewall (a core feature of NGFWs) performs Deep Packet Inspection (DPI). It can identify applications based on their unique signatures and behavior, not just their port, and enforce security policies based on the application, user, and content.

This is the modern, intelligent security checkpoint. It does everything the old guard did, plus much more. The stateful guard knew a conversation was happening, but the Application-Aware guard knows exactly what is being said in that conversation.

|Feature| Stateless| Stateful| Application-Aware (NGFW)| |----|----|----|----| |Analogy |Guard with a Clipboard |Guard with a Notebook |Guard who Reads the Mail| |Decision Based On |Static Rules (IP, Port)| Connection State + Static Rules |Application Identity + Content + User + State + Static Rules| |Security |Very Weak |Strong| Very Strong / Intelligent| |Key Ability |None |Tracks Connections| Identifies Applications & Threats within Traffic|

Intrusion Detection System (IDS) / Intrusion Prevention System (IPS)

An IDS monitors network traffic for suspicious activity and alerts administrators but does not block it. An IPS both detects and actively blocks or drops malicious traffic in real time. Both rely on signatures or behavior analysis.

Load Balancer

A load balancer distributes network traffic across multiple servers to improve performance and availability. It can operate at Layer 4 (transport) or Layer 7 (application). Example: Instead of all users hitting one web server, a load balancer spreads requests among several. If one fails, others handle the load.

Proxy Server

A proxy acts as an intermediary between users and the internet. It can cache frequently accessed web pages, filter content, and hide user IP addresses.

Network-Attached Storage (NAS)

Think of your home or office network.Your Personal Computer's Hard Drive is like the drawer in your own desk. It's private, only you can access it, and if your desk breaks, your files are gone.

A Network-Attached Storage (NAS) device is like a large, shared filing cabinet placed in the middle of the office.

NFS (Network File System - Port 2049): This is the "language" spoken primarily by Linux/Unix systems.

Analogy: You don't have to "request" a file from the cabinet. You just walk up to it, open a drawer, and work directly from it, just like from your own desk drawer.

Why is this useful?

Storage Area Network (SAN)

A SAN is a high-speed network dedicated to block-level storage.

Instead of sharing files, it presents raw disks to servers using Fibre Channel or iSCSI.

SANs are used in enterprise data centers for databases and virtual machines where speed matters most.

Wireless Appliances

Access Point (AP)

This is your typical home Wi-Fi router. It's one device that connects your phones and laptops to your internet connection. It handles the conversion from Wi-Fi radio signals to wired Ethernet, security, and everything else by itself.

Wireless Controller

You use a Wireless Controller with managed APs for coordination, security, and scalability across a large area. You cam

Applications

Content Delivery Network (CDN)

A CDN is a distributed network of servers that deliver web content from locations closer to the user. It reduces latency, speeds up load times, and improves reliability.

A CDN replaces a single, distant "bakery" with a global network of local "bakeries" that store copies of popular content. This ensures that a user in Canada gets their YouTube video from a server in Toronto or Montreal, not from a single overwhelmed server in California, making the experience fast and reliable for everyone.

Functions

Virtual Private Network (VPN)

A VPN creates an encrypted tunnel between a user and a remote network over the Internet. It uses protocols like IPsec or SSL/TLS to protect data and provide secure remote access.

Example: Employees working from home use a VPN to connect securely to the office network.

VPN concentrator: A VPN Concentrator is a specialized device (or a function within a firewall) designed to handle a large number of incoming VPN (Virtual Private Network) connections simultaneously. Its primary role is to create secure, encrypted tunnels for remote users.

Quality of Service (QoS)

QoS is essentially the rulebook for network traffic, ensuring that the most important data always has the right-of-way. Manages and prioritizes network traffic

It marks packets using DSCP or CoS values.

The key is that switches can use the CoS tag, while routers use the DSCP tag. A capable network device can translate between the two.

By implementing this "lane management" system, you achieve:

Jitter is the variation (inconsistency) in the delay of received packets over a network. When data packets travel from one device to another, they don’t always arrive evenly spaced in time — even though they were sent evenly. That irregularity in arrival time is called jitter.

Time to Live (TTL)

TTL is a value inside an IP packet that limits how long the packet can exist in the network. Each router that forwards the packet decreases the TTL by 1; when it reaches 0, the packet is discarded. This prevents packets from looping endlessly due to routing errors.