Ics343 S03 HW1 202018240

Download as pdf or txt
Download as pdf or txt
You are on page 1of 8

King Fahd University of Petroleum & Minerals

College of Computing and Mathematics


Information and Computer Science Department
ICS 343: Fundamentals of Computer Networks
First Semester 2024-2025 (Term 241)

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

facebook

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.

Left Side Right Side


1. ICS343 A. Mechanical and Electrical Specification
2. Application Layer B. Fundamentals of Computer Networks
3. Transport Layer C. Hop-to-Hop Delivery
4. Network Layer D. Segmentation and Reassembly
5. Session Layer E. Secure Shell (SSH)
6. Physical Layer F. Logical Addressing
7. Presentation Layer G. Reduction of bits containing the data
8. Link Layer H. Full duplex or half duplex dialog

Answer: 1B, 2E, 3D, 4F, 5H, 6A, 7G, 8C

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:

Suppose the client-to-server HTTP GET message is the following:

GET /ICS/ICS343/assignment1.htm HTTP/9.7


Host: kfupm.edu.sa
Accept: text/plain, text/html, text/xml, image/gif, image/png, audio/mp4, audio/vnf.wave,
video/mp4, video/mpeg,
Accept-Language: en-us, fr, zh, da, fi
If-Modified-Since: Mon, 24 Jan 2022 20:58:38 -0800
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1

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:

Data Frame: T2 Data P A 95 66


Node2 to Hop

Page 6 of 8
Data Frame: T2 Data P A 33 99
Hop to Hop

Data Frame: T2 Data P A 20 10


Hop to Node1

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

You might also like