9 Network Services And Management

Network and Data Communications · Unit 9

Network Services and Management

Exam-focused notes for Network Services and Management (Network and Data Communications, BIT254): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.

Network Services and Management in short

People use names, not numbers, and most home devices share one public address. This chapter covers DNS, DHCP, NAT and the POP mail protocol, which make everyday networks work.

Network Services and Management: notes

DNS domain name resolution

DNS (Domain Name System) turns a name such as www.example.com into an IP address. It is a distributed database, so no single server holds everything. It uses UDP (and TCP for large answers) on port 53.

Names are arranged in a tree.

  • Root: the top, written as a dot.
  • Top-level domain (TLD): .com, .org, .np, .edu.
  • Second-level domain: example in example.com.
  • Host: www.

The fully qualified domain name (FQDN) reads from the host up to the root: www.example.com.

Servers: root servers, TLD servers and authoritative servers (which hold the real records for a zone). A user's computer asks a local (resolver) DNS server, often run by the ISP. Common records: A (name to IPv4), AAAA (IPv6), MX (mail server), CNAME (alias), NS (name server).

DNS recursive resolution

In recursive resolution, the server asked takes full responsibility for finding the answer. The client asks once and gets the final answer or an error.

Example: a host asks its local server for www.example.com.

  • The local server does not know it, so it queries other servers on the host's behalf.
  • When it has the IP address, it returns it to the host.

The host sends one query and waits. This is simple for the client, but the server does more work.

DNS iterative resolution

In iterative resolution, the server asked gives the best answer it has. If it does not know the final answer, it returns a referral: the address of another server that is closer.

  • The local server asks a root server for www.example.com.
  • The root server replies with the address of the .com TLD server.
  • The local server asks the TLD server. It replies with the authoritative server for example.com.
  • The local server asks the authoritative server and gets the IP address.

In practice, both are mixed. The host-to-local-server query is recursive, and the local-server-to-others queries are iterative.

RecursiveIterative
Server finds the full answerServer returns a referral
Load on the asked serverLoad on the asking server
Fewer messages for the clientClient follows referrals

What this unit covers

  • DNS domain name resolution
  • DNS recursive resolution
  • DNS iterative resolution
  • DNS caching
  • DHCP protocol
  • DNS vs DHCP differences
  • NAT definition and types
  • Network Address Translation
  • POP protocol

DNS domain name resolution

2082 · 5 marks

What is DHCP? Explain DNS name resolution process with suitable example. [1+4]

Show solved answer

DHCP and DNS Name Resolution


What is DHCP? [1 Mark]

DHCP (Dynamic Host Configuration Protocol) is a network management protocol used to automatically assign IP addresses and other network configuration parameters (such as subnet mask, default gateway, and DNS server address) to devices on a network, so they can communicate on an IP network without manual configuration.


DNS Name Resolution Process [4 Marks]

DNS (Domain Name System) is a hierarchical, distributed naming system that translates human-readable domain names (e.g., www.example.com) into machine-readable IP addresses (e.g., 93.184.216.34).


Components Involved

ComponentRole
DNS ResolverClient-side component that initiates the query
Root Name ServerTop of the DNS hierarchy; knows TLD servers
TLD Name ServerHandles top-level domains (.com, .org, .np, etc.)
Authoritative Name ServerHolds the actual DNS records for the domain
Local DNS ServerFirst server contacted; may have cached results

Step-by-Step Name Resolution Process

Example: A user types www.example.com in a browser.

User's PC --> Local DNS --> Root Server --> TLD Server --> Authoritative Server

Step 1: Browser Cache Check

  • The browser first checks its local cache to see if the IP for www.example.com is already stored.
  • If not found, the query is passed to the OS resolver.

Step 2: Query to Local DNS Server (Recursive Resolver)

  • The client sends a recursive query to the Local DNS Server (configured via DHCP or manually).
  • The local DNS server checks its own cache.
  • If not cached, it begins the resolution process on behalf of the client.

Step 3: Query to Root Name Server

  • The local DNS server sends a query to one of the 13 Root Name Servers.
  • The root server does not know the IP of www.example.com, but it knows the address of the .com TLD Name Server.
  • Root server replies: "Ask the .com TLD server at IP X.X.X.X"

Step 4: Query to TLD Name Server

  • The local DNS server queries the .com TLD Name Server.
  • The TLD server does not know the exact IP, but knows the Authoritative Name Server for example.com.
  • TLD server replies: "Ask the authoritative server for example.com at IP Y.Y.Y.Y"

Step 5: Query to Authoritative Name Server

  • The local DNS server queries the Authoritative Name Server for example.com.
  • This server has the actual A record (Address record) for www.example.com.
  • It replies: "www.example.com has IP address 93.184.216.34"

Step 6: Response to Client

  • The local DNS server caches the result (for future queries) and sends the IP address back to the client.
  • The browser can now connect to 93.184.216.34 to load the website.

Diagram

Client
  |
  | (1) Query: www.example.com?
  v
Local DNS Server
  |
  | (2) Query to Root Server
  v
Root Name Server --> "Try .com TLD Server"
  |
  | (3) Query to TLD Server
  v
.com TLD Server --> "Try example.com Authoritative Server"
  |
  | (4) Query to Authoritative Server
  v
Authoritative Server --> "IP = 93.184.216.34"
  |
  | (5) Final Answer returned to Client
  v
Client connects to 93.184.216.34

Types of DNS Queries

Query TypeDescription
Recursive QueryClient asks resolver to get the full answer
Iterative QueryServer returns the best answer it knows (referral)

Note: The query from client to local DNS is typically recursive; queries from local DNS to other servers are typically iterative.


Summary

The DNS name resolution process converts www.example.com into an IP address through a hierarchical chain: Local DNS Server → Root Server → TLD Server → Authoritative Server, ultimately returning the IP address to the requesting client.

Open this answer on its own page →

2081 · 5 marks

What is the major purpose of DNS? Explain how DNS resolve its domain name. [5]

Show solved answer

Domain Name System (DNS)

Major Purpose of DNS

The major purpose of DNS (Domain Name System) is to translate human-readable domain names into machine-readable IP addresses (and vice versa).

Since computers communicate using numerical IP addresses (e.g., 192.168.1.1), but humans find it easier to remember names (e.g., www.google.com), DNS acts as a distributed hierarchical naming system that maps domain names to their corresponding IP addresses automatically, without requiring users to memorize numeric addresses.


How DNS Resolves a Domain Name

DNS resolution follows a step-by-step hierarchical query process:

DNS Resolution Steps

Example: Resolving www.example.com

Step 1: Browser Cache Check

  • The user types www.example.com in the browser.
  • The browser first checks its local cache to see if the IP address is already stored from a previous visit.

Step 2: OS / Local Hosts File Check

  • If not found in browser cache, the OS checks the local hosts file and its own DNS cache.

Step 3: Query to Recursive Resolver (Local DNS Server)

  • If still unresolved, the query is sent to the Recursive Resolver (usually provided by the ISP or configured manually, e.g., 8.8.8.8).
  • The recursive resolver takes responsibility for finding the answer.

Step 4: Query to Root Name Server

  • The recursive resolver contacts a Root Name Server (there are 13 sets globally).
  • The root server does not know the IP of www.example.com, but it refers the resolver to the TLD (Top-Level Domain) Name Server for .com.

Step 5: Query to TLD Name Server

  • The resolver queries the TLD Name Server for .com.
  • The TLD server responds with the address of the Authoritative Name Server for example.com.

Step 6: Query to Authoritative Name Server

  • The resolver queries the Authoritative Name Server for example.com.
  • This server holds the actual DNS records and returns the IP address (e.g., 93.184.216.34) for www.example.com.

Step 7: Response Returned to Client

  • The recursive resolver caches the result (for the TTL duration) and sends the IP address back to the client.
  • The browser then uses the IP address to establish a connection with the web server.

Diagram of DNS Resolution

Client
  |
  v
Recursive Resolver (ISP/Local DNS)
  |
  v
Root Name Server  --> "Go to .com TLD server"
  |
  v
TLD Name Server (.com)  --> "Go to example.com Authoritative server"
  |
  v
Authoritative Name Server (example.com)  --> Returns IP address
  |
  v
Recursive Resolver --> Client (IP delivered)

Summary Table

StepComponentRole
1Browser/OS CacheCheck locally stored records
2Recursive ResolverManages the full query on behalf of client
3Root Name ServerDirects to correct TLD server
4TLD Name ServerDirects to authoritative server
5Authoritative Name ServerReturns the final IP address

Note: DNS primarily uses UDP port 53 for queries and TCP port 53 for zone transfers.

Open this answer on its own page →

DNS vs DHCP differences

2080 · 5 marks

What is the difference between DNS and DHCP? Explain with example [5]

--- DNS is a naming system that translates human-readable domain names into IP addresses so that computers can locate each other on a network. - It works like a phone book of the internet. - It operates on Port 53 using UDP/TCP. - It is a hierarchical, distributed database system. Example: When y...

Open this answer on its own page →

DNS recursive resolution

2080 · 5 marks

Explain recursive resolution. What are its advantages? [5]

Recursive resolution is a name resolution strategy used in the Domain Name System (DNS) where a DNS resolver takes full responsibility for resolving a query on behalf of the client. Instead of referring the client to another server, the resolver queries other DNS servers iteratively and returns t...

Open this answer on its own page →

0 · 5 marks

Briefly explain recursive resolution, iterative resolution and caching [5]

Note: No specific curriculum notes were found for this topic. The following answer is based on standard DNS and name resolution concepts as taught in networking courses. --- In recursive resolution, the client places the full burden of resolving a name on the DNS server it contacts (usually the l...

Open this answer on its own page →

NAT definition and types

2079 · 5 marks

Why do we use NAT? Explain its different types [5]

NAT (Network Address Translation) is a technique used in networking for the following reasons: 1. IPv4 Address Conservation: The primary reason is to conserve the limited pool of public IPv4 addresses. Multiple devices on a private network can share a single public IP address. 2. Security: NAT hi...

Open this answer on its own page →