0.0.0.0
through 255.255.255.255
223.1.1
in the above figurea.b.c.d/n
, where
n
indicates the number of bits in the network prefix223.1.1.0/24
to denote a 24-bit
network prefix223.1.1.xxx
ISP: | 200.23.16.0/20 | 11001000 00010111 00010000 00000000 |
Org. 0: | 200.23.16.0/23 | 11001000 00010111 00010000 00000000 |
Org. 1: | 200.23.18.0/23 | 11001000 00010111 00010010 00000000 |
Org. 2: | 200.23.20.0/23 | 11001000 00010111 00010100 00000000 |
... | ... | ... |
Org. 7: | 200.23.30.0/23 | 11001000 00010111 00011110 00000000 |
10.0.0.0 | - | 10.255.255.255 | (10/8 prefix) |
172.16.0.0 | - | 172.31.255.255 | (172.16/12 prefix) |
192.168.0.0 | - | 192.168.255.255 | (192.168/16 prefix) |
127/8
for loopback127.0.0.1
as the loopback address
For a newly arriving host, DHCP is a four-step process:
dest
)
and "this host" (src
) for yiaddr
("Your Internet address")Lifetime
)
138.76.29.7
138.76.29.7
Destination Address Range | Next Hop Interface |
---|---|
200.23.16.0/21 | 0 |
200.23.28.0/24 | 1 |
200.23.24.0/21 | 2 |
Default | 3 |
11001000 00010111 00011100 10101010
matches
Destination Address Range | Next Hop Interface |
---|---|
200.23.16.0/21 11001000 00010111 00010000 00000000 | 0 |
200.23.28.0/24 11001000 00010111 00011100 00000000 | 1 |
200.23.24.0/21 11001000 00010111 00011000 00000000 | 2 |
Default | 3 |
1
Type | Code | Description |
---|---|---|
0 | 0 | echo reply (to ping) |
3 | 0 | destination network unreachable |
3 | 1 | destination host unreachable |
3 | 2 | destination protocol unreachable |
3 | 3 | destination port unreachable |
3 | 6 | destination network unknown |
3 | 7 | destination host unknown |
4 | 0 | source quench (congestion control) |
8 | 0 | echo request |
9 | 0 | router advertisement |
10 | 0 | router discovery |
11 | 0 | TTL expired |
12 | 0 | bad IP header |
traceroute
application
to construct a list of routers to a given destinationping
application
Initialisation: 1. N' = {u} 2. for all nodes v 3. if v is a neighbour of u 4. then D(v) = c(u,v) 5. else D(v) = infinity 6. Loop 7. find w not in N' such that D(w) is a minimum 8. add w to N' 9. update D(v) for each neighbour v of w not in N': 10. D(v) = min( D(v), D(w) + c(w,v) ) 11. until N' = N
v
is either the old cost to v
or the cost of the known least-cost path to w
plus the cost from w
to v
See Chapters 4 and 5 of [Kurose and Ross], Chapters 20, 21, 22 and parts of 23 of [Comer] and parts of Chapter 5 of [Tanenbaum].