Skip to main content

Hextet in AP Networking

In AP Networking, a hextet is a group of 16 bits in an IPv6 address, written as four hexadecimal digits. Eight hextets separated by colons make up the full 128-bit IPv6 address.

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 hextet?

A hextet is a chunk of an IPv6 address. Every IPv6 address is 128 bits long, and those bits get split into 8 equal groups of 16 bits each. Each of those groups is a hextet. So 8 hextets times 16 bits equals 128 bits, the full address.

You don't write hextets in binary, that would be unreadable. Instead each hextet shows up as four hexadecimal digits, and you separate the hextets with colons. That's why an IPv6 address looks like 2001:0db8:85a3:0000:0000:8a2e:0370:7334, which is just 8 hextets lined up. Think of a hextet as one "word" in the address, and the whole IPv6 address is a sentence of 8 words punctuated by colons.

Why hextet matters in AP Networking

Hextets live in Unit 4: Managing Our Global Connections, specifically topic 4.6, and they back learning objective AP Networking 4.6.A (explaining how IPv6 serves today's networks). You can't explain why IPv6 fixes the IPv4 shortage without the math behind hextets. Eight hextets of 16 bits each give you a 128-bit address, and 2^128 possible addresses is a number so huge every device on Earth can get its own unique, globally routable IP. That's the whole point of IPv6, and the hextet is the building block that gets you there.

Keep studying AP Networking Unit 4

How hextet connects across the course

IPv6 Address (Unit 4)

A hextet is a piece, an IPv6 address is the whole thing. Eight hextets strung together with colons equals one complete 128-bit IPv6 address, so understanding hextets is just understanding IPv6 addresses one group at a time.

Hexadecimal (Unit 4)

Hextets are written in hexadecimal, not binary. Each hextet is 16 bits, which fits neatly into exactly four hex digits, so hex is the shorthand that keeps IPv6 addresses short enough to read.

Double Colon (::) (Unit 4)

When one or more hextets are all zeros, you can collapse them into a double colon to shorten the address. Knowing a hextet is a 16-bit group is what lets you figure out how many zero-hextets a :: is standing in for.

IPv4 Address Exhaustion (Unit 4)

The reason IPv6 uses 8 hextets at all is to escape the IPv4 shortage. More bits means more addresses, and the hextet structure is how IPv6 packs 128 bits into something humans can still read.

Is hextet on the AP Networking exam?

Expect hextets in multiple-choice questions about IPv6 structure. A stem might show an IPv6 address and ask how many bits it holds (128), how many hextets it has (8), or how many bits are in one hextet (16). Another common angle connects hextets to hex: each hextet is four hexadecimal digits. No released FRQ has used the word "hextet" verbatim, but a free-response prompt tied to 4.6.A could ask you to explain how IPv6 addressing supports network growth, and describing the 8-hextet, 128-bit format is a clean way to earn that point. Be ready to count: 8 hextets, 16 bits each, 128 bits total, 2^128 addresses.

Hextet vs octet

An octet is 8 bits and is the group used in IPv4 (four octets make a 32-bit IPv4 address). A hextet is 16 bits and is used in IPv6 (eight hextets make a 128-bit address). Same idea of "a chunk of the address," but a hextet is twice the size and belongs to IPv6.

Key things to remember about hextet

  • A hextet is a group of 16 bits inside an IPv6 address.

  • Each IPv6 address has 8 hextets, which multiply out to the full 128 bits.

  • Hextets are written in hexadecimal digits, four per hextet, separated by colons.

  • The 8-hextet, 128-bit design is why IPv6 offers 2^128 addresses and solves IPv4 exhaustion.

  • Don't confuse a hextet (16 bits, IPv6) with an octet (8 bits, IPv4).

Frequently asked questions about hextet

What is a hextet in IPv6?

A hextet is one of the 8 groups of 16 bits that make up an IPv6 address. Each hextet is shown as four hexadecimal digits, and colons separate the hextets.

How many hextets are in an IPv6 address?

Eight. Each hextet is 16 bits, and 8 times 16 equals the 128 total bits of an IPv6 address.

Is a hextet the same as an octet?

No. An octet is 8 bits and is used in IPv4, while a hextet is 16 bits and is used in IPv6. A hextet is twice the size of an octet.

Why does IPv6 use hextets instead of the groups IPv4 uses?

IPv6 needed far more addresses than IPv4 could provide, so it uses 128 bits instead of 32. Splitting those 128 bits into 8 hextets of 16 bits each keeps the address organized and readable in hexadecimal.

How many bits are in one hextet?

16 bits, which is exactly four hexadecimal digits. That's why 2001 or 0db8 each count as a single hextet.

Keep studying AP Networking

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