Computer networks notes
The Subnet Mask
How a device uses a mask and a bitwise AND to decide: send direct, or route? Every section is a drawn page beside a clear written explanation, about 11 minutes in all.
- Chapter 4 of 31
- About 11 minutes
- 9 sections
Sign in with Google or GitHub and you land straight on this page. DSA comes with the all labs plan and every ChaiCode batch.

In this chapter
- Why we need a subnet mask
- A mask looks like an IP
- 255 means "all ones"
- The bitwise AND rule
- Working an example
- Same network? Send direct
- Different network? Route it
- A /16 mask
- Why developers care: latency
Next chapters
Read the whole chapter
Sign in and the chapter opens with every drawn page, and all 32 computer networks chapters beside it.
DSA comes with the all labs plan and every ChaiCode batch.