Networking
Jul 6, 202611 min read

IPv4, CIDR & MAC Addressing Explained: The Network Engineer's Guide to Addressing and Transmission Timing

Noman Maken
IPv4, CIDR & MAC Addressing Explained: The Network Engineer's Guide to Addressing and Transmission Timing

1. Decoding IPv4 Address Formats: Octets, Binary, and Hexadecimal Notation

Every device on an IPv4 network is identified by a 32-bit binary number. Humans don't read 32-bit binary strings comfortably, so the address is broken into four 8-bit segments — called octets — and each octet is converted to its decimal equivalent, separated by dots. This is why an address like 192.168.1.1 is called dotted-decimal notation, but it's important to remember that the router, switch, or NIC never actually "sees" decimal numbers — it operates entirely on the underlying binary.

1.1 The Anatomy of a 32-Bit Address

Because each octet is 8 bits, its decimal value can range from 0 to 255 (2⁸ = 256 possible values, indexed from 0). Take the address 10.20.30.40. Broken into binary:

Decimal Octet Binary (8 bits) Hexadecimal
10 00001010 0A
20 00010100 14
30 00011110 1E
40 00101000 28

Concatenated, the full address is the 32-bit string 00001010.00010100.00011110.00101000, or in hex, 0A.14.1E.28. Systems programmers and packet-capture tools (like Wireshark) frequently display addresses in hex because it maps cleanly onto memory dumps and header fields.

1.2 Why Format Conversion Matters in Practice

Manual binary-to-decimal conversion is a core CCNA and network+ skill, but in production environments it's rarely done by hand — engineers cross-reference dotted-decimal, binary, hex, and even integer (32-bit unsigned) representations constantly when reading firewall logs, ACL configurations, or raw socket dumps. If you regularly need to move between these representations without introducing transcription errors, our IPv4 Formats converter handles dotted-decimal, binary, hexadecimal, and integer notation interchangeably — useful when auditing firewall rules that mix formats or when reverse-engineering a raw packet capture.

2. CIDR and Subnetting: Beyond Classful Networks

Before 1993, IPv4 networks were divided into rigid classes (A, B, C), each with a fixed boundary between network and host bits. This wasted enormous blocks of address space — a single Class B allocation handed out 65,534 host addresses to an organization that might need only 300. Classless Inter-Domain Routing (CIDR), defined in RFC 4632, replaced this with a flexible network prefix that can end on any bit boundary, not just at 8, 16, or 24 bits.

2.1 Reading the Prefix: What "/24" Actually Means

The notation 192.168.1.0/24 states that the first 24 bits of the 32-bit address are fixed as the network identifier, leaving the remaining 8 bits for host addresses. This is mathematically identical to a subnet mask of 255.255.255.0 — both describe 24 contiguous 1-bits followed by 0-bits. The number of usable host addresses in any subnet is calculated as:

Usable Hosts = 2^(32 − prefix length) − 2

The subtraction of 2 accounts for the reserved network address (all host bits set to 0) and the broadcast address (all host bits set to 1). For a /24, that's 2⁸ − 2 = 254 usable addresses. For a /28, it's 2⁴ − 2 = 14 usable addresses — a common allocation for a small point-to-point link cluster or a branch office VLAN.

2.2 Worked Example: Subnetting a /24 into Four Equal Blocks

Suppose you're allocated 172.16.10.0/24 and need to divide it into four equal subnets to support four separate VLANs. Borrowing 2 bits from the host portion (2² = 4) moves the prefix from /24 to /26:

Subnet Network Address Usable Range Broadcast
1 172.16.10.0/26 .1 – .62 .63
2 172.16.10.64/26 .65 – .126 .127
3 172.16.10.128/26 .129 – .190 .191
4 172.16.10.192/26 .193 – .254 .255

Each block increments by the subnet's total size (64 addresses), and each new network address is a multiple of that block size — this "block size" shortcut (256 minus the last octet of the mask) is faster in practice than recalculating binary boundaries from scratch every time.

