Assignment 02 CCN F - 2024
Assignment 02 CCN F - 2024
(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?
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.
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().
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.