22-Elec-B4 Information Technology Networks · December 2017
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer) · Last updated
Reference texts.
Canadian context. The addressing and numbering practice assumed throughout is the Canadian one: IPv4 and IPv6 blocks used by Canadian networks are allocated by ARIN, of which Canada is part, and the national research network CANARIE has run production IPv6 since the mid-2000s, which is why the IPv6 answer in Question 1(c) is the operational rather than the theoretical response. Circuit-switched telephony in Question 5 refers to the Canadian PSTN as regulated by the CRTC.
Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.
[Figure not reproduced: Figure 1.1 — The three-LAN internetwork of Question 1, redrawn from the examination paper. Each dark box is a router with one interface on the bus above it and one on the bus below; R1 joins 128.100.11.0 to 128.100.12.0, and R2 joins 128.100.12.0 to 128.100.13.0 and also carries the Internet u. See the official exam paper.]
Given. Three broadcast LANs, each a class-B network subnetted on a byte boundary, so the netmask is 255.255.255.0 (a /24 prefix, 254 usable host addresses per LAN):
| LAN (subnet) | Netmask | Hosts | Router interfaces on this LAN |
|---|---|---|---|
| 128.100.11.0 | 255.255.255.0 | 128.100.11.1, 128.100.11.2 | 128.100.11.3 (R1) |
| 128.100.12.0 | 255.255.255.0 | 128.100.12.1, 128.100.12.2 | 128.100.12.3 (R1), 128.100.12.254 (R2) |
| 128.100.13.0 | 255.255.255.0 | 128.100.13.1, 128.100.13.2 | 128.100.13.3 (R2) |
R2 additionally holds the link to the Internet, so it is the site's border router.
Find. (a) the forwarding table of each router, giving destination prefix, netmask, next hop and outgoing interface; (b) the hop-by-hop path taken by a datagram sent from 128.100.13.2 to 128.100.11.1, with the reasoning at each device; (c) an explanation of IPv4 address exhaustion and one remedy.
Approach. Read the two router boxes as two-interface devices, build each table by listing first the directly connected prefixes and then the remote ones reachable through the neighbouring router (plus one default route), and then trace the datagram by applying the longest-prefix-match rule at every device it meets.
so R1 genuinely straddles the top two LANs, and the same test puts 128.100.12.254 and 128.100.13.3 on the lower two.
| Destination | Netmask | Next hop (gateway) | Out interface |
|---|---|---|---|
| 128.100.11.0 | 255.255.255.0 | direct delivery | 128.100.11.3 |
| 128.100.12.0 | 255.255.255.0 | direct delivery | 128.100.12.3 |
| 128.100.13.0 | 255.255.255.0 | 128.100.12.254 | 128.100.12.3 |
| 0.0.0.0 (default) | 0.0.0.0 | 128.100.12.254 | 128.100.12.3 |
The default entry could equally be omitted and the 128.100.13.0 line kept, but with a default route present the explicit 128.100.13.0 line is what makes the internal traffic follow the same path deterministically rather than by accident.
| Destination | Netmask | Next hop (gateway) | Out interface |
|---|---|---|---|
| 128.100.12.0 | 255.255.255.0 | direct delivery | 128.100.12.254 |
| 128.100.13.0 | 255.255.255.0 | direct delivery | 128.100.13.3 |
| 128.100.11.0 | 255.255.255.0 | 128.100.12.3 | 128.100.12.254 |
| 0.0.0.0 (default) | 0.0.0.0 | Internet next hop | uplink |
Each table has exactly four entries because there are three internal prefixes plus one default, and in both tables the default is the least specific line, so longest-prefix match reaches it only when nothing else applies.
The two results differ, so the destination is not on the local LAN. The host therefore ARPs for its default gateway 128.100.13.3, and sends a frame whose destination MAC address is R2's but whose IP destination is still 128.100.11.1.
two router hops across three LANs. Note what changes and what does not: the IP source and destination addresses are constant end to end, the link-layer addresses are rewritten on every hop, and the TTL falls by one per router, so a datagram launched with TTL 64 arrives with TTL 62. The traffic never touches the Internet uplink, because the specific 128.100.11.0/24 entry outranks the default route.
fewer than the human population and far fewer than the number of connected devices. The usable figure is smaller still: the loopback block 127.0.0.0/8, multicast space 224.0.0.0/4 and the old class-E range are reserved; the original classful allocation handed a class-A holder 16.7 million addresses whether or not it needed them; and every subnet loses its network and broadcast addresses. IANA distributed its last free /8 blocks in February 2011 and the regional registries have been rationing ever since, which is the practical form the exhaustion takes: a new network cannot obtain a globally unique public block.
| Quantity | Result |
|---|---|
| Netmask on every LAN | 255.255.255.0 (/24), 254 usable host addresses per LAN |
| R1 table | 128.100.11.0 and 128.100.12.0 direct; 128.100.13.0 via 128.100.12.254; default via 128.100.12.254 |
| R2 table | 128.100.12.0 and 128.100.13.0 direct; 128.100.11.0 via 128.100.12.3; default via the Internet uplink |
| Path 128.100.13.2 → 128.100.11.1 | host → R2 (128.100.13.3 in, 128.100.12.254 out) → R1 (128.100.12.3 in, 128.100.11.3 out) → host; 2 router hops |
| TTL on arrival (launched at 64) | 62 |
| IPv4 address space | $2^{32} = 4\,294\,967\,296$ addresses |
| Remedy offered | IPv6 ($2^{128} \approx 3.4 \times 10^{38}$ addresses); NAT and CIDR as stop-gaps |