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

Assignment 02 CCN

Uploaded by

ans bhatti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
82 views

Assignment 02 CCN

Uploaded by

ans bhatti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

UNIVERSITY OF CENTRAL PUNJAB

(Faculty of IT)
Computer Communications and Networks (CCN)
Assignment No 2 Date : 21 Nov 2022
Total Marks: 100 Due Date : 29 Nov 2022

1. Draw the flow chart for a concurrent TCP server communicating with a client.

Make yourself familiar with all the Socket API calls that we used in client/server programming.
Describe the functionality of any three of these calls, along with their syntax, parameters used and
return values.

2. Consider that Host A intends to send certain data to Host B, and they have different byte orders, what problem
can be encountered when the data is transmitted, and what is the solution.

Why do we need to call bind() in server code and not in the client code.
What does accept() call return in server code, and why.

3. Consider the information regarding DNS records for a corporation, Lemon:

Name Type Value


mycomp.com.pk NS abc. mycomp.com.pk
www. mycomp.com.pk CNAME dba. mycomp.com.pk
xyz. mycomp.com.pk A 191.75.203.223
mycomp.com.pk MX mno.mycomp.com.pk
mno. mycomp.com.pk A 191.75.203.185
mycomp.com.pk NS xyz.mycomp.com.pk
dba. mycomp.com.pk A 191.75.203.182
abc. mycomp.com.pk A 191.75.203.222

a. Identify and write the IP addresses of the Authoritative DNS servers for the domain mycomp.com.pk.

b. If you send email to [email protected], to which mail server IP address will the message get
delivered.

c. Explain briefly the purpose of using CNAME record.

4. Explain briefly how we can differentiate between the Request and Response messages of HTTP
protocol.

“if modified since” is part of the HTTP Request header and “last modified” is part of the HTTP
Response header. Explain briefly how these header values are used to check if an object is up to date
on the proxy servers.

5. An HTTP client requests 7 objects from an HTTP server. Assume RTT is 3 msec, i.e. RTT for
connection establishment, or for getting one object. Also, transmission time for an object is 15 msec.
Compute the delays involved when non-persistent HTTP is used.
6. An HTTP client requests a web page from an HTTP server. The web page (base html page) references
10 objects; 04 located on the same server, and 03 each at two other servers. If average RTT is 2 msec,
i.e. RTT for connection establishment, or for getting one object, and average transmission time for
each object is 6 msec, compute the delay involved to download the complete web page and all the
objects, when using persistent HTTP.

7. Suppose you open a startup company “theBest” and want to set up your company network. Your
network has the following servers:-
i. Primary and Secondary Authoritative DNS Servers dns1.theBest.com and dns2.theBest.com
having IP Addresses “111.19.128.35” and “111.19.128.36” respectively.
ii. Web Server www.theBest.com having IP Address of 111.19.128.45.
iii. Email Server mail.technocrat.com having IP Address of 111.19.128.65.
iv. Your company’s email is [email protected]

a) What Resource Records (RRs) do you need to provide to DNS Registrar (Network Solutions)?
b) What RRs do you need to put in your company’s Authoritative DNS Serves?

8. Suppose a client wants to open


www.example.com on his web
browser for the first time. For given
figure, draw the path showing the
sequence of DNS Queries & Replies,
for both Recursive & Iterative
queries.

Assignment Guidelines:
Assignment is to be done individually.
Assignment should be handwritten on A4 page (no torn register pages) and should be submitted in office/class within
due date.
Answers should be in your own words; there should be no copying from any source.
Assignments will NOT be accepted after the due date.
Marking Criteria: 30% marks will be awarded for complete submission of assignment; 70% evaluation will be based
on Assignment Test, to be conducted in class.

You might also like