Untitled Flashcard Set
1. IPv4 Address Structure & Mathematical Foundations
Prefix Length
Represents the number of contiguous bits set to binary in the subnet mask.
Expressed in Classless Inter-Domain Routing (CIDR) slash notation (e.g., corresponds to a subnet mask of ).
Defines the boundary separating the network portion from the host portion of an IP address.
Logical AND Operation
A bitwise Boolean operation performed by networking devices (such as hosts and routers) to determine the destination network address.
Truth Table Rules:
An IPv4 address is compared bit-by-bit against the subnet mask. Where mask bits are , the IP bit is preserved; where mask bits are , the result is always .
Octet Boundary
Occurs when subnetting strictly aligns with -bit boundaries (, , , and ).
At an octet boundary, subnet calculations do not require binary conversion because entire octets are dedicated entirely to the network or host portions.
2. Subnet Address Types & Host Ranges
Network Address
The very first address in a subnet, where all host bits are set to binary .
Serves as the unique identifier for the entire subnet.
Cannot be assigned to an individual host interface.
Broadcast Address
The very last address in a subnet, where all host bits are set to binary .
Used to deliver packets simultaneously to every host on that specific local subnet.
Cannot be assigned to an individual host interface.
First Usable Address
The numerical address immediately following the network address.
Calculated as: .
Last Usable Address
The numerical address immediately preceding the directed broadcast address.
Calculated as: .
Usable Host Formula
For a subnet with host bits, total usable host addresses are calculated by:
The subtraction of accounts for the reserved network and broadcast addresses.
3. Address Categories & Protocols
Public vs. Private Addresses
Public Addresses: Globally unique IPv4 addresses routable across the global Internet, assigned through authorized registries.
Private Addresses (RFC 1918): Reserved for internal local area networks; non-routable on the public Internet.
Class A Range: ( to )
Class B Range: ( to )
Class C Range: ( to )
Network Address Translation (NAT)
A method enabling multiple devices on a private network to share one or a small pool of public IP addresses.
Modifies IP headers in transit, mapping internal private IP:port pairs to external public IP:port pairs, conserving public IPv4 space.
Loopback Addresses
Block: (most commonly /
localhost).Packets sent to this address loop directly back within the local operating system without being transmitted across any physical network interface.
Used for troubleshooting the local TCP/IP protocol stack and running local server processes.
Automatic Private IP Addressing (APIPA)
Block: ( to ).
Automatically self-assigned by an operating system when a DHCP client fails to discover or reach a DHCP server.
Allows communication strictly with other devices on the same local Layer 2 broadcast link, but cannot cross routers.
4. Legacy Classful Addressing & Internet Governance
Classful Addressing
Historical system allocating static blocks based on leading bit patterns:
Class A: Range to (Default mask: ; Leading bit:
0)Class B: Range to (Default mask: ; Leading bits:
10)Class C: Range to (Default mask: ; Leading bits:
110)Class D: Range to (Reserved for Multicast; Leading bits:
1110)Class E: Range to (Reserved for Experimental/Research purposes; Leading bits:
1111)
IANA and Regional Internet Registries (RIRs)
Internet Assigned Numbers Authority (IANA): The central authority responsible for global IP address allocation and root zone DNS management.
Regional Internet Registries (RIRs): Five regional entities that receive large IP blocks from IANA and distribute them to ISPs and local enterprises:
ARIN: North America
RIPE NCC: Europe, Middle East, parts of Central Asia
APNIC: East Asia and Pacific region
LACNIC: Latin America and the Caribbean
AFRINIC: Africa
5. Segmentation & Advanced Subnetting
Broadcast Domains
A logical division of a computer network in which any device can reach all other devices via a data link broadcast.
Layer 2 switches forward broadcasts to all ports within a VLAN.
Layer 3 routers define the boundary of broadcast domains and do not forward Layer 2 broadcasts by default.
Subnets
Subdividing a larger network into multiple smaller, logically isolated segments by borrowing bits from the host portion to enlarge the network portion.
Improves security, minimizes broadcast traffic congestion, and simplifies administrative organization.
Variable-Length Subnet Mask (VLSM)
The practice of applying different subnet mask lengths to individual subnets within the same parent network.
Also known as "subnetting a subnet."
Solves the inefficiency of fixed-length subnetting by tailoring the subnet size to match the exact host requirements of each segment (e.g., using or for point-to-point router links to eliminate wasted host addresses).