DHCP, DNS, SNMP: Debashis Saha MIS Group, IIM Calcutta Ds@iimcal - Ac.in
DHCP, DNS, SNMP: Debashis Saha MIS Group, IIM Calcutta Ds@iimcal - Ac.in
DHCP, DNS, SNMP: Debashis Saha MIS Group, IIM Calcutta Ds@iimcal - Ac.in
Debashis Saha
MIS Group, IIM Calcutta
[email protected]
Thursday, May 17, 2007 1
Lecture on DHCP, DNS & SNMP Debashis Saha
First Question
Addressing Solutions
DHCP
Purpose of DHCP
From RFC-2131 (the Internet standard):
• The Dynamic Host Configuration Protocol
(DHCP) provides a framework for passing
configuration information to hosts on a TCP/IP
network.
• DHCP consists of two components:
– a protocol for delivering host-specific configuration
parameters from a DHCP server to a host and
– a mechanism for allocation of network addresses to hosts.
DHCP: Basics
Design Goals
• Eliminate manual configuration of hosts
• Prevent use of any IP address by more than
one host
• Should not require a server on every subnet
• Allow for multiple DHCP servers
• Provide a mechanism, not a policy
• Provide the same configuration - including
IP address - to a host whenever possible
DHCP: DISCOVER
DHCP: OFFER
DHCP: REQUEST
• Sent by client to request a certain IP address
– Usually the one sent by an OFFER, but also used to renew
leases. Also can be sent to try to get same address after a
reboot
• This message is broadcast
• Most OSs by default will send a REQUEST for the
first OFFER they receive – this means that if
there is a rogue DHCP server on your subnet, most
clients will ignore the OFFERs from the campus
DHCP servers (since the OFFER from the rogue
server gets to the user’s PC first)!
DHCP: ACK/NACK
DHCP: RELEASE
Summary
• DHCP works today as a tool for automatic
configuration of TCP/IP hosts
• It is an open Internet standard and
interoperable client implementations are
widely available
• Provides automation for routine
configuration tasks, once network architect
has configured network and addressing plan
• Ongoing work will extend DHCP with
authentication, DHCP-DNS interaction and
inter-server communication
Thursday, May 17, 2007 21
Lecture on DHCP, DNS & SNMP Debashis Saha
DHCP: Conclusion
IETF standards
Protocol status
Implementation status
DHCP Resources
• Compilation of DHCP-related WWW links and
other information:
http://www.dhcp.org
• DHCP FAQ (maintained by John Wobus)
• [email protected] mailing list (admin
requests to [email protected])
• IETF information can be retrieved from:
http://www.ietf.cnri.reston.va.us
• I-Ds and RFCs can also be retrieved from:
http://www.rfc-editor.org
Second Question
Hostnames
• DNS is born
• Domain names comprise a hierarchy so that
names are unique, yet easy to remember.
• The domain name system is usually used to
translate a host name into an IP address .
– Ex: www.xxx.org <-> IP 212.87.7.181
• (which one would you rather remember?)
DNS: Basics
• Hierarchical namespace
• Request/response protocol
DNS Hierarchy
rpi albany ac
iimcal
Thursday, May 17, 2007 32
Lecture on DHCP, DNS & SNMP Debashis Saha
Domain Name
Hierarchical Naming
arpa
colordao
cs foobar.cs.colorado.edu
foobar
Thursday, May 17, 2007 35
Lecture on DHCP, DNS & SNMP Debashis Saha
hbs ee physics
www
Thursday, May 17, 2007 37
Lecture on DHCP, DNS & SNMP Debashis Saha
DNS: Architecture
• DNS servers are responsible for one or more
domains of any level
• “Root servers” are maintained throughout the
world (one is in Palo Alto) and are responsible for
all of the top-level domains
– When you register a domain, an entry for that domain is added
to the appropriate root server
• Owners of each regular domain or subdomain
maintain (or outsource) their own DNS servers
containing the correct information
Name Servers
• Partition hierarchy into zones
edu com gov mil org net uk fr
princeton … mit cisco … yahoo nasa … nsf arpa … navy acm … ieee
cs ee physics
ac
iimcal
www.iimcal.ac.in
www
Administration - Zones
Resolving an address
• A.C.D wants to know about F.E.D
D
C E
Name
servers
A B F G
Resolving an address
Domain servers
• What kind of records can be requested for a given
domain?
– Address translation
– Caching information
– Mail server information
– Authoritative nameserver information
• How is this data requested?
– Each record has a type and certain data associated with it –
clients request records of a certain type from a server
DNS Organization
• Distributed Database
– The organization that owns a domain name is responsible
for running a DNS server that can provide the mapping
between hostnames within the domain to IP addresses.
– So - some machine run by RPI is responsible for
everything within the rpi.edu domain.
rpi.edu
rpi.edu rpi.edu
rpi.edu
DNS DB
DNS DB DNS
DNSDBDB
Authoritative Replicas
DNS Clients
• A DNS client is called a resolver.
/etc/resolv.conf
domain rpi.edu
128.113.1.5
128.113.1.3
nslookup
DNS Servers
DNS Data
rpi albany
Thursday, May 17, 2007 53
Lecture on DHCP, DNS & SNMP Debashis Saha
Server Operation
HEADER
HEADER
QUERIES
QUERIES
Response
Response RESOURCE
RESOURCE RECORDS
RECORDS
Response
Response AUTHORITY
AUTHORITY RECORDS
RECORDS
Response
Response ADDITIONAL
ADDITIONAL INFORMATION
INFORMATION
• query identifier
16 bit fields
• flags
• # of questions
• # of RRs
•
•
# of authority RRs
# of additional RRs } Response
Message Flags
Recursion
Question Format
• Domain Name
• Response type
• Class (IP)
• Time to live (in seconds)
• Length of resource data
• Resource data
Lots more
References
• RFC 1034
• RFC 1035
Third Question
SNMP is …
• A network management tool
– Designed to allow data acquisition from SNMP capable
network equipment
– Allows control of SNMP capable equipment by the distant
controller
• Based on inquiry/response architecture
with simple response parameters
SNMP is …
• Used for management of fault conditions –
prevention of and response to network
failure
• Designed to manage performance – coping
with deterioration of performance due to
congestion, changing traffic conditions