CampusLearn
← BIT 301 Computer Networks and Security

IP Addressing, Routing and Network Services

Notes

Addresses and subnet boundaries Internet Protocol version 4 (IPv4) represents an address using 32 bits, commonly written as four decimal numbers. A prefix length indicates how many leading bits identify the network. Subnetting divides an address block into smaller networks to organise devices and limit broadcast domains. In an ordinary IPv4 subnet, the first address identifies the network and the last is the broadcast address. Private addresses support internal communication but are not globally routed. Network Address Translation (NAT) can map internal connections to a public address at an internet gateway. Routing and supporting services A router forwards packets between networks using a routing table. Longest prefix matching selects the most specific matching route, while a default route handles destinations without a more specific entry. A host sends remote traffic to its default gateway rather than directly resolving the remote device on its local link. Dynamic Host Configuration Protocol (DHCP) supplies settings such as an address, gateway and resolver. Domain Name System (DNS) translates names into records such as IP addresses. Troubleshooting should distinguish missing configuration, failed name resolution and failed packet forwarding. Practical example A Kisumu agribusiness cooperative receives the private block 192.168.10.0/24 and needs four equal subnets. Borrowing two host bits creates four /26 networks, each with 64 addresses and normally 62 usable host addresses. Their network addresses end in 0, 64, 128 and 192. For the second subnet, usable addresses run from 192.168.10.65 to 192.168.10.126; the broadcast address is 192.168.10.127. Assigning gateway 192.168.10.65 leaves 61 addresses for other devices. A workstation at 192.168.10.70 uses that gateway to contact an external supplier rather than broadcasting across the internet.

Quiz

1. A device reaches a website by IP address but not by its name. Which service is the most likely starting point for diagnosis?

2. A destination matches both a /24 route and a default route. Which route is normally selected?

3. How many normally usable host addresses does an IPv4 /26 subnet contain?

Sign in to submit and securely grade your quiz.