Summary of IP addresses, mask and subnets

IP Addresses, Subnet Masks, and Subnets Explained

IPv4 Addressing and Subnetting Fundamentals

Welcome to the exciting world of IPv4 addressing! If you've ever wondered how computers find each other on the internet, you're in the right place. Just like a postal address helps mail carriers deliver letters to the right house, an IP address helps data find its way to the correct device on a network. This study material will break down the core concepts of IPv4 addresses, their structure, and how they are used to organize networks.

What is an IP Address?

An Internet Protocol (IP) address is a unique numerical label assigned to every device connected to a computer network that uses the Internet Protocol for communication. Think of it as a device's unique identifier on a vast digital map. Its primary roles are to identify a host or network interface and to provide location addressing so data can be routed efficiently.

An IP address is a unique numerical identifier for a device on a network, enabling data routing.

IPv4: The Foundation

The most widely used version of the Internet Protocol is IPv4 (Internet Protocol version 4). It's been the backbone of the internet for decades. An IPv4 address is not just any number; it's a specific type of number:

  • An IPv4 address is a 32-bit number. This means it's composed of 32 binary digits (bits), where each bit can be either a $0$ or a $1$.
  • With 32 bits, the total number of unique addresses possible is $2^{32}$, which is approximately $4.3$ billion.
💡 Did you know?Did you know that despite the vast number of IPv4 addresses, the rapid growth of the internet led to concerns about address exhaustion, which was a primary driver for the development of IPv6?

Dotted-Decimal Notation

Reading and remembering a 32-bit binary number like 11000000101010000000101000000001 would be quite challenging for humans. To make IPv4 addresses more user-friendly, they are represented in dotted-decimal notation.

Here's how it works:

  1. The 32 bits are divided into four 8-bit segments. Each 8-bit segment is called an octet.
  2. Each octet's binary value is converted into its decimal equivalent.
  3. The four decimal numbers are then separated by periods (dots).

Example:

  • Binary IP Address: 11000000.10101000.00001010.00000001
  • Decimal conversion of each octet:
    • 11000000 (binary) $= (1 \times 2^7) + (1 \times 2^6) + (0 \times 2^5) + \dots + (0 \times 2^0) = 128 + 64 = 192$ (decimal)
    • 10101000 (binary) $= (1 \times 2^7) + (0 \times 2^6) + (1 \times 2^5) + \dots + (0 \times 2^0) = 128 + 32 + 8 = 168$ (decimal)
    • 00001010 (binary) $= (0 \times 2^7) + \dots + (1 \times 2^3) + (0 \times 2^2) + (1 \times 2^1) + (0 \times 2^0) = 8 + 2 = 10$ (decimal)
    • 00000001 (binary) $= (0 \times 2^7) + \dots + (1 \times 2^0) = 1$ (decimal)
  • Dotted-decimal notation: 192.168.10.1

Since an octet consists of 8 bits, it can represent $2^8 = 256$ unique values. Therefore, each decimal number in a dotted-decimal IP address can range from $0$ to $255$.

Network and Host Components

Every IPv4 address is logically divided into two fundamental parts: the network portion and the host portion. This division is critical for how data moves across networks.

  • The network portion identifies the specific network to which a device belongs. All devices on the same local network share the same network portion of their IP address. This is like the street name in a postal address.
  • The host portion uniquely identifies a specific device within that network. No two devices on the same network can have the same host portion. This is analogous to the house number on a street.

This separation allows routers to direct data packets to the correct network using the network portion, and then devices within that network use the host portion to deliver the packet to the intended recipient.

The Subnet Mask

How do we know where the network portion ends and the host portion begins in a

Sign up for the full summary
FlashcardsKnowledge testSummaryPodcastMindmap
Start for free

Already have an account? Sign in

IPv4 Basics

Klíčová slova: IPv4 Addressing and Subnetting, IP Subnetting, IP Subnetting Calculations and Concepts

