Cybersecurity Networking Essentials
Networking Basics
Models of Communication
Computer networks can feel impossibly complex. Billions of devices are sending information back and forth every second. To make sense of it all, engineers created conceptual models. These models act like blueprints, breaking down the massive task of network communication into smaller, manageable layers. Each layer has a specific job, and they all work together in a stack.
The most famous of these is the Open Systems Interconnection (OSI) model. It’s a seven-layer framework that standardizes how different network devices and software communicate. While not strictly used in practice today, it’s the best tool for learning and understanding the flow of data across a network, from the cable in the wall to the app on your screen.
Think of the OSI model like the different departments in a mail-sorting facility. Each department handles one part of the process—addressing, sorting, transport—before passing the package to the next one.
The OSI Model Layers
Let’s walk through the seven layers, starting from the top where you interact with applications, and moving down to the physical hardware.
| Layer | Name | Function | Example |
|---|---|---|---|
| 7 | Application | Provides network services directly to the end-user. | HTTP, FTP, DNS |
| 6 | Presentation | Translates, encrypts, and compresses data. | SSL/TLS, JPEG |
| 5 | Session | Manages connections and sessions between applications. | APIs, Sockets |
| 4 | Transport | Provides reliable or unreliable data delivery and error checking. | TCP, UDP |
| 3 | Network | Moves packets between different networks (routing). | IP, Routers |
| 2 | Data Link | Handles communication between devices on the same network. | MAC Addresses, Switches |
| 1 | Physical | Transmits raw bits over a physical medium. | Ethernet cables, Hubs |
When you send an email, the data starts at the Application layer and moves down the stack. Each layer adds its own wrapper of information—a process called encapsulation. When the email reaches its destination, it travels back up the stack, with each layer unwrapping the information until the final data is presented to the recipient.
The Practical Model TCP/IP
The OSI model is great for theory, but the modern internet runs on a more practical, four-layer model called TCP/IP. It's named after its two most important protocols: the Transmission Control Protocol (TCP) and the Internet Protocol (IP).
The TCP/IP model combines several of the OSI layers into broader categories, reflecting how networks are actually built. For example, it doesn't separate the physical and data link layers, because in practice, the hardware at these levels is tightly integrated.
The key players here are TCP and UDP. TCP is like certified mail; it guarantees that all your data packets arrive in the correct order. It performs a "three-way handshake" to establish a reliable connection. UDP is like a standard postcard; it's faster because it doesn't check for errors or guarantee delivery. It's used for services where speed is more important than perfect accuracy, like video streaming or online gaming.
The Hardware That Connects Us
The models are conceptual, but networks are built with real hardware. Several key devices make communication possible.
Router
noun
A device that directs traffic between different networks. It works at the Network layer (Layer 3), using IP addresses to decide the best path for data packets to travel.
Switches are another essential component. They operate at the Data Link layer (Layer 2) and connect devices on the same local network. Unlike an older device called a hub, which just broadcasts data to every connected device, a switch is smart. It learns the unique MAC address of each device and sends data only to the intended recipient.
Finally, a modem (modulator-demodulator) is what connects your local network to the wider internet. It converts the digital signals from your computer into analog signals that can travel over your internet service provider's lines (like cable or DSL) and vice-versa.
Basic Network Configuration
Every device on a network needs an address, just like every house on a street. On a TCP/IP network, this is the IP address. It's a unique identifier that allows devices to find each other and communicate. You've probably seen one before; they look something like 192.168.1.101.
An IP address has two parts: the network portion and the host portion. The network portion identifies the specific network the device is on, while the host portion identifies the specific device on that network.
A subnet mask, like 255.255.255.0, is used to tell devices which part of the IP address is for the network and which is for the host. By using subnet masks, administrators can divide a large network into smaller, more manageable subnetworks, or subnets. This helps organize traffic and improve performance.
These foundational concepts—the layered models, the physical devices, and the addressing schemes—are the building blocks of all computer networks. Understanding them is the first step toward understanding how to secure them.
What is the primary purpose of the OSI model in networking?
When you are streaming a live video, speed is often more important than perfect data accuracy. Which transport protocol is better suited for this task?