Skip to main content

IP for Computer Networkss

IP is the network-layer protocol that gives every host an address and moves packets from source to destination across many networks on a best-effort basis. The unit covers IPv4 and IPv6 addresses, subnet masks and CIDR, fragmentation, NAT, DHCP and ICMP, which together decide how hosts are identified and reached.

Stage: Network Layer · Part of the Computer Networks roadmap · Last reviewed 19 November 2026

What to learn in IP

IP interview questions

How many usable hosts are in a /26 IPv4 subnet?

A /26 leaves 6 host bits, giving 2^6 = 64 addresses. The first is the network address and the last is the broadcast address, so 62 are usable for hosts. This simple rule of 2^h minus 2 works for ordinary subnets.

What problem does IPv6 solve besides address exhaustion?

IPv6 offers a 128-bit address space, but it also simplifies the packet header, removes in-network fragmentation by routers, and builds in features such as stateless address autoconfiguration. It reduces the need for NAT, restoring simpler end-to-end addressing.

Where IP fits in the Computer Networks roadmap

IP belongs to the Network Layer stage (intermediate level). Moving packets.

Back to the full Computer Networks roadmap