2.3 Variable Length Subnet Masking (VLSM) for Uneven Requirements

Real networks rarely need four equal-sized subnets. A WAN link between two routers needs only 2 usable addresses (a /30, wasting the fewest bits), while a user VLAN might need 100. VLSM lets you subnet a subnet — carving a /24 into a /30 for the WAN link and a /25 for the user VLAN, from the same address block, without overlap. Getting this allocation wrong is one of the most common causes of IP conflicts and route summarization failures in enterprise networks, which is why validating your math with a dedicated CIDR Subnetting calculator before pushing a config to production hardware is standard practice, not a shortcut for beginners.

3. MAC Addresses and OUIs: Layer 2 Identification

While IPv4 addresses operate at Layer 3 and can be reassigned or spoofed relatively easily, the Media Access Control (MAC) address is a 48-bit identifier burned into (or virtually assigned to) a network interface at Layer 2. It's what switches actually use to forward frames within a local segment — your IP address gets you routed to the right network, but the MAC address gets the frame to the right physical port.

3.1 Structure of a 48-Bit MAC Address

A MAC address is written as six pairs of hexadecimal digits, e.g., 00:1A:2B:3C:4D:5E, separated by colons, hyphens, or dots depending on vendor convention (Cisco IOS notoriously uses dot-separated groups of four, e.g., 001A.2B3C.4D5E). The 48 bits split into two functional halves:

  • First 24 bits (3 octets): The Organizationally Unique Identifier (OUI), assigned by the IEEE Registration Authority to the hardware manufacturer. This is why you can often identify a device's vendor — Apple, Cisco, Intel — just from the first half of its MAC address.
  • Last 24 bits (3 octets): A unique interface serial number assigned by the manufacturer, ensuring no two NICs from the same vendor share an address.

3.2 The U/L and I/G Bits: Reading Metadata from a Single Byte

The two least-significant bits of the very first byte carry hidden metadata that's easy to overlook:

  • I/G bit (bit 0): If 0, the address is a unicast destination for a single NIC. If 1, it's a multicast address destined for a group of interfaces.
  • U/L bit (bit 1): If 0, the address is globally unique (factory-assigned via the OUI system). If 1, it's locally administered — meaning software (a hypervisor, a VPN client, or a network admin) overrode the burned-in address.

This matters practically in virtualization: hypervisors like VMware ESXi and KVM assign locally administered MAC addresses to virtual NICs precisely because they aren't tied to physical hardware from a registered vendor. When troubleshooting duplicate address conflicts or auditing which devices on a segment are virtual versus physical, converting between colon, hyphen, and dot-notation formats cleanly is essential — our MAC Address Formats tool normalizes between these conventions so logs from mixed-vendor environments (Cisco, Juniper, Linux) can be compared directly.

4. Transmission Time vs. Propagation Delay: Calculating Real Network Performance

A remarkably common misconception — even among experienced admins — is treating "latency" as a single, monolithic number. In reality, the time it takes a packet to travel from sender to receiver is the sum of at least four distinct delay components: transmission delay, propagation delay, queuing delay, and processing delay. The first two are the ones most directly governed by physics and link characteristics, and they are frequently confused with one another.

4.1 The Transmission Time Formula

Transmission delay is the time required to push all of a packet's bits onto the physical link. It depends entirely on packet size and link bandwidth — not on distance:

Transmission Time (t) = Packet Length (L, in bits) ÷ Link Bandwidth (R, in bits/second)

Consider a 1,500-byte Ethernet frame (12,000 bits) sent over a 1 Gbps link:

t = 12,000 bits ÷ 1,000,000,000 bits/sec = 0.000012 seconds = 12 microseconds

Now compare that same frame over a 10 Mbps link — a thousand times slower:

t = 12,000 bits ÷ 10,000,000 bits/sec = 0.0012 seconds = 1.2 milliseconds

