ACN-Assignment 02
ACN-Assignment 02
Assignment 02
Q#01
Reference=>Question#06 of Assignment#01
a)
NOTE:-
b)
Rc = 5 Mbps
Rs = 8 Mbps
R = 12 Mbps => Equally Shared Fairly Medium
How much THROUGHPUT & TIME it will take to transfer a
file size of 200Mbits from source(Rc) to destination(Rs)?
c)
Q#02
Q#03
a) What is a whois database?
b) Use various whois databases on the Internet to obtain the names of
two DNS servers. Indicate which whois databases you used.
c) Use nslookup on your local host to send DNS queries to three DNS
servers:
Local DNS server and the two DNS servers you found in part (b). Try
querying for Type A, NS, and MX reports. Summarize your findings.
d) Use nslookup to find a Web server that has multiple IP addresses.
Does the Web server of CASE have multiple IP addresses?
e) Use the ARIN whois database to determine the IP address range used
by CASE.
f) Describe how an attacker can use whois databases and the nslookup
tool to perform reconnaissance on an institution before launching an
attack.
g) Recall that a DNS server higher in the DNS hierarchy delegates a DNS
query to a DNS server lower in the hierarchy, by sending back to the
DNS client the name of that lower-level DNS server (fig 2.21 in book).
Initiate a sequence of queries for the IP address for CASEs Web server
by using nslookup. Show the list of the names of DNS servers in the
delegation chain in answering your query.
h) Repeat part g) for several popular Web sites, such as google.com,
yahoo.com, or amazon.com.
Q#04
Develop a simple Web server in Python that is capable of processing only one
request. Specifically, Web server will
I. create a connection socket when contacted by a client (browser)
II.
receive the HTTP request from this connection
III. parse the request to determine the specific file being requested
IV.
get the requested file from the servers file system
V.
create an HTTP response message consisting of the requested file
preceded by header lines
VI.
Send the response over the TCP connection to the requesting browser.
If a browser requests a file that is not present in your server, your
server should return a 404 Not Found error message.