Lesson 2 · Unit 01
Addresses and routes
IP addresses, prefixes, NAT and hop-by-hop routing
What you practise
- IPv4 addresses, CIDR prefixes and subnet sizes, private ranges and NAT, the default gateway, hop-by-hop routing, TTL and
traceroute, a word on IPv6
Try a question from this lesson
Pick one
Your laptop is 192.168.1.7 on a network where every address starts with 192.168.1. Which destination is outside it, so the packet must go to the router?
Correct answer
192.168.2.7
Why
The first three numbers name this network, and 192.168.2.7 has a different third number. Machines on your own network are reached directly. Everything else is handed to the router to forward.
The ideas
Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.
Concept
An address has two parts
An IPv4 address is 32 bits, written as four numbers from 0 to 255.
The prefix after the slash says how many leading bits name the network. The remaining bits name one host inside it. With /24, the first three numbers are the network and the last is the host.
192.168.1.7/24
192.168.1 network (24 bits)
.7 host (8 bits)Concept
Private addresses and NAT
Three ranges are private: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Any network may use them, and no internet router will forward them.
A home has one public address, held by the router. Outgoing packets get it as their source, and the router keeps a table so replies reach the right device.
laptop 192.168.1.7 -+
phone 192.168.1.8 -+- router - internet
tv 192.168.1.9 -+ 203.0.113.5010 more exercises in the app
- 3× type the answer
- 1× fill the blanks
- 3× multiple choice
- 1× true or false
- 1× order the lines
- 1× match the pairs
Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.