CS322 Midterm Sp2024
CS322 Midterm Sp2024
CS322 / CS216
Computer Networks
Midterm Exam
Faculty Computer Science
Semester Spring 2024
Time Allowed 90 Min.
Total Mark 100
Mark Distribution Question 1: 10 marks (assessing LO No. 1, 2, 3 & 4)
Question 2: 30 marks (assessing LO No. 1, 2,3,4,8 & 9)
Question 3: 30 marks (assessing LO No. 1, 2, 3,7, 8 &9)
Question 4: 30 marks (assessing LO No. 3 & 4)
No. of Pages (including 6
cover page)
Material provided
Equipment permitted
Additional Instructions
No books, paper or electronic devices are permitted to be brought into the examination
room other than those specified above.
October University for Modern Sciences & Arts Module Code:CS322
Faculty of Computer Science Module Title: Computer Networks
Mid Term - Spring 2024 Time Allowed: 90 Min.
8. What is the purpose of the spanning tree protocol (STP) in switches on the network?
a. To avoid layer 2 loops.
b. To save network bandwidth.
c. To create trunks.
d. To create VLANs.
9. The switch sends the frame out to the port that is associated with that destination MAC address in
the CAM table. This process is called.
a. Filtering.
b. Flooding.
c. Forwarding.
d. None of above.
10. How are IP addressing designs affected by VLAN implementations?
a) Each VLAN must have a different network number.
b) VLANs do not use a broadcast address.
c) VLANs do not support VLSM.
d) Each VLAN must have a different subnet mask.
1. Host B on the Students subnet transmits a packet to Host D on the Staff subnet. Which Layer 2
and Layer 3 addresses are contained in the network frames that are transmitted from Host B to
Host D?
(4marks)
2. How many broadcast and collision domains are shown in the graphic, assuming only the default
VLAN is configured on the switches? (4marks)
3. Which default gateway IP address should be configured on Host C? (2marks)
4. If Host A sends a message with the destination IP address 255.255.255.255, who will receive this
message? (2marks)
5. If the router MSA-Router is replaced by a layer 2 switch, can students subnet communicate with Staff
subnet and why? (2marks)
6. What are the contents of the MAC address table of switch A? (6 Marks)
7. Host F can communicate with hosts C and D (the staff subnet), but it can’t communicate with any host in
the other subnet (the student subnet). Why and how can you fix this issue? (4 marks)
8. Host A can communicate with all hosts in the two subnets, but he can’t browse any website using the
browser, how can you fix the problem? (2 marks)
9. What is the Windows command used to check connectivity between Host A and Host F? (2 marks)
10. What is the IP range that can be assigned to hosts in staff students. (2 marks)
Page 4 of 6
October University for Modern Sciences & Arts Module Code:CS322
Faculty of Computer Science Module Title: Computer Networks
Mid Term - Spring 2024 Time Allowed: 90 Min.
Question 4 (30marks)
A. For the following network diagram, calculate the best path for each switch to the root bridge,
indicating: (12 marks)
• The root bridge (4marks)
• The status of each port for all switches. (8 marks)
Page 5 of 6
October University for Modern Sciences & Arts Module Code:CS322
Faculty of Computer Science Module Title: Computer Networks
Mid Term - Spring 2024 Time Allowed: 90 Min.
Page 6 of 6