CS206 – Introduction to Network Design & Analysis: Midterm Important Subjective (32 Solved Q&As)
Computer Science • Read every solved subjective question with its model answer directly on this page. Free, no login required.
All 664 Midterm Packs · CS206 Course Page · CS206 MCQ Pack (144 MCQs)
-
(2 marks) What is a computer network? Name the components that make up a computer network.
Topic: LAN, WAN & Network Basics
A computer network is a combination of hardware, software and cabling that connects computing devices so they can communicate and share resources and data. Devices in a network send bits in groups, generally called packets. The three essential components are: (1) hardware — computers, NICs, hubs, switches, routers and other devices; (2) software — operating systems, protocols and network applications; and (3) cabling/media — the physical (or wireless) links that carry the signals.
-
(3 marks) Differentiate between a LAN and a WAN. Also state which bodies develop the standards for each.
Topic: LAN, WAN & Network Basics
A LAN (Local Area Network) covers a small geographical area such as an office, building or campus; it is usually owned and managed by a single organization, offers high data rates, and basically follows the rules/standards developed by the IEEE — Ethernet (IEEE 802.3) is the world's most popular LAN standard. A WAN (Wide Area Network) spans large geographical areas (cities, countries), is typically built from leased carrier lines and interconnects multiple LANs; it generally runs at lower speeds and follows the rules/standards developed by the ITU. In short: LAN = small area, single owner, IEEE standards; WAN = large area, carrier-based, ITU standards.
-
(3 marks) Differentiate between a hub, a switch and a router.
Topic: LAN, WAN & Network Basics
A hub is a simple LAN device that receives an electrical signal on one port and repeats (broadcasts) it out on all the other ports; every attached device sees all the traffic and shares one collision domain. A switch is a smarter LAN device that learns the MAC addresses attached to its ports and forwards a frame only to the port of the intended destination, so each port is its own collision domain. A router is basically a WAN device that works with logical (IP) addresses; it connects different networks together and selects the best path for packets between them.
-
(3 marks) What is Ethernet? Explain how the CSMA/CD algorithm works in Ethernet networks.
Topic: LAN, WAN & Network Basics
Ethernet is the world's most popular LAN standard (IEEE 802.3 family). Classic Ethernet uses the CSMA/CD (Carrier Sense Multiple Access with Collision Detection) algorithm: before transmitting, a station listens to the medium (carrier sense); if it is idle, the station transmits; if two stations transmit at the same time, a collision occurs, both stations detect it, stop transmitting, send a jam signal, wait a random back-off time and then try again. This 'listen before talking, and back off if a collision happens' behaviour lets many stations share one medium in an orderly way.
-
(2 marks) What is an ISP? Describe the role of an Internet Service Provider.
Topic: LAN, WAN & Network Basics
An ISP (Internet Service Provider) is a company that provides web/Internet access to both businesses and consumers. ISPs provide the connection among enterprises, individual home users and other ISPs: a customer's LAN or computer connects to the ISP, and the ISP in turn connects it to the global Internet, also offering related services such as IP addresses, e-mail and web hosting.
-
(3 marks) Explain the AAA model of network security. What does each 'A' stand for?
Topic: AAA Model, Authentication & Network Security
AAA stands for Authentication, Authorization and Accounting; the AAA model specifically refers to these three areas of security in computer networks. Authentication is the process of verifying the identity of a user, typically by exchanging usernames and passwords. Authorization is the process of deciding what resources a particular user can access — i.e. figuring out what a particular user is allowed to do. Accounting is the process of recording and reporting the events that occur as part of the authentication and authorization processes (who logged in, when, and what they did).
-
(3 marks) Differentiate between authentication and authorization in the AAA model.
Topic: AAA Model, Authentication & Network Security
Authentication answers the question 'Who are you?' — it verifies the identity of a user, typically by exchanging a username and password, before any access is given. Authorization answers the question 'What are you allowed to do?' — once the user is authenticated, it decides which resources (files, services, commands) that particular user can access. Authentication therefore comes first and is about identity; authorization comes after and is about permissions. Accounting then records both processes.
-
(3 marks) What is an authentication server? Briefly describe RADIUS, TACACS+ and Kerberos.
Topic: AAA Model, Authentication & Network Security
The usernames and passwords of network users can be listed on a specific server called an authentication server, which centralizes the checking of login credentials. RADIUS is an authentication server/protocol widely used by ISPs and enterprises for dial-up, DSL and wireless access. TACACS+ is a popular proprietary (Cisco) protocol that provides AAA services for device administration. Kerberos is a computer-network authentication protocol that runs between application and authentication servers and uses tickets to let nodes prove their identity securely over an insecure network.
-
(3 marks) Differentiate between PAP and CHAP authentication protocols. Which one is more secure and why?
Topic: AAA Model, Authentication & Network Security
PAP (Password Authentication Protocol) sends the username and password in clear text over the link, so anyone capturing the traffic can read and reuse the password. CHAP (Challenge Handshake Authentication Protocol) does not send the password as clear text: the server sends a random challenge, the client replies with a hash computed from the challenge and the password, and the server verifies it; the challenge is repeated periodically during the connection. CHAP is therefore more secure than PAP because the actual password never crosses the link and each challenge is different, which also protects against replay attacks. Both PAP and CHAP are part of the Point-to-Point Protocol (PPP).
-
(2 marks) What is PPP? At which layer of the OSI model does it operate, and which authentication protocols can it use?
Topic: AAA Model, Authentication & Network Security
PPP (Point-to-Point Protocol) is a Data Link layer (Layer 2) protocol used to establish a direct connection between two network nodes, for example over dial-up and DSL links. It provides link configuration, error detection and network-layer protocol multiplexing, and it can authenticate the peer using PAP (Password Authentication Protocol) or the more secure CHAP (Challenge Handshake Authentication Protocol).
-
(3 marks) What is a VPN? Explain how a VPN protects data sent over a public network such as the Internet.
Topic: VPN & Encryption
VPN stands for Virtual Private Network. A VPN creates a private network over a public network (the Internet is a public network), but it does so logically, or virtually, rather than with dedicated physical lines. The sender encrypts the original packet and encapsulates it inside a new packet (tunnelling) before sending it across the Internet; intermediate devices only see the outer packet. This encryption protects the data through the public network, so even if the traffic is intercepted it cannot be read, giving the user the privacy of a private leased line at a fraction of the cost.
-
(2 marks) What is a VPN concentrator? What does it do with packets it receives?
Topic: VPN & Encryption
A VPN device inside the corporate network is called a VPN concentrator. It receives the (tunneled) packet from the remote user, extracts the encrypted original packet, decrypts the packet using the proper key, and then forwards the original packet to its destination inside the corporate network.
-
(2 marks) What is an encryption key? Why must it be kept secret?
Topic: VPN & Encryption
To decrypt encrypted data you need a secret password specifically called an encryption key. An encryption key is usually a secret string of text that only you are supposed to know. The security of encryption depends on the secrecy of the key, not on the secrecy of the algorithm: anyone who obtains the key can decrypt all the data protected with it, so it must be known only to the communicating parties.
-
(3 marks) What is a firewall? How does a firewall decide which traffic to allow and which to block?
Topic: Firewalls & Network Security
A firewall is a security device (hardware and/or software) placed between a trusted internal network and an untrusted external network such as the Internet. As a firewall watches the traffic entering the network, it knows the nature of the traffic that is allowed to flow through it, because the network engineer configures the firewall with a rule set (access control rules) that tells it what is legal and what is not. Traffic matching an 'allow' rule passes; everything else is blocked and usually logged. For example, Cisco's firewall product is called a PIX firewall.
-
(2 marks) What does DMZ stand for? What is the purpose of a DMZ in a network?
Topic: Firewalls & Network Security
DMZ stands for Demilitarized Zone. A DMZ is a separate, semi-protected network segment placed between the internal LAN and the Internet. Public-facing servers that outsiders must reach — such as web, e-mail and DNS servers — are placed in the DMZ, so that even if one of them is compromised, the attacker still cannot reach the internal LAN, which remains protected behind another firewall.
-
(3 marks) What does IDS stand for? Differentiate between an IDS and a firewall.
Topic: Firewalls & Network Security
IDS stands for Intrusion Detection System. A firewall actively controls traffic: it allows or blocks packets according to its configured rules, acting as a gatekeeper at the network boundary. An IDS, on the other hand, passively monitors and analyzes traffic (and logs) to detect suspicious patterns and signs of an attack or intrusion, and then alerts the network personnel — it detects and reports rather than blocks. In practice the two complement each other: the firewall filters traffic, while the IDS watches for attacks that get through.
-
(5 marks) Explain how DSL provides high-speed Internet access over an ordinary telephone line. What is the role of the DSLAM?
Topic: DSL, Cable & Internet Access Technologies
DSL (Digital Subscriber Line) is a technology for sending and receiving data to and from an ISP using the same old phone line, but running at much faster speeds than dial-up. It works by frequency separation: the telephone generates analog voice signals in the range of 0 to 4000 Hz, while the digital DSL signal uses frequencies higher than 4000 Hz, so voice and data share the line simultaneously. At the telephone company's Central Office (CO), the local loop wiring connects to a device called a DSLAM (Digital Subscriber Line Access Multiplexer). The DSLAM splits out the digital signal and the analog (voice) signal from the local loop: voice is passed to the telephone voice network, while the data from many subscribers is multiplexed onto the ISP's high-speed network.
-
(2 marks) What is a modem? What do modulation and demodulation mean?
Topic: DSL, Cable & Internet Access Technologies
A modem is the device that performs modulation/demodulation. Modulation converts the computer's digital data into analog signals suitable for transmission over media such as telephone lines; demodulation performs the reverse conversion at the receiving end, turning the analog signal back into digital data the computer can use.
-
(3 marks) Explain cable Internet access. What is HFC, and which multiplexing technique is used in cable networks?
Topic: DSL, Cable & Internet Access Technologies
Cable Internet is a form of high-speed connection that uses the cable television infrastructure to provide access to end users; a residence typically obtains cable Internet access from the same company that provides its cable television. The modern cable plant is HFC (Hybrid Fiber Coax): fiber optics connects the cable head end to neighborhood-level junctions, from which traditional coaxial cable is then used to reach individual houses. In a cable network, frequency division multiplexing (FDM) is used, in which different channels are transmitted in different frequency bands over the same cable.
-
(2 marks) What is subnetting? State its two main benefits.
Topic: IP Addressing & Subnetting
Subnetting is the process of dividing one large IP network into several smaller sub-networks (subnets) by borrowing bits from the host portion of the address. Its main benefits are better utilization of IP addresses (addresses are allocated in right-sized blocks instead of being wasted) and better security and manageability for IP networks, because each subnet can be administered and protected separately and broadcast traffic is contained within a subnet.
-
(5 marks) A company has the network 192.168.1.0/24 and needs at least 6 subnets. Perform the subnetting: find the new subnet mask, the number of subnets created, the number of usable hosts per subnet, and the network address, usable range and broadcast address of the first two subnets. Show your working.
Topic: IP Addressing & Subnetting
Step 1 — borrowed bits: we need at least 6 subnets. 2^2 = 4 < 6, but 2^3 = 8 ≥ 6, so borrow 3 bits from the host part. Step 2 — new mask: /24 + 3 = /27, i.e. 255.255.255.224. Number of subnets = 2^3 = 8. Step 3 — hosts per subnet: host bits left = 32 − 27 = 5, so each subnet has 2^5 = 32 addresses, of which 2^5 − 2 = 30 are usable host addresses (network and broadcast addresses excluded). Block size = 32. Step 4 — first subnet: network 192.168.1.0/27, usable range 192.168.1.1 – 192.168.1.30, broadcast 192.168.1.31. Second subnet: network 192.168.1.32/27, usable range 192.168.1.33 – 192.168.1.62, broadcast 192.168.1.63. (The remaining subnets continue in steps of 32: .64, .96, .128, .160, .192, .224.)
-
(3 marks) An office needs subnets that can each support at least 50 host computers, starting from the network 192.168.10.0/24. How many host bits must be kept, what subnet mask results, and how many subnets and usable hosts per subnet are obtained? Show your working.
Topic: IP Addressing & Subnetting
Step 1 — host bits: we need 2^h − 2 ≥ 50 usable hosts. 2^5 − 2 = 30 < 50, but 2^6 − 2 = 62 ≥ 50, so keep 6 host bits. Step 2 — subnet bits: the /24 network has 8 host bits in total; keeping 6 for hosts leaves 8 − 6 = 2 bits for subnetting, giving 2^2 = 4 subnets. Step 3 — mask and result: new prefix = 24 + 2 = /26, i.e. subnet mask 255.255.255.192. Result: 4 subnets, each with 62 usable host addresses — enough for the required 50 hosts per subnet.
-
(3 marks) Describe the steps of the TCP three-way handshake used to establish a connection.
Topic: TCP & Network Troubleshooting
A TCP connection is established with a three-way handshake. Step 1: the client sends a SYN segment to the server to request a connection and synchronize sequence numbers. Step 2: the server replies with a SYN/ACK segment, acknowledging the client's SYN and sending its own SYN. Step 3: the client sends an ACK segment acknowledging the server's SYN. The connection is now established and data transfer can begin. (Note that a handshake contains SYN and ACK steps only — there is no 'RET' step.)
-
(3 marks) Explain TCP flow control through the advertised window. What happens when the advertised receive buffer value drops to zero?
Topic: TCP & Network Troubleshooting
Every TCP packet sent by a host contains that host's available receive buffer space in the Window Size field of the TCP header — this is the 'advertised window', and it tells the sender how much data the receiver can currently accept. As the receiving application consumes data, the buffer frees up and a larger window is advertised. When the advertised TCP receive buffer value drops to zero (a 'zero window'), the receiver cannot accept more data, so data transfer stops until the receiver sends a Window Update advertising free buffer space again. An unusually high TCP delay before a Window Update and resumption of data flow is a possible symptom of a full TCP receive buffer at the receiver.
-
(2 marks) What is TCP Window Scaling? Why was it introduced?
Topic: TCP & Network Troubleshooting
Window Scaling is the TCP option used to increase the advertised TCP receive buffer size past the 65,535-byte limit caused by the 2-byte Window Size field in the TCP header. When Window Scaling is in use, the value in the Window Size field is multiplied by a scaling factor (shift count) negotiated during the connection setup, allowing windows of up to about 1 GB — necessary for efficient data transfer on high-bandwidth, high-delay paths.
-
(3 marks) In a packet capture, a client's SYN is immediately followed by a Reset (RST)/ACK from the server. What problem does this indicate? Also state what large delays between the outbound SYN and the inbound SYN/ACK indicate.
Topic: TCP & Network Troubleshooting
A client's SYN followed by a Reset (RST)/ACK is a possible symptom of a TCP connection refused by the server — the server is reachable but is not accepting connections on that port (for example, the requested service is not running, or access is blocked). Large delays between the outbound SYN and the inbound SYN/ACK of a TCP handshake are a possible symptom of a lousy (poor/congested) routing path between the client and the server.
-
(3 marks) What are routing loops? Also define asymmetric routing.
Topic: TCP & Network Troubleshooting
Routing loops occur when a packet is routed back onto a network over and over again: because of inconsistent routing tables, routers keep forwarding the packet in a circle instead of towards its destination, wasting bandwidth until the packet's TTL expires. Asymmetric routing is a situation in which traffic flowing from Host A to Host B flows along a different path than the traffic flowing from Host B back to Host A; it can confuse stateful firewalls and complicate troubleshooting because the two directions of one conversation are not seen at the same point.
-
(3 marks) What is Wireshark? List and briefly explain its main features.
Topic: Wireshark & Packet Analysis
Wireshark is a network packet analyzer: a tool that captures network traffic from wired or wireless networks and decodes the captured frames/packets so they can be examined in detail. Its main features include: live capture and offline analysis of traffic; deep inspection and decoding of hundreds of protocols; a packet list, packet details and packet bytes view for drilling into each packet; powerful display filters to focus on selected traffic; capture profiles that let you customize Wireshark for different tasks; and saving captured traffic in trace files (for example .pcapng) for later analysis. Its command-line counterpart is called TShark.
-
(2 marks) Describe the columns shown by default in Wireshark's packet list pane.
Topic: Wireshark & Packet Analysis
The packet list pane displays all the packets in the current capture file, one row per packet. By default it contains the columns: No. (packet number), Time (timestamp), Source (the address where the packet is coming from), Destination (the address where the packet is going to), Protocol (the protocol name in a short, abbreviated version), Length, and Info (a summary of the packet's contents). Packets are timestamped at the moment they are captured, and the timestamp presentation format and precision can be chosen using the View menu.
-
(3 marks) What is a display filter in Wireshark? Give an example of filtering all traffic to and from a specific host, and explain how to remove the filter.
Topic: Wireshark & Packet Analysis
A display filter limits which of the already-captured packets are shown, so the analyst can focus on relevant traffic without changing the capture itself. For example, entering ip.addr==192.168.1.119 in the display filter bar and clicking Apply filters all traffic to and from 192.168.1.119; after applying the filter, Wireshark indicates how many packets match the filter. Similarly, filters can be based on the application/protocol in use, e.g. an HTTP filter to view HTTP client requests. To remove the filter and see all packets again, click the Clear (X) button next to the filter bar.
-
(3 marks) State any five good practices (tips) for capturing and analyzing packet flows with Wireshark.
Topic: Wireshark & Packet Analysis
(1) Capture close to the point of interest: prefer using a network tap or a dedicated capture device (or a switch SPAN/mirror port) so no packets are missed. (2) Focus on the complaining user's traffic: filter the capture to that user's address/conversation to avoid unrelated traffic and distractions. (3) Keep trace files manageable: if the size of trace files becomes larger than about 100 MB, Wireshark becomes too slow, so use capture filters, ring buffers or split files. (4) Verify trace file integrity and basic communications first — for example check that name/address resolution processes complete — before deep analysis. (5) To detect and prioritize delays, sort the packets and measure path latency using the delta times between related packets (e.g. request and response). Saving an interesting conversation to a separate trace file also helps keep the analysis clean.
-
(3 marks) A user complains that a client–server application is 'slow'. Describe how you would use Wireshark captures to identify whether the delay is caused by the network, the client or the server.
Topic: Wireshark & Packet Analysis
First capture the traffic as close as possible to the complaining user (and, if possible, also at the server) and apply a display filter to isolate that user's conversation with the server. Then examine the delta times: a large delay between the server's ACK of a client request and the actual response data is a symptom of a slow application server; a large delay in the application response time points the same way. Retransmissions, duplicate ACKs and fast retransmissions in the capture indicate packet loss on the network path, while long gaps before Window Updates with a zero advertised window show the client (receiver) is the bottleneck because its receive buffer is full. Comparing where the time is spent — between request and ACK (network), between ACK and response (server), or waiting for window updates (client) — identifies which component is responsible for the slowness.