Klíčové pojmy: An IPv4 address is a 32-bit numerical label identifying a device on a network., IPv4 addresses are commonly expressed in dotted-decimal notation, separating four octets., Each octet in an IPv4 address ranges from 0 to 255., An IPv4 address is logically divided into a network portion and a host portion., The network portion identifies the network, while the host portion identifies the specific device., A subnet mask is a 32-bit number used to differentiate the network and host parts., In a subnet mask, '1's represent the network portion, and '0's represent the host portion., CIDR prefix notation (e.g., `/24`) indicates the number of bits in the network portion., The CIDR prefix length is equivalent to the number of '1's in the binary subnet mask., The bitwise AND operation between an IP address and its subnet mask yields the network address.

# IPv4 Addressing and Subnetting Fundamentals Welcome to the exciting world of **IPv4 addressing**! If you've ever wondered how computers find each other on the internet, you're in the right place. Just like a postal address helps mail carriers deliver letters to the right house, an IP address helps data find its way to the correct device on a network. This study material will break down the core concepts of IPv4 addresses, their structure, and how they are used to organize networks. ## What is an IP Address? An **Internet Protocol (IP) address** is a unique numerical label assigned to every device connected to a computer network that uses the Internet Protocol for communication. Think of it as a device's unique identifier on a vast digital map. Its primary roles are to **identify** a host or network interface and to provide **location addressing** so data can be routed efficiently. > An **IP address** is a unique numerical identifier for a device on a network, enabling data routing. ### IPv4: The Foundation The most widely used version of the Internet Protocol is **IPv4** (Internet Protocol version 4). It's been the backbone of the internet for decades. An IPv4 address is not just any number; it's a specific type of number: * An IPv4 address is a **32-bit number**. This means it's composed of 32 binary digits (bits), where each bit can be either a $0$ or a $1$. * With 32 bits, the total number of unique addresses possible is $2^{32}$, which is approximately $4.3$ billion. Did you know that despite the vast number of IPv4 addresses, the rapid growth of the internet led to concerns about address exhaustion, which was a primary driver for the development of IPv6? ### Dotted-Decimal Notation Reading and remembering a 32-bit binary number like `11000000101010000000101000000001` would be quite challenging for humans. To make IPv4 addresses more user-friendly, they are represented in **dotted-decimal notation**. Here's how it works: 1. The 32 bits are divided into four 8-bit segments. Each 8-bit segment is called an **octet**. 2. Each octet's binary value is converted into its decimal equivalent. 3. The four decimal numbers are then separated by periods (dots). **Example:** * Binary IP Address: `11000000.10101000.00001010.00000001` * Decimal conversion of each octet: * `11000000` (binary) $= (1 \times 2^7) + (1 \times 2^6) + (0 \times 2^5) + \dots + (0 \times 2^0) = 128 + 64 = 192$ (decimal) * `10101000` (binary) $= (1 \times 2^7) + (0 \times 2^6) + (1 \times 2^5) + \dots + (0 \times 2^0) = 128 + 32 + 8 = 168$ (decimal) * `00001010` (binary) $= (0 \times 2^7) + \dots + (1 \times 2^3) + (0 \times 2^2) + (1 \times 2^1) + (0 \times 2^0) = 8 + 2 = 10$ (decimal) * `00000001` (binary) $= (0 \times 2^7) + \dots + (1 \times 2^0) = 1$ (decimal) * Dotted-decimal notation: `192.168.10.1` Since an octet consists of 8 bits, it can represent $2^8 = 256$ unique values. Therefore, each decimal number in a dotted-decimal IP address can range from $0$ to $255$. ## Network and Host Components Every IPv4 address is logically divided into two fundamental parts: the **network portion** and the **host portion**. This division is critical for how data moves across networks. * The **network portion** identifies the specific network to which a device belongs. All devices on the same local network share the same network portion of their IP address. This is like the street name in a postal address. * The **host portion** uniquely identifies a specific device *within* that network. No two devices on the same network can have the same host portion. This is analogous to the house number on a street. This separation allows routers to direct data packets to the correct network using the network portion, and then devices within that network use the host portion to deliver the packet to the intended recipient. ## The Subnet Mask How do we know where the network portion ends and the host portion begins in a