AWS Cloud Networking Essentials
Networking Basics
The Language of the Internet
Every device connected to a network needs a unique identifier, just like every house on a street needs an address. On the internet, this identifier is called an Internet Protocol (IP) address. It's how devices find and talk to each other across the globe.
The most common format you'll see is IPv4, which looks like four numbers separated by periods. For example, 172.16.254.1 is an IP address. Each of these numbers can range from 0 to 255. Behind the scenes, an IP address is actually a 32-bit binary number, but we use the dotted-decimal notation because it's easier for humans to read.
Think of an IP address as a phone number for your computer. It allows other computers to call it, and it allows your computer to call others.
IP addresses come in two main flavors: public and private. A public IP address is a globally unique address assigned to a device by an Internet Service Provider (ISP). It's visible to the entire internet. A private IP address is used within a local network, like your home Wi-Fi. It's not visible to the outside world and allows multiple devices in your home to share a single public IP address through your router.
Creating Neighborhoods with Subnets
Imagine a large city. To make mail delivery manageable, the city is divided into zip codes. In networking, we do something similar with a technique called subnetting. Subnetting breaks a large network into smaller, more manageable pieces called subnets.
This is done using a subnet mask, which looks like an IP address (e.g., 255.255.255.0). A subnet mask splits an IP address into two parts: the network portion and the host portion.
- Network Portion: Identifies the subnet. All devices on the same subnet share the same network portion.
- Host Portion: Identifies a specific device on that subnet.
A shorter way to write a subnet mask is using CIDR (Classless Inter-Domain Routing) notation. Instead of writing 255.255.255.0, we can simply write /24. This number represents how many bits are used for the network portion of the address.
| Concept | Example | What it means |
|---|---|---|
| IP Address | 192.168.1.100 | The unique address of a device. |
| Subnet Mask | 255.255.255.0 | Defines the size of the network. |
| CIDR Notation | /24 | A shorthand for the subnet mask. |
| Network ID | 192.168.1.0 | The address of the subnet itself. |
| Host ID | 100 | The specific device on the subnet. |
By adjusting the subnet mask, network administrators can create subnets of different sizes to fit their needs, improving organization and security.
Finding the Way with Routing
When you send a letter, the postal service doesn't just guess where to send it. It follows a specific path through various sorting facilities to reach its destination. Routing is the internet's version of this. It's the process of selecting a path for data packets to travel from a source network to a destination network.
This job is handled by devices called routers. A router is a traffic cop for networks. It sits between two or more networks and decides where to forward incoming packets. To make these decisions, a router uses a routing table—a set of rules, much like a GPS, that maps out the best paths to different network destinations.
Every time you load a webpage or send an email, routers are making millions of these split-second decisions to guide your data to its final stop.
A Framework for Communication
With so many different hardware and software components involved, how do they all speak the same language? The Open Systems Interconnection (OSI) model provides the answer. It’s a conceptual framework that standardizes the functions of a telecommunication or computing system into seven abstract layers.
Think of it like building a car. You have different teams working on the engine, the chassis, the electronics, and the interior. Each team can work independently as long as they follow a standard blueprint for how their part connects to the others. The OSI model is that blueprint for networking.
Each layer has a specific job, and it only communicates with the layers directly above and below it. This separation of concerns makes it much easier to develop new networking technologies and troubleshoot problems when they arise. A problem at the Physical layer (like a bad cable) is diagnosed differently than a problem at the Application layer (like a misconfigured browser).
Networking Fundamentals: Understand basic networking concepts like TCP/IP, DNS, load balancing, and firewalls.
These core concepts—IP addresses, subnets, routing, and the OSI model—are the bedrock of all modern networking. Understanding them is the first step to building and managing complex network infrastructures.
Time to check what you've learned.
What is the primary function of an IP address?
An IPv4 address, like 172.16.254.1, is represented in dotted-decimal notation. What is the valid range for each number in this notation?