Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
1
Explain the role of DNS(Domain Naming System) on a computer network.
princeton … mit cisco … yahoo nasa … nsf arpa … navy acm …ieee
cs ee physics
Root
ux01 ux04 name server
Name …
chinstrap.cs.princeton.edu CS EE
name server name server
4
Name Servers
7
Root name server
• The root name server contains an NS record for
each second-level server.
• It also has an A record that translates this name
into corresponding IP address.
• The following shows part of .edu root name
server
(princeton.edu, cit.princeton.edu, NS, IN)
(cit.princeton.edu, 128.196.128.233, A, IN)
…
Zone name server
The zone name server princeton.edu has a name
server available on host cit.princeton.edu that
contains the following records.
• Some records contain A records, whereas others
point to next level name servers.
(cs.princeton.edu, gnat.cs.princeton.edu, NS, IN)
(gnat.cs.princeton.edu, 192.12.69.5, A, IN)
• Eventually, third-level name server, such as the
domain cs.princeton.edu, contains a record for
all of its hosts.
(cs.princeton.edu, gnat.cs.princeton.edu, MX, IN)
(cicada.cs.princeton.edu, 192.12.69.60, A, IN)
(cic.cs.princeton.edu, cicada.cs.princeton.edu,
CNAME, IN)
(gnat.cs.princeton.edu, 192.12.69.5, A, IN)
Name Resolution
ad 28
– recursive c i c
n . ed
u,
1
eto
1 p ir nc 4
cicada.cs.princeton.edu Local cicada.cs.princeton.edu Princeton
Client name name
192.12.69.60 server cs.princeton.edu, 192.12.69.5 server
8 5
cic
da a
cic .c s
a
19 d a .pr
2.1 .c inc
s
2.6 .pr eto
9.6 inc n.e 6
0 e to du
n.e
• Local server du
, CS
name
7 server
– need to know root at only
one place (not each host)
– site-wide cache 12
The drawback with this lookup is:
• All hosts should know the root name server,
which is not feasible.
• Instead, the client can send query to the local
name server that it knows
• The local name server can query the root name
server on behalf of the client.
• Once the local NS gets the required response, it
caches the A record based on TTL and sends the
record to the client.
Explain how SNMP is used to manage nodes on the network (SNMP)
1. Each agent has its own MIB2 (version 2), which is a collection of all the
objects that the manager can manage.
2. The objects in MIB2 are categorized under 10 different groups namely
system, interface, address translation, ip, icmp, tcp, udp, egp,
transmission, and snmp.
o sys (system defines general information about the node such as the name,
location, and lifetime.
o if (interface defines information about all the interfaces of the node such as
physical address and IP address, packets sent and received on each interface, etc.
o at (address translation defines information about the ARP table)
o ip defines information related to IP such as the routing table, statistics on
datagram forwarding, reassembling and drop, etc.
o tcp defines general information related to TCP, such as the connection table,
time-out value, number of ports, and number of packets sent and received.
o udp information on UDP traffic such as total number of UDP packets sent and
received.
MIB variables
• MIB variables are of two types namely simple and table.
• To access any of the simple variable content, use id of the group
(1.3.6.1.2.1.7) followed by the id of the variable and an instance suffix,
which is 0.
o For example, variable udpInDatagrams is accessed at 1.3.6.1.2.1.7.1.0
• In case of table, only leaf elements are accessible.
o In this case, the group id is followed by table id and so on up to the leaf
element.
o To access a specific instance (row) of the table, add the index to the above ids.
o The indexes are based on the value of one or more fields in the entries.
o Tables are ordered according to column-row rules, i.e one should go column by
column from top to bottom.
SNMPv3 PDU
• SNMP is request/reply protocol that defines PDUs GetRequest, GetNextRequest,
GetBulkRequest, SetRequest, Response and Trap.
o GetRequest used by manager to retrieve value of agent's variable(s)
o GetNextRequest used by manager to retrieve next entries in a agent's table
o SetRequest used by manager to set value of an agent's variable
o Response sent from an agent to manager in response to GetRequest/
GetNextRequest that contains value of variables
o Trap sent from an agent to the manager to report an event such as reboot.
2. The SNMP client puts the identifier for the MIB variable it wants to get into the
request message, and sends this message to the server.
3. The server then maps this identifier into a local variable, retrieves the current value
held in this variable, and uses BER to encode the value it sends back to the client.