Ics343 S03 HW1 202018240
Ics343 S03 HW1 202018240
Ics343 S03 HW1 202018240
Homework 01
Due Date: September 15, 2024
Instructions
• Upload your homework solution on Blackboard as a PDF file named ICS343-S#-HW1-ID.
Replace ID with your KFUPM ID and replace S# with your section number. S# is your section
number (e.g., S01, S02, or F01, etc.).
• The submission site will automatically be closed after 11:59 PM on the due day. Late
submission will not be accepted.
• No submissions via email or Teams chat will be accepted.
• No group work is allowed.
• The homework solution must be your own work. Any plagiarism found will be strictly dealt
with.
[10 marks] Question 01: What is the difference between a recursive DNS resolver and an iterative
resolver?
Answer:
Recursive DNS resolver handles the entire process of resolving a domain and getting the IP address. In
contract, the clint in the iterative DNS resolver need to send a request to the and if does not exist in that server,
the server will send an IP address to the clint to check higher level until the clint find it.
[15 marks] Question 02: Construct an inverted tree representing the DNS database for the following
given domain names:
1. ics.kfupm.edu.sa
2. eecs.yorku.ca
3. cs.rutgers.edu
4. eecs.mit.edu
5. scholar.google.com
6. research.facebook.com
7. ucl.ac.uk
Page 1 of 8
Answer:
.
sa
edu
kfupm
ics
1.
ca
yorku
eecsics
2.
cs
rutgers
edu
3.
.
edu
mit
eecs
4.
.
com
google
scholar
5.
.
com
research
6.
Page 2 of 8
.
ul
ac
ucl
7.
Page 3 of 8
[20 marks] Question 03: Consider a scenario where the client is retrieving file A & file B from Site I
and file C from Site II. Suppose you want to additionally display the handshake messages exchanged
between the client and each server when the client maintains a non-persistent connection with both
servers. Draw the figure with request-response messages along with handshake messages between
the client and the servers.
Answer:
marks] Question 04: Match the appropriate layers from the left side to the information given on the
right side (in the following table). Write down the pairs as shown in the example.
Page 4 of 8
[5 marks] Question 05: Consider the figure below, where a client is sending an HTTP GET message to
a web server:
Page 5 of 8
1. What version of HTTP is the client running?
2. True or False: The client will accept HTML files
3. What is the host address?
4. True or False: The client will accept the German language content
5. True or False: The client already has a cached copy of the file
Answer:
1. HTTP/9.7
2. True
3. The host address is kfupm.edu.sa
4. False
5. True
[10 marks] Question 06: In the following scenario, the data frame (along with all address
information) is displayed for each hop where Node1 sends data to Node2. Node1 has the physical
address 10 & logical address A and Node2 has the physical address 95 & logical address P. Draw the
same network diagram and show the data frame with address information (in each hop) when
Node2 sends data to Node1.
Node1
Data Frame
Data Frame
Data Frame
Node2
Answer:
Page 6 of 8
Data Frame: T2 Data P A 33 99
Hop to Hop
T2 Data P A 20 10
Data Frame
T2 Data P A 33 99
Data Frame
T2 Data P A 95 66
Page 7 of 8
[15 marks] Question 07: Draw a hybrid topology with a star backbone and three ring networks of
three nodes each.
Answer:
Page 8 of 8