0% found this document useful (0 votes)
7 views

CS322-Midterm-ModelAnswer-SP2024

The document is a midterm exam model answer for the Computer Networks course at October University for Modern Sciences & Arts, covering various topics in networking. It includes multiple-choice questions, short answer questions, and practical configuration tasks, assessing students' understanding of network protocols, addressing, and configurations. The exam is structured to evaluate learning outcomes and consists of four main questions with a total of 100 marks.

Uploaded by

wawex88450
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

CS322-Midterm-ModelAnswer-SP2024

The document is a midterm exam model answer for the Computer Networks course at October University for Modern Sciences & Arts, covering various topics in networking. It includes multiple-choice questions, short answer questions, and practical configuration tasks, assessing students' understanding of network protocols, addressing, and configurations. The exam is structured to evaluate learning outcomes and consists of four main questions with a total of 100 marks.

Uploaded by

wawex88450
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

October University for Modern Sciences & Arts

CS322 / CS216

Computer Networks

Midterm Exam – Model Answer


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 7
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.

Answer all the following questions:


Question 1: Choose the correct answer: (10*1= 10 Marks)
1. What will a Layer 2 switch do when the destination MAC address of a received frame is not in its
MAC address table?
a) It initiates an ARP request.
b) It broadcasts the frame out of all ports on the switch.
c) It notifies the sending host that the frame cannot be delivered.
d) It forwards the frame out of all ports except for the port at which the frame was received.
2. Which address is used by the OSI transport layer to identify a process on a host (PC or server)?
a. physical address.
b. logical address.
c. port address.
d. specific address.
3. Which transmission media provides the highest transmission speed in a network?
a. coaxial cable.
b. twisted pair cable.
c. optical fiber cable.
d. electrical cable.
4. You want to implement a mechanism that automates the IP configuration for network hosts,
including the IP address, subnet mask, default gateway, and DNS information. Which protocol
will you use to accomplish this?
a. Transmission Control Protocol (TCP).
b. Dynamic Host Configuration Protocol (DHCP).
c. Simple Network Management Protocol (SNMP).
d. Address Resolution Protocol (ARP).
5. What type of information is contained in an ARP table?
a. IP address to MAC address mappings.
b. switch ports associated with destination MAC addresses.
c. domain name to IP address mappings.
d. routes to reach destination networks.
6. What method can be used by two computers to ensure that packets are not dropped because too
much data is being sent too quickly?
a. Encapsulation.
b. Flow control.
c. Access method.
d. Response timeout.
7. The Protocol Data Unit (PDU) at the network layer of the OSI model is called:
a. Bits.
b. Frames.
c. Packets.
d. Segments.
Page 2 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.

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.

Question 2: give an answer to each of the following questions: (10*3=30 Marks)


1. Write the protocol name used to obtain a specific MAC address when an IPv4 address is known.
Address Resolution Protocol (ARP)
2. To build an efficient and reliable network architecture, the network infrastructure must manage IP
phone traffic, suggest a network protocol to handle audio traffic inside the LAN with minimum
latency, and ensure that priorities match the type of communication and its importance to the
organization. Quality of service (QoS)
3. A network that an organization might use to provide secure access to its network for individuals
who work for different organizations and need access to data on the network. Extranet
4. What is the tool that can be used to determine the number of hops to a destination and the round
trip time (RTT) for each hop? Traceroute.
5. One of the main characteristics of the network architecture is that it allows the network to expand
quickly and easily to support new users and applications without impacting the performance of
services for existing users. (Network Scalability)
6. On which OSI layer does the router network device operate? (OSI layer3:Network Layer)
7. What information is used to forward frames in a Layer 2 switch? (Destination MAC address)
8. A communication link between two switches combines the bandwidth of multiple
Ethernet ports into a single logical link. (Port channel)
9. The system that translates the domain names into IP addresses so browsers can load Internet
resources. Domain Name System (DNS)

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)

Question 3: (30 marks)


Using the below network topology diagram and the configuration information for the network devices,
answer the following questions.

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.

Vlan Mac Address Type Ports

1 00-00-0c-94-36-ab Dynamic Fa0/1

1 00-00-0c-94-36-aa Dynamic Fa0/11

1 00-00-0c-94-36-bb Dynamic Fa0/21

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.

B. For the following network diagram: (18 mark)

1. What type of the ports that (2*2=4 marks)


a. Connecting the two switches (Fa0/3). (Trunk Port)
b. Connecting PCs to the switches (Fa0/1 and Fa0/2). (Access Port)
2. Configure the name of switch 1 to (sw-1). (4 marks)
enable
conf t
hostname sw-1
copy running-config startup-config
Page 6 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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy