📝 Network Switching and TCP/IP Layers (16 MCQs)
Switching Functions Across the TCP/IP Architecture
Switching and forwarding occur at different levels of network architecture, depending on the device and the information examined. In the TCP/IP model, a typical Ethernet switch works at the link layer and forwards frames using MAC addresses. An IP router operates at the internet layer and forwards packets using IP addresses and routing information. Their roles follow distinct addressing and forwarding rules.
Link-Layer Frames and Internet-Layer Packets
An IP packet is carried inside a link-layer frame for transmission over a particular network link. The frame contains link-layer addressing information, while the IP header contains source and destination IP addresses. A switch normally uses the frame's destination MAC address; a router removes the incoming link framing and constructs framing for the next link.
Forwarding Through a Switch and Then a Router
A host first sends a frame to its next-hop MAC address. A LAN switch examines the destination MAC address and forwards the frame through a suitable port. If the destination belongs to another IP network, the frame reaches a router. The router examines the IP destination, selects a route, and sends the packet in a new link-layer frame.
Tracing a Packet to a Different IP Network
A computer with address 192.168.1.10 sends data to 192.168.2.20 through its default gateway. It places the IP packet in an Ethernet frame addressed to the gateway's MAC address. The switch forwards that frame locally; the router then forwards the IP packet toward 192.168.2.0/24 using its routing table.
How Transport Services Relate to Switching
TCP and UDP operate above IP and identify application endpoints with port numbers. Ordinary Layer 2 switches do not need TCP or UDP ports to forward Ethernet frames, and ordinary routers use IP destinations rather than application ports for basic routing. Specialized multilayer devices can inspect transport information, but that is not the basic switching function.
Avoiding Confusion Between MAC, IP and Port Addresses
'A switch forwards using the destination IP address' is incorrect for a conventional Ethernet switch, which uses MAC addresses. 'A router forwards using TCP port numbers' is incorrect for ordinary IP routing. 'A frame and packet are the same unit' is incorrect because a link-layer frame encapsulates an IP packet on a link.
Layer-Based Questions to Trace and Compare
Identify the protocol data unit at each layer: transport segments or datagrams, internet-layer IP packets, and link-layer frames. Trace which address is examined by an Ethernet switch and which by a router. When a packet crosses a router, explain why the link-layer frame changes while the end-to-end IP source and destination generally remain the same.
TCP/IP Layer and Addressing Terminology
- MAC address - Identifies a local interface.
- IP address - Identifies a network host.
- Frame - Carries a network packet.
- Packet - Routed between networks.
- Port number - Identifies an application endpoint.
- Default gateway - Reaches external IP networks.
📝 All Network Switching and TCP/IP Layers MCQs
Q1. When end system A requests a connection to end system M, which step must occur before any user data can be transmitted?
📖 Explanation: A connection in a circuit‑switched network cannot carry user data until the network has reserved a specific channel on every link that will be used. This reservation guarantees a continuous, exclusive path, so the correct step is reserving a dedicated channel before transmission begins.
Q2. If a circuit is established but later a switch in the path experiences a hardware fault, what is the most immediate impact on the ongoing communication?
📖 Explanation: When a switch fails, the dedicated physical circuit that was previously reserved can no longer carry the signal. Because circuit switching lacks alternative paths during a session, the connection is abruptly terminated, making termination the most direct consequence of the fault.
Q3. Suppose each link in the network provides n = 3 channels. If a connection uses one channel per link, what fraction of the total link capacity remains unused for that connection?
📖 Explanation: With three equal channels, using one leaves two channels free. The unused portion is therefore two out of three, which simplifies to . This ratio represents the remaining capacity on each link when a single dedicated channel is occupied.
Q4. During the teardown phase, which resource is NOT required to be released explicitly?
📖 Explanation: Teardown releases the physical channel, processing time, and input/output ports that were reserved for the circuit. An IP address binding is a logical association that persists beyond the circuit’s lifetime and does not need explicit release when the circuit is torn down.
Q5. In a circuit‑switched network, why is the data stream considered continuous rather than packetized?
📖 Explanation: Circuit switching creates a dedicated path that remains open for the entire session, allowing the source to send an uninterrupted signal. No packet boundaries are introduced at the physical layer, so the transmission appears as a continuous flow rather than discrete packets.
Q6. Which of the following best contrasts circuit switching with packet switching regarding resource allocation?
📖 Explanation: Circuit switching requires that all resources—channels, switch buffers, and ports—be reserved before any data is sent, establishing a fixed end‑to‑end path. Packet switching, in contrast, allocates resources on a per‑packet basis, allowing many flows to share the same physical infrastructure dynamically.
Q7. Consider two networks: one uses FDM to divide each link into 3 channels, the other uses TDM with 3 time slots per link. Which statement correctly evaluates their impact on latency?
📖 Explanation: Both FDM and TDM allocate separate, non‑overlapping resources (frequency bands or time slots) for each connection. Since each connection receives a dedicated slice of the link, the propagation delay dominates, making the latency of both schemes essentially comparable.
Q8. If a circuit‑switched network with 4 links each having 3 channels experiences a surge in call requests, which statement accurately assesses its scalability compared to a packet‑switched network?
📖 Explanation: With 4 links and 3 channels per link, the total number of distinct end‑to‑end circuits that can exist simultaneously is 3 × 3 × 3 × 3 = 81, but each call consumes one channel on every link, limiting the maximum concurrent calls to the smallest link capacity, i.e., 3 per link, yielding 12 total paths. This hard limit contrasts with packet switching, which can share bandwidth dynamically.
Q9. How does the requirement for a connection setup phase affect the suitability of circuit switching for bursty traffic patterns?
📖 Explanation: Bursty traffic means periods of high activity followed by silence. Circuit switching reserves the full channel for the entire session, so during silent periods the reserved bandwidth sits idle, wasting resources. Consequently, the setup overhead and reserved capacity reduce efficiency for traffic that is not continuous.
Q10. Which layer of the TCP/IP model is directly responsible for establishing the dedicated physical path in a circuit‑switched network?
📖 Explanation: Circuit‑switched networks allocate a specific physical channel at the lowest level of the protocol stack. This function belongs to the Physical layer, which handles the actual transmission medium, signal encoding, and the establishment of a dedicated path for the duration of the call.
Q11. Apply the principle of resource reservation to explain why a voice call over a circuit‑switched network experiences consistent delay, while a voice call over a packet‑switched network may experience jitter.
📖 Explanation: In circuit switching, the reserved channel guarantees that the voice data travels without competing for bandwidth, so each sample arrives after a fixed propagation time, yielding consistent delay. Packet switching shares links among many flows, introducing variable queuing times that cause jitter, especially when the network is congested.
Q12. Synthesize the effect of increasing the number of channels per link (n) on both the setup time and the maximum number of simultaneous end‑to‑end connections in the described network.
📖 Explanation: Adding more channels per link does not alter the signaling protocol used for establishing a circuit, so the time required to negotiate a path remains the same. However, each additional channel creates a new possible route for a distinct connection, allowing the total number of concurrent end‑to‑end circuits to grow in direct proportion to n.
Q13. Given that circuit switching occurs at the physical layer, which of the following implications is most accurate for cross‑layer design in network protocols?
📖 Explanation: Because the physical layer establishes the dedicated path, any modification at this level—such as altering channel bandwidth or signal timing—will immediately impact the reliability and performance of the entire communication session, influencing higher‑layer behavior.
Q14. If a network designer wants to guarantee zero packet loss for a critical data stream, which switching method should they prioritize and why?
📖 Explanation: Circuit switching provides an exclusive channel for the entire duration of the transmission, ensuring that no other traffic can preempt or interfere with the critical stream. This dedicated allocation eliminates the possibility of packet loss due to congestion, making it the preferred method for absolute reliability.
Q15. How would you apply the concept of dedicated channels to design a hybrid network that supports both voice and data services, ensuring minimal interference?
📖 Explanation: By assigning distinct physical channels to voice (circuit‑switched) and data (packet‑switched), each service can operate on its optimal transport mechanism. Voice benefits from a constant, low‑latency path, while data enjoys flexible bandwidth sharing, reducing cross‑traffic interference and preserving quality for both streams.
Q16. In the TCP/IP model, which layer corresponds most closely to the OSI model’s Data Link layer?
📖 Explanation: The TCP/IP model’s Link layer, also referred to as the Network Interface layer, handles functions such as framing, MAC addressing, and error detection—tasks that align closely with the Data Link layer of the OSI reference model. This mapping clarifies where physical and data link responsibilities reside in the TCP/IP stack.