CS322-Midterm-ModelAnswer-SP2024
CS322-Midterm-ModelAnswer-SP2024
CS322 / CS216
Computer Networks
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.
Page 3 of 7
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.
10. Which OSI layer does IP rely on to determine whether packets have been lost and to request
retransmission. (OSI Layer4: Transport layer)
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)
• Layer 2 destination address = 00-00-0c-94-36-ab
Layer 2 source address = 00-00-0c-94-36-bb
Layer 3 destination address = 192.168.10.200
Layer 3 source address = 192.168.20.200
2. How many broadcast and collision domains are shown in the graphic, assuming only the default
VLAN is configured on the switches? Broadcast domain=2, collision Domain=7 (4marks)
3. Which default gateway IP address should be configured on Host C? 192.168.10.1/24 (2marks)
4. If Host A sends a message with the destination IP address 255.255.255.255, who will receive this
message? All hosts in Students subnet (2marks)
5. If the router MSA-Router is replaced by a layer 2 switch, can students subnet communicate with Staff
subnet and why? No, it needs layer 3 device to connect different LANs. (2marks)
6. What are the contents of the MAC address table of switch A? (6 marks)
Page 4 of 7
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.
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?
Wrong gateway, use 192.168.10.1/24 (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? Wrong DNS Configuration (2 marks)
9. What is the Windows command used to check connectivity between Host A and Host F?
ping 192.168.10.250 (2 marks)
10. What is the IP range that can be assigned to hosts in staff students?
(from 192.168.10.1 to 192.168.10.254) (2 marks)
Question 4 (30marks)
A. For the following network diagram, calculate the best path for each switch to the root bridge,
indicating: (12marks)
• The root bridge (4marks)
• The status of each port for all switches. (8 marks)
Page 5 of 7
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.
3. On Switch 2, write the commands to create the VLAN 10 and assign port Fa0/2 to it. (5
Marks).
enable
config t
vlan 10
interface fa0/2
switchport mode access
switchport access vlan 10
4. On switches 1 and 2, write the configuration of port Fa0/3 to transmit the data of VLAN1
and VLAN2 (5 Marks).
enable
config t
interface fa0/3
switchport mode trunk
copy running-config startup-config
Page 7 of 7