Faculty of Computers and Information
Cairo University
Midterm Exam
Program: Network/Software Engineering
Course Name: Computer Networks I Date: 24 Mar. 2019
Course Code: NIT222, IT222 Duration: 1 hours
Dr. Walid M. Ibrahim, Dr. Shaimaa Mousad Total Marks: 20
Student name: -------------------------------------------------------
ID: ---------------------------------------------------------------------
Question 1 [5 Points]:
a- State whether statement is True or False [Correct the false statement] (3 points).
i. The Transport layer is responsible for routing while Network layer is
responsible for end to end delivery. -------------
ii. Web cache (cookie’s) increases the total delay for the network. -------------
iii. HTTP is used to pull data to a server, but SMTP is used to push data
to a server -------------
iv. Once peer downloaded the entire file, it must remain in the torrent to
participate in file upload for other peers. This is called churn. -------------
v. Go-back-N is more efficient than Selective Repeat protocol. -------------
vi. The time to distribute file F to N clients using client-server approach
Dc-s > max{F/us,,F/dmin,,NF/(us + Sui)} -------------
b- For each of the following statements, select the correct answer (2 points):
I. The following protocol is used to send email:
a. SMTP. c. IMAP.
b. HTTP. d. None of the above.
II. In Go-Back-N, if 3 is the number of bits for the sequence numbers, then the maximum size
of the send window must be:
a. 3 c. 15
b. 7 d. None of the above
III. Congestion control is the responsibility of
a. Application layer c. Transport layer
b. Network layer d. Data link layer.
IV. …………….. is used for sending and receiving UDP packets in socket programming
c. Socket. c. ServerSocket.
d. ClientSocket. d. DatagramSocket.
1
Question 2 [10 Point]:
A- Draw the message exchange between the source and destination using Go-Back-N
for the following case: (5 points)
The window size is 3 and 2 bits are used for the sequence number. Sender A send
first a, b, c, d and e. packet c was lost during the transmission.
2
B- Find the end-end delay for a single packet between source and destination
assuming zero propagation delay. (2.5 points)
Packet length is 8 Mb and the data rate R = 2Mbps and R1 = 900 kbps.
C. In the below figure mention the following (2.5 points)
1. Physical Layer, 2. Datalink Layer, 3. Network Layer, 4. Transport layer, 5. Application Layer,
6. Port numbers, 7. IP address, 8. The HTTP header, 9. the message body, and 10. the URL path
3
Question 3 [5 Points]:
Compare Between the following:
A. Iterative and recursive DNS
B. Persistent and Non-Persistent HTTP
Good Luck
Dr. Walid M. Ibrahim