0% found this document useful (0 votes)
17 views2 pages

Assignment 02 CCN F - 2024

ccn1

Uploaded by

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

Assignment 02 CCN F - 2024

ccn1

Uploaded by

anumiqbal024
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, 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 :
Total Marks: 100 Due Date: ___

1. Explain various Application layer protocols mentioning at least 5 characteristics for each. HTTP,
HTTPS, DHCP, DNS, SMTP, IMAP, POP, POP3, FTP

2. Describe common HTTP request methods. For each method include a real time example and then
justify how each method is working in each given example.

3. Explain difference between Stop and Wait (SAW) and Pipelining protocols at transport layer. With the
help of timing diagram explain how four packets will be send to a receiver using SAW protocol
considering the channel is unreliable and acknowledgement of third packet is lost.

4. Suppose a client wants to open www.cs.mit.edu 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; also explain which query will be more suitable Iterative or Recursive? Why?

5. Provide a detailed comparison between TCP, UCP and SCTP.

6. With respect to transport layer and TCP, discuss how sequence numbers and acknowledgement
numbers work. Explain it using example of timing diagram that elaborates three-way handshake
process for connection establishment, then communication and connection termination.

7. Discuss the TCP and UDP header fields in detail.

8. Referring to the code for UDP/TCP iterative client/server program is uploaded on portal, explain
functions in detail along with libraries:-

 Socket(), Bind(),Sendto(),Recvfrom(),Close().

 Explanation should address UDP and TCP functions separately.


9. How do reliable data transfer concepts apply to modern transport layer protocols like TCP, and
what mechanisms are used to ensure reliability in such protocols?
10. The text below shows the reply sent from the server in response to the HTTP GET message.
Answer the following questions, indicating where in the message below you find the answer.

HTTP/1.1 200 OK<cr><lf>Date: Tue, 07 Mar 2022 12:39:45GMT<cr><lf>Server: Apache/2.0.52


(Fedora)
<cr><lf>Last-Modified: Sat, 10 Dec2017 18:27:46 GMT<cr><lf>ETag: “526c3-f22-
a88a4c80”<cr><lf>Accept Ranges: bytes<cr><lf>Content-Length: 5874<cr><lf> Keep-Alive:
timeout=max=100<cr><lf>Connection: Keep-Alive<cr><lf>Content-Type: text/html; charset=
ISO-8859-1<cr><lf><cr><lf><!doctype html public “- //w3c//dtd html 4.0
transitional//en”><lf><html><lf> <head><lf><meta http-equiv=”Content-Type”
content=”text/html; charset=iso-8859-1”><lf><meta name=”GENERATOR”
content=”Mozilla/4.79 [en] (Windows NT
5.0; U) Netscape]”><lf><title>CMPSCI 453 / 591 / NTU-ST550A Spring 2005
homepage</title><lf></head><lf> <much more document text following here (not shown)>

a) Was server able to successfully find the document or not? What time was the document
reply provided?
b) When was the document last modified?
c) How many bytes are there in the document being returned?
d) What are the first 5 bytes of the document being returned?
e) Did the server agree to a persistent connection?
Assignment Guidelines:
Assignment is to be done individually.
Assignment should be handwritten.
The answers should be in your own words; there should be no copying from any source.
The neatness of the assignment will also carry marks.
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