This is why bandwidth upgrades disproportionately help throughput-heavy applications (large file transfers, backups) — they shrink transmission delay directly. But bandwidth upgrades do almost nothing for latency-sensitive applications like VoIP or competitive gaming, because those are dominated by the next component.

4.2 Propagation Delay: The Physics You Can't Upgrade Away

Propagation delay is the time for a single bit to physically travel across the medium, governed by distance and the signal's velocity — not by bandwidth at all:

Propagation Delay (t) = Distance (d) ÷ Propagation Speed (s)

Signal speed in fiber-optic cable runs at roughly 2 × 10⁸ m/s (about two-thirds the speed of light in a vacuum, due to the refractive index of glass). A transcontinental fiber link spanning 4,000 km therefore has an unavoidable one-way propagation delay of:

t = 4,000,000 m ÷ 2×10⁸ m/s = 0.02 seconds = 20 milliseconds

No amount of bandwidth upgrading reduces this number — it's fixed by geography and the medium. This is precisely why global CDNs place edge servers close to end users: the goal is minimizing d in the propagation formula, not maximizing R in the transmission formula. It's also why satellite links (geostationary orbit ≈ 35,786 km up) impose a physically unavoidable round-trip delay of roughly 480–600 milliseconds, regardless of how much bandwidth the satellite provider advertises.

4.3 Putting It Together: Total Link Delay

For a single packet traversing one link, total delay is the sum of transmission and propagation time (queuing and processing delay are workload-dependent and layered on top separately):

Total Delay ≈ Transmission Time + Propagation Delay + Queuing Delay + Processing Delay

Whether you're sizing a WAN link, diagnosing why a VoIP call has noticeable delay despite plenty of available bandwidth, or estimating theoretical throughput before a capacity upgrade, isolating each component is essential — running the numbers through a dedicated Transmission Time calculator makes it easy to see exactly how much of your latency budget is genuinely improvable with a bandwidth upgrade, and how much is baked into the laws of physics.

5. Practical Scenarios: Where This Math Shows Up in Real Work

Data Center Migrations

Re-IP'ing a data center means recalculating hundreds of CIDR blocks without overlap, while confirming MAC-to-IP bindings on DHCP reservations survive the move.

VoIP Quality Troubleshooting

Jitter and choppy calls are usually a queuing delay problem, not a bandwidth problem — separating transmission time from propagation and queuing delay pinpoints the real bottleneck.

Rogue Device Detection

Cross-referencing an unfamiliar OUI prefix against IEEE vendor records is often the fastest way to flag an unauthorized device on a switch port.

Certification Exam Prep

CCNA, Network+, and JNCIA exams routinely test manual subnetting and binary conversion under time pressure — the underlying math here is exactly what's assessed.

Frequently Asked Questions

What is the difference between a subnet mask and a CIDR prefix?

They express the same information differently. A subnet mask like 255.255.255.0 and a prefix like /24 both mean the first 24 bits of the address are the network portion — CIDR notation is just shorthand for the count of leading 1-bits.

Why do MAC addresses use hexadecimal instead of decimal?

Each hex digit represents exactly 4 bits, so 12 hex characters losslessly represent the full 48-bit address. Decimal doesn't align to binary boundaries as cleanly, making hex the natural fit.

Is transmission time the same as network latency?

No. Transmission time is just one component of total latency, alongside propagation, queuing, and processing delay. Transmission time depends on packet size and bandwidth; propagation delay depends on distance and medium.

Conclusion

IPv4 formatting, CIDR subnetting, MAC address structure, and transmission timing all trace back to the same underlying discipline: binary math applied to physical constraints. Tools exist to automate the arithmetic, but understanding the mechanics behind each calculation — why a /26 yields 62 hosts, why an OUI identifies a vendor, why a satellite link can never beat fiber on latency — is what lets you design networks deliberately instead of guessing.

Keep Reading