Core Network Services: DHCP, DNS, NAT, and ICMP
Configuration and Name Resolution
DHCP
Dynamic Host Configuration Protocol automates assignment of IP address, prefix length, default gateway, DNS servers, and lease time. It reduces manual configuration errors.
Why DNS matters
Humans remember names better than numeric addresses, so DNS translates names like into IP addresses.
NAT
Network Address Translation rewrites packet headers so many private hosts can share public IP addresses. It is common at network borders and changes how end-to-end connectivity works.
Common Network Services
| Service | What it does |
|---|---|
| DHCP | Assigns IP configuration automatically |
| DNS | Maps names to IP addresses |
| NAT | Translates private and public addresses |
| ICMP | Carries error and diagnostic messages |
Which protocol is typically used to translate a domain name into an IP address?
DNS is the standard name-resolution protocol.
Correct answer: DNS
What problem does NAT help solve in IPv4 networks?
NAT conserves public IPv4 space, though it adds complexity for inbound connectivity.
Correct answer: Address scarcity by allowing multiple private hosts to share one or a few public addresses
Which protocol is often used for ping and traceroute-style diagnostics?
ICMP reports network errors and supports echo requests/replies used by ping.
Correct answer: ICMP
Typical DHCP exchange
-
1
Step 1: Client broadcasts a discovery message.
-
2
Step 2: Server offers configuration.
-
3
Step 3: Client requests the offered lease.
-
4
Step 4: Server acknowledges and the lease begins.
Why can NAT make some peer-to-peer or inbound applications harder?
NAT breaks the default assumption that every public host can directly reach every private host.
Correct answer: Because unsolicited inbound connections are blocked unless translation rules or port forwarding exist