Skip to main content

CIDR notation in AP Networking

CIDR notation is a shorthand for writing an IPv4 address with a slash followed by the number of network bits (for example, 192.168.1.0/24), where that number tells you how many leading bits of the 32-bit address identify the network instead of listing a full subnet mask.

This definition is part of Fiveable's AP Networking review, which also has guided practice questions.

Verified for the 2027 AP Networking exam•Last updated November 2026•Fiveable Content Team

What is CIDR notation?

CIDR (Classless Inter-Domain Routing) notation is just a faster way to write a subnet mask. Instead of spelling out a mask like 255.255.255.0 in dotted decimal, you tack a slash and a number onto the IP address, so 192.168.1.0/24 means the same thing. That /24 tells you the first 24 bits of the 32-bit IPv4 address are network bits, and the remaining 8 are host bits.

This lines up directly with how [AP Networking 3.3.B] describes subnet masks. A mask is a run of 1s followed by a run of 0s, where the 1s mark network bits and the 0s mark host bits. Count the 1s and you get the CIDR number. A mask of 255.255.255.0 is twenty-four 1s, so it's /24. A mask of 255.255.0.0 is sixteen 1s, so it's /16. CIDR notation is literally that count, written as one tidy number.

Why CIDR notation matters in AP Networking

CIDR notation lives in Unit 3: Managing Many Connections, under topic 3.3. It supports [AP Networking 3.3.B], where you decide whether two devices sit on the same network based on their IP addresses and subnet masks. If you can read /24 as "the first three octets are the network," you can instantly check whether two addresses share that network portion. It also connects to [AP Networking 3.3.A], since configuring a static IP means setting the address and mask together, and CIDR is the compact way that pairing gets expressed.

Keep studying AP Networking Unit 3

How CIDR notation connects across the course

Subnet mask in dotted decimal (Unit 3)

CIDR notation and a dotted-decimal subnet mask are two names for the same thing. /24 and 255.255.255.0 both say twenty-four network bits, so converting between them is just counting the 1s in the binary mask.

Host portion (Unit 3)

The CIDR number tells you the network bits, and whatever's left over is the host portion. A /24 leaves 8 host bits, which is how many addresses are available for devices on that network.

DHCP pool (Unit 3)

A DHCP server hands out addresses from a range that fits inside one network's CIDR block. Knowing the /24 or /25 tells you how big that pool can be and which addresses fall inside it.

Is CIDR notation on the AP Networking exam?

Expect to read or write an address in CIDR form and translate it to or from a dotted-decimal subnet mask. For [AP Networking 3.3.B], a question might hand you two IP addresses with a /24 and ask whether they're on the same network. Compare the bits covered by the mask: if the network portions match, they share a network. For [AP Networking 3.3.A], you may configure a static IP where the mask is given in CIDR shorthand. No released FRQ uses the phrase "CIDR notation" verbatim, but the subnet-mask reasoning it encodes is exactly the kind of same-network determination the CED asks you to perform.

CIDR notation vs dotted decimal notation

Dotted decimal notation is the format for writing any IPv4 address or mask as four numbers from 0 to 255 (like 255.255.255.0). CIDR notation is the slash shorthand for the mask part only (like /24). They aren't competing systems; CIDR is just a compact way to state the same mask that dotted decimal spells out in full.

Key things to remember about CIDR notation

  • CIDR notation writes an IP address with a slash and a number, like 192.168.1.0/24, where the number is the count of network bits.

  • The CIDR number equals the number of 1s in the subnet mask, so /24 is the same as 255.255.255.0.

  • Because an IPv4 address has 32 bits total, subtracting the CIDR number gives you the host bits (/24 leaves 8 host bits).

  • To check if two devices share a network, compare the bits covered by the CIDR mask; matching network portions means same network.

  • CIDR and dotted-decimal masks say the same thing, so being able to convert between them is the real skill tested in topic 3.3.

Frequently asked questions about CIDR notation

What is CIDR notation in AP Networking?

It's a shorthand for a subnet mask, written as a slash plus the number of network bits, such as 192.168.1.0/24. That /24 means the first 24 of the address's 32 bits identify the network, matching the subnet-mask idea in [AP Networking 3.3.B].

Is /24 the same as 255.255.255.0?

Yes. A /24 means twenty-four 1s in the mask, and twenty-four 1s in binary converts to 255.255.255.0 in dotted decimal. They're identical, just written two different ways.

How is CIDR notation different from dotted decimal notation?

Dotted decimal is the four-number format (0 to 255 per octet) used for any IPv4 address or full mask. CIDR is the slash-number shorthand used only for the mask portion, so /16 is the CIDR version of the dotted-decimal mask 255.255.0.0.

How do I use CIDR to tell if two devices are on the same network?

Apply the CIDR mask to both addresses and compare the network bits. If a /24 is used and two addresses match in their first three octets, they share a network; if those bits differ, they don't.

How many host addresses does a /24 give you?

A /24 leaves 8 host bits (32 minus 24), which covers 256 total addresses in the block, with usable host addresses after you account for the network and broadcast addresses.

Keep studying AP Networking

Connect this key term to the AP exam workflow: review the course, practice questions, and check related study tools.