0% found this document useful (0 votes)
228 views

ACN-Assignment 02

This document provides instructions for Assignment 02 for the Advance Computer Networks course. It specifies the distribution date as October 14, 2015 and due date as October 21, 2015. It emphasizes that plagiarism will not be tolerated and will result in a grade of zero. It provides formatting requirements for emailing the assignment, including the required file name format and email subject line. The assignment contains 4 questions - the first asks to apply a graph concept from the previous assignment to calculate file transfer time; the second asks to prepare a chart comparing minimum file distribution times for various peer-to-peer and client-server scenarios; the third covers topics like whois databases, DNS lookups, and reconnaissance techniques; the fourth asks to develop a simple Python

Uploaded by

Farrukh Tahir
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
228 views

ACN-Assignment 02

This document provides instructions for Assignment 02 for the Advance Computer Networks course. It specifies the distribution date as October 14, 2015 and due date as October 21, 2015. It emphasizes that plagiarism will not be tolerated and will result in a grade of zero. It provides formatting requirements for emailing the assignment, including the required file name format and email subject line. The assignment contains 4 questions - the first asks to apply a graph concept from the previous assignment to calculate file transfer time; the second asks to prepare a chart comparing minimum file distribution times for various peer-to-peer and client-server scenarios; the third covers topics like whois databases, DNS lookups, and reconnaissance techniques; the fourth asks to develop a simple Python

Uploaded by

Farrukh Tahir
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Advance Computer Networks

Assignment 02

Distribution Date: 14.10.2015


Due Date: 21.10.2015
(6:05 p.m. for Hardcopy Submission only in the class)
(5:30 p.m. For E-Mail Submission)
Note Carefully:
Plagiarism in assignment will be strictly checked and if any
question in any part of the assignment will be found to be
plagiarized, the whole assignment will be graded to zero
mark.
In case of plagiarism from other assignment (in answer to
any question), both assignments will be graded to zero.
NO soft corner regarding plagiarism, so avoid it.
No extension in due date will be granted to any student. So
dont forward this kind of request on the group.
E-mail submission
File name Must BE of the format "assignxx-your-nameRoll number"
The subject field of your email MUST BE assignxx-fullname-CASE-roll-no". For example, assign01-your-nameF-01-111.
Otherwise assignment will not be accepted
Send your e-mail to [email protected]

Q#01
Reference=>Question#06 of Assignment#01
a)

NOTE:-

YOU Guyz will use Above Graph Concept


INSTEAD OF
Formula Concept
which is given in Question#3 of Assignment# 01.

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

Consider distributing a file of F = 20 Gbits to N peers. The server has an


upload rate of us = 40 Mbps, and each peer has a download rate of d i = 3
Mbps and an upload rate of u. For N = 20, 200, and 2,000 and u = 400 Kbps,
800 Kbps, and 3 Mbps, prepare a chart giving the minimum distribution time
for each of the combinations of N and u for both client-server distribution and
P2P distribution.

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.

You might also like