Professional Documents
Culture Documents
Client Server Concepts, DNS, DHCP: Prof. I. Sengupta / Dr. S.K. Ghosh School of Information Technology
Client Server Concepts, DNS, DHCP: Prof. I. Sengupta / Dr. S.K. Ghosh School of Information Technology
DNS, DHCP
Prof. I. Sengupta / Dr. S.K. Ghosh
School of Information Technology
Indian Institute of Technology, Kharagpur
1
Client-Server Model
2
Client-server Model
CLIENT
SERVER CLIENT
CLIENT
4
Client-server Model (contd.)
• Typical scenario:
¾The server process starts on some
computer system.
Initializes itself, then goes to sleep
waiting for a client request.
¾A client process starts, either on the
same system or on some other system.
Sends a request to the server.
5
¾When the server process has finished
providing its service to the client, the
server goes back to sleep, waiting for
the next client request to arrive.
• The process repeats.
6
Client-server Model (contd.)
7
Iterative Servers
8
Concurrent Servers
9
Using TCP or UDP
11
What is a Socket?
12
Basic Idea
13
¾Socket: also called half-association
(a 3-tuple)
Protocol, local IP address, local port
number
Protocol, remote IP address, remote
port number
14
Domain Name System (DNS)
15
What is DNS?
16
Top Level Domains
18
Domain Names and Labels
19
Domains
20
Domain Name Structure
• Domain names are arranged in a
hierarchical tree-like structure.
iitkgp
cse
ece
ernet mech
iitb
in cse
math
nic
Eg: cse.iitkgp.ernet.in
21
Some Statistics
In thousands
22
• Today:
¾Com :: 56 million
¾Net :: 8 million
¾Org :: 5 million
¾Us :: 1 million
¾Biz :: 1.5 million
¾Total :: 70 million
23
Distribution of Name Space
24
Hierarchy of Name Servers
25
Zones and Domains
26
What is a Zone?
27
The Concept
29
DNS in the Internet
30
DNS in the Internet
31
Generic Domains
32
Country Domains
33
Inverse Domain
34
Name Resolution
35
Name Resolution Process
38
Hierarchy of Name Servers
root
au edu com in
39
Recursive Resolution
40
Iterative Name Resolution
41
Iterative Resolution
42
DNS Messages
43
DNS Messages
44
Query and Response Messages
45
Header Format
46
Flag Fields
QR: Query/Response
OpCode: 0 standard, 1 inverse, 2 server status
AA: Authoritative
TC: Truncated
RD: Recursion Desired
RA: Recursion Available
rCode: Status of the error
47
Types of Records
48
Question Record Format
49
Query Name Format
admin.atc.fhda.edu.
50
Resource Record Format
51
Example 1
52
Example 1: The Query Message
53
Example 1: The Response Message
54
Example 2
55
Example 2: Inverse Query Message
56
Example 2: Inverse Response Message
57
BOOTP and DHCP
58
BOOTP
59
Introduction
60
• BOOTP uses two well-defined port numbers.
¾ UDP port number 67 is used for the server.
¾ UDP port number 68 is used for the BOOTP client.
• The process:
¾ The BOOTP client broadcasts a single packet.
called a BOOTREQUEST packet containing the
client’s MAC address.
¾ The client waits for a response from the server. If
not received within a specified time interval, the
client retransmits the request.
¾ The server responds with a BOOTREPLY packet.
61
Points to Note
63
• Operation code (8 bits)
¾Value = 1 Î Boot request
¾Value = 2 Î Boot reply
• Hardware type (8 bits)
¾Value = 1 Î Ethernet
¾Value = 2 Î Experimental Ethernet
¾Value = 15 Î Frame relay
¾Value = 19 Î ATM
64
Option Format
65
BOOTP Operation
66
DHCP
67
What is DHCP?
68
• DHCP works across most IP routers,
and allocates addresses depending
on the subnet the request came from.
¾No need to reconfigure a PC that is
moved from one subnet to another.
69
How does DHCP work?
70
DHCP Packet Format
71
DHCP Transition Diagram
72
DHCP: Exchanging Messages
73
Exchanging Messages (contd.)
74