🎓 BookMCQ
← Back to 12. Media Access Control (MAC)

📝 CSMA/CD Collision Detection algorithm (40 MCQs)

Collision Detection in Shared Half-Duplex Ethernet

Carrier Sense Multiple Access with Collision Detection is a medium access method historically used by shared, half-duplex Ethernet. A station senses the cable before sending and monitors it during transmission. If it detects a collision, it stops the frame, sends a jam signal so other stations recognize the event, and waits before attempting retransmission. It is associated with classic shared Ethernet rather than current full-duplex switched links.

Collision Monitoring and Binary Exponential Backoff

The method depends on a shared collision domain and the ability to detect a collision while transmitting. After a collision, the station applies binary exponential backoff: it chooses a random number of slot times from an expanding range based on the collision count. The range grows after repeated collisions, reducing synchronized retries.

The CSMA/CD Transmission Algorithm

A station senses the medium and waits if it is busy. When idle, it transmits while monitoring for a collision. On detection, it sends a jam sequence, aborts the current frame, increments its retry count, and waits a randomly selected backoff period. It then senses the medium again and retries, subject to a retry limit.

Two Transmitters Detecting an Ethernet Collision

If stations A and B begin transmitting before either signal reaches the other, their frames collide on the shared cable. Each detects abnormal activity, sends a jam signal, and stops. They select different backoff slot counts; if A chooses fewer slots, it can retry first after the medium becomes idle.

Relationship to Ethernet Frame Timing and Topology

CSMA/CD belongs to the MAC sublayer and works with the physical layer's shared-medium signaling. Traditional bus Ethernet and hub-based half-duplex Ethernet used collision domains. Modern switched full-duplex Ethernet provides separate links and does not use CSMA/CD for normal operation because simultaneous send and receive are supported without collisions.

Misconceptions About Ethernet Collision Handling

'CSMA/CD is required on all Ethernet links' is incorrect because switched full-duplex links do not use collision detection. 'A station continues its frame after detecting a collision' is incorrect because it aborts and sends a jam sequence. 'Backoff is a fixed delay' is incorrect because binary exponential backoff selects a random slot count.

Tracing Jam Signals, Slot Times and Retries

Be prepared to order carrier sensing, transmission, collision detection, jam signaling, abort, backoff, and retransmission. Understand why a minimum frame length is related to collision detection within the network's round-trip propagation time. Distinguish collision detection in wired shared Ethernet from collision avoidance in wireless LANs. The retry process is repeated until success or the attempt limit is reached.

Collision Detection and Backoff Terms

  • CSMA/CD - Senses and detects collisions during transmission.
  • Jam signal - Notifies stations of a detected collision.
  • Collision domain - Network region sharing collision activity.
  • Backoff - Random waiting before retransmission.
  • Slot time - Unit used to calculate backoff.
  • Half-duplex - Communication permits one direction at a time.
9
Easy
18
Medium
13
Hard

📝 All CSMA/CD Collision Detection algorithm MCQs

Q1. What is the bit pattern of the PPP flag byte that marks the start and end of a frame?

A.1111110 ✅
B.1111101
C.11111111
D.11
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The flag byte is defined by the standard as 01111110. This unique pattern allows receivers to detect frame boundaries. The other patterns listed correspond to the escape byte, broadcast address, and control field, respectively, but they are not used as the delimiter flag.

Q2. In PPP, what constant value is placed in the Address field of every frame?

A.0
B.11111111 ✅
C.10101010
D.110011
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: PPP uses a broadcast address for all frames, which is the 8‑bit constant 11111111. This simplifies addressing because PPP operates point‑to‑point links where a unique address is unnecessary. The other binary values listed do not correspond to the defined address field in the protocol.

Q3. If a flag‑like byte pattern appears in the payload, which mechanism prevents the receiver from mistaking it for a frame delimiter?

A.Byte stuffing ✅
B.Bit stuffing
C.CRC verification
D.Padding
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: Byte stuffing inserts an escape byte before any occurrence of the flag pattern inside the payload. This tells the receiver that the subsequent byte is data, not a delimiter. Bit stuffing works at the bit level, while CRC and padding serve different purposes and do not address this specific ambiguity.

Q4. A payload contains one occurrence of the escape byte 01111101. How many bytes are transmitted for that occurrence after byte stuffing?

A.1
B.2 ✅
C.3
D.4
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: When the escape byte itself appears in the data, PPP inserts another escape byte before it, resulting in two consecutive bytes (01111101, 01111101). This prevents the receiver from interpreting the first escape as the start of a flag‑escaping sequence. Thus, the original single byte expands to two bytes.

Q5. Compared to HDLC, which statement best describes PPP’s handling of flow control?

A.PPP provides automatic flow control using sliding windows
B.PPP relies on upper‑layer protocols for flow control
C.PPP uses a dedicated flow‑control field similar to HDLC ✅
D.PPP implements flow control by adjusting the flag byte pattern
💡 Difficulty: easy | ✅ Correct: C

📖 Explanation: PPP does not include a flow‑control field; it merely copies the HDLC unnumbered frame control value (00000011) and leaves flow management to higher‑layer protocols. HDLC, by contrast, can embed flow‑control mechanisms such as acknowledgment and windowing, which PPP deliberately omits.

Q6. If the Protocol field is reduced from 2 bytes to 1 byte, how does the maximum number of distinct protocols that can be indicated change?

A.It doubles
B.It remains the same
C.It halves
D.It triples ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: A 2‑byte field can represent up to 216=65,5362^{16}=65,536 protocols, while a 1‑byte field can represent up to 28=2562^{8}=256. Reducing the size therefore limits the maximum number of protocol identifiers to 256, which is a substantial reduction, not an increase.

Q7. When a PPP payload is shorter than the default maximum of 1500 bytes, which field must be added to meet the required frame length?

A.Padding ✅
B.FCS
C.Flag
D.Escape byte
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: PPP requires frames to reach the negotiated maximum length. If the payload is smaller, the sender appends padding bytes (typically zeroes) after the data field before the FCS. This ensures the frame meets the minimum size expectations while preserving the integrity of the checksum.

Q8. To add error‑correction capability while preserving PPP’s byte‑stuffing rules, which approach is most appropriate?

A.Replace CRC with a Reed‑Solomon code and keep the same frame format
B.Introduce a new control field that carries forward error‑correction data ✅
C.Add an optional extension field after the protocol field that carries correction codes
D.Use a different escape byte for correction data
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: Introducing a new control field dedicated to error‑correction allows the transmitter to convey additional redundancy without altering the existing byte‑stuffing process. The original flags, address, control, and protocol fields remain unchanged, so the receiver’s byte‑stuffing logic continues to function correctly.

Q9. A PPP frame carries a 1500‑byte payload. What is the minimum total size of the frame (including start/end flags, address, control, protocol, and a 2‑byte FCS) assuming no padding?

A.1506 bytes
B.1508 bytes ✅
C.1510 bytes
D.1512 bytes
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: The frame consists of: start flag (1), address (1), control (1), protocol (2), payload (1500), FCS (2), and end flag (1). Adding these yields 1+1+1+2+1500+2+1=15081+1+1+2+1500+2+1 = 1508 bytes. No extra padding is needed because the payload already meets the maximum size.

Q10. If a single bit error flips one bit in the 16‑bit FCS, what is the probability that the CRC will still fail to detect the error?

A.\\frac{1}{65536}\
B.\\frac{65535}{65536}\ ✅
C.\\frac{1}{2}\
D.0
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: A 16‑bit CRC detects all but a fraction of 1/2161/2^{16} random errors. Therefore the chance that an error remains undetected is 1/655361/65536; the complementary probability of detection is 65535/6553665535/65536. Hence the correct answer is the latter fraction.

Q11. When a payload contains both flag‑like patterns and escape bytes, how does the overhead compare?

A.Flag patterns cause more overhead than escape bytes
B.Escape bytes cause more overhead than flag patterns
C.Both produce the same overhead ✅
D.Overhead depends on the position of the bytes
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Each occurrence—whether a flag pattern or an escape byte—requires the insertion of one extra escape byte. Consequently, both types add exactly one byte per occurrence, leading to identical overhead for the same number of occurrences.

Q12. Why does PPP not provide its own flow‑control mechanism, and what impact does this have on high‑speed Ethernet using CSMA/CD?

A.PPP relies on physical‑layer back‑pressure, which Ethernet cannot provide
B.PPP expects upper‑layer protocols to handle flow, so Ethernet collisions are detected by CSMA/CD before frame loss
C.PPP’s lack of flow control causes frequent collisions on Ethernet, degrading performance ✅
D.PPP uses flow control only during the LCP phase, which is irrelevant for Ethernet
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: PPP deliberately omits flow control, assuming that higher‑layer protocols (e.g., TCP) will manage data rates. On fast Ethernet, CSMA/CD detects collisions quickly, but the absence of PPP flow control means that bursts of PPP frames can still saturate the medium, relying solely on CSMA/CD to resolve contention.

Q13. A captured PPP frame shows a control field of 00000100 instead of the expected 00000011. What is the most plausible inference?

A.The frame is corrupted ✅
B.The frame belongs to a different protocol family
C.The sender uses a non‑standard control value
D.The frame is a valid PPP frame with extended control
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: The control field in standard PPP is fixed at 00000011. Any deviation, such as 00000100, strongly suggests that the frame has been corrupted during transmission rather than representing a legitimate, alternative protocol value.

Q14. When choosing between a 2‑byte and a 4‑byte FCS for a 1500‑byte payload, which trade‑off is most accurate?

A.A 2‑byte FCS offers better error detection but higher overhead
B.A 4‑byte FCS reduces error detection probability but adds less overhead
C.A 4‑byte FCS improves detection at the cost of two extra bytes of overhead
D.Both options provide identical detection performance ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: A 4‑byte CRC dramatically lowers the probability of undetected errors (from 1/2161/2^{16} to 1/2321/2^{32}) while adding only two additional bytes. For a 1500‑byte payload, the extra overhead is negligible, making the 4‑byte FCS the superior choice for reliability.

Q15. If a PPP payload ends with the flag byte pattern, what must be inserted before the closing flag to preserve frame integrity?

A.An escape byte ✅
B.A padding byte
C.Nothing; the closing flag can follow directly
D.A duplicate flag byte
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: When the payload terminates with a sequence identical to the flag (01111110), PPP inserts an escape byte (01111101) before the final flag. This prevents the receiver from interpreting the payload’s ending as the frame delimiter, ensuring correct frame termination.

Q16. In a transmission where every third frame is an S‑frame (RR) and the others are I‑frames, what is the ratio of ACK frames to data frames?

A.1 : 1
B.1 : 2 ✅
C.2 : 1
D.3 : 2
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: For every three frames, one is an ACK (RR) and two are data (I‑frames). Thus the ratio of ACK frames to data frames is 1 : 2. This simple counting demonstrates how acknowledgment frequency relates to data transmission in a pipelined environment.

Q17. How does CSMA/CD’s collision‑detection timing compare with PPP’s error‑detection latency?

A.CSMA/CD detects errors almost instantly, while PPP must wait for the whole frame and CRC verification ✅
B.PPP detects errors faster because CRC is computed in hardware
C.Both detect errors at the same time since they rely on physical‑layer signals
D.CSMA/CD does not detect errors, only collisions, making PPP faster overall
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: CSMA/CD monitors the carrier while transmitting; any collision is detected within microseconds, allowing immediate retransmission. PPP, however, only discovers errors after the complete frame is received and the CRC is checked, introducing a latency proportional to frame length.

Q18. Describe a scenario where PPP’s lack of flow control could cause a router’s buffer overflow, and suggest a higher‑layer mitigation technique.

A.Enable TCP’s window scaling to throttle the sender
B.Introduce a custom PPP flow‑control extension
C.Configure the router to drop packets randomly ✅
D.Use a larger MTU to reduce packet count
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: If a high‑speed link pushes PPP frames faster than the router can process them, the input buffer may overflow because PPP offers no back‑pressure. Implementing a higher‑layer solution such as TCP’s congestion control (e.g., window scaling) allows the sender to adapt its rate based on receiver feedback, preventing overflow without modifying PPP.

Q19. What is the default maximum payload size defined for PPP frames?

A.1500 bytes ✅
B.1200 bytes
C.1600 bytes
D.1400 bytes
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The PPP standard sets the default maximum payload length at 1500 bytes, matching the typical Ethernet MTU. This value can be negotiated during link configuration, but 1500 bytes remains the standard default when no other agreement is reached.

Q20. A PPP payload contains two flag‑like patterns and one escape byte. How many extra bytes are added due to byte stuffing?

A.2
B.3 ✅
C.4
D.5
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: Each flagged pattern requires one extra escape byte, and the single escape byte also needs one additional escape byte. Therefore, the total overhead is 2+1=32 + 1 = 3 extra bytes inserted into the frame.

Q21. How do the purposes of the Protocol field and the Control field differ in a PPP frame?

A.The Protocol field identifies the encapsulated network protocol, while the Control field indicates frame type and sequencing
B.The Control field carries the protocol identifier, and the Protocol field provides error‑control information
C.Both fields serve the same purpose and are interchangeable
D.The Protocol field is optional, whereas the Control field is mandatory for all frames ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: The Protocol field specifies which higher‑layer protocol (e.g., IPv4, IPv6) the payload contains, enabling the receiver to pass the data to the correct module. The Control field, fixed at 00000011, simply denotes that the frame is an unnumbered PPP frame and does not convey sequencing or protocol information.

Q22. Design a PPP frame that can carry both IPv4 and IPv6 traffic using protocol field extensions, and explain how the receiver distinguishes the two payloads.

A.Use two consecutive Protocol fields, one for IPv4 (0x0021) and one for IPv6 (0x0057), and let the receiver parse each in order
B.Set a single Protocol field to a new value (0x00FF) that indicates a multiplexed payload, with an internal header distinguishing IPv4 and IPv6 ✅
C.Include a length field before each payload, allowing the receiver to separate the two protocols
D.Add a vendor‑specific extension that carries both protocols, with a flag byte indicating the start of each segment
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: By defining a new Protocol identifier (e.g., 0x00FF) that represents a multiplexed container, the frame can embed both IPv4 and IPv6 sections. Inside the payload, a small header or flag byte precedes each segment, enabling the receiver to parse and route each protocol correctly without altering the standard PPP framing.

Q23. What does CSMA/CA stand for?

A.Carrier Sense Multiple Access with Collision Detection
B.Carrier Sense Multiple Access with Collision Avoidance ✅
C.Channel Sensing Multiple Access with Collision Avoidance
D.Collision Sensing Multiple Access with Channel Allocation
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: The acronym expands to Carrier Sense Multiple Access with Collision Avoidance, describing a protocol that senses the medium before transmitting and uses mechanisms to avoid collisions, especially in wireless environments.

Q24. In CSMA/CA, what is the primary purpose of the backoff timer?

A.To synchronize clocks between nodes
B.To measure signal strength
C.To wait a random period before retransmission ✅
D.To encrypt the data packet
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The backoff timer forces a node to wait a randomly chosen number of time slots before attempting to retransmit, reducing the chance that multiple nodes will collide when the channel becomes idle.

Q25. If a node senses a busy channel during carrier sensing, what immediate action does it take according to the FSM?

A.It defers transmission and starts a backoff timer ✅
B.It immediately transmits anyway
C.It resets to the dead state
D.It sends an RTS frame
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: When the medium is detected as busy, the node does not transmit; instead it enters a defer state and initiates a backoff timer to wait a random period before trying again.

Q26. In the FSM, if authentication is required but the authentication exchange fails, which state does the connection transition to?

A.Establish
B.Open
C.Dead ✅
D.Terminate
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: A failed authentication means the link cannot be established, so the FSM returns to the dead state, where no active carrier exists and the line is quiet.

Q27. When two nodes finish their backoff timers at the same slot, what is the most likely result in a CSMA/CA network?

A.Both nodes successfully transmit
B.One node is randomly chosen to transmit
C.Both nodes detect the idle channel and wait
D.A collision occurs, leading to a new backoff ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: Simultaneous transmission attempts cause a collision; the nodes then detect the failure and restart the backoff process, increasing delay.

Q28. Which of the following best compares CSMA/CA to CSMA/CD?

A.Both detect collisions after they happen
B.CSMA/CA avoids collisions using RTS/CTS, while CSMA/CD detects collisions after they occur ✅
C.CSMA/CA is used only in wired media
D.CSMA/CD uses a backoff timer while CSMA/CA does not
💡 Difficulty: easy | ✅ Correct: B

📖 Explanation: CSMA/CA employs mechanisms such as RTS/CTS to prevent collisions before they happen, whereas CSMA/CD waits to detect a collision after transmission, which is feasible mainly on wired media.

Q29. How does increasing the contention window size affect throughput and delay in a CSMA/CA network?

A.Reduces collision probability but increases average waiting time, possibly lowering throughput under light load ✅
B.Increases both throughput and delay uniformly
C.Has no impact on either metric
D.Eliminates collisions entirely
💡 Difficulty: medium | ✅ Correct: A

📖 Explanation: A larger contention window spreads transmission attempts over more slots, decreasing the chance of simultaneous attempts but causing nodes to wait longer on average, which can reduce throughput when traffic is low.

Q30. What distinguishes the hidden node problem from the exposed node problem in CSMA/CA?

A.Hidden nodes can sense each other, exposed nodes cannot
B.Both problems are identical in effect
C.Hidden nodes cannot sense each other leading to collisions; exposed nodes sense others and defer unnecessarily ✅
D.Exposed nodes cause collisions, hidden nodes cause idle slots
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: Hidden nodes are out of range of each other and may transmit simultaneously, causing collisions; exposed nodes hear a transmission and unnecessarily postpone their own, reducing channel efficiency.

Q31. Given pp as the probability that a node transmits in a slot and nn nodes total, which expression gives the probability that a slot is idle?

A.(1−p)n−1(1-p)^{n-1}
B.(1−p)n(1-p)^n ✅
C.1−np1 - np
D.np(1−p)n−1np (1-p)^{n-1}
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: All nn nodes must refrain from transmitting; the probability each does not transmit is 1−p1-p, so the joint probability is (1−p)n(1-p)^n.

Q32. After three consecutive collisions, what is the range of the backoff counter (in slots) for a node using exponential backoff?

A.0 to 3 slots
B.0 to 5 slots
C.0 to 6 slots
D.0 to 7 slots ✅
💡 Difficulty: medium | ✅ Correct: D

📖 Explanation: Exponential backoff uses a contention window of 2k2^k slots after the kthk^{th} collision; for k=3k=3 the window is 23=82^3=8, giving a random counter from 0 to 7.

Q33. In a multi‑hop wireless network with hidden terminals, how does the RTS/CTS handshake reduce collisions?

A.It reserves the channel for the sender and receiver, preventing hidden terminals from transmitting during the data phase ✅
B.It increases the transmission power to overcome hidden nodes
C.It eliminates the need for carrier sensing
D.It shortens the packet length to avoid overlap
💡 Difficulty: hard | ✅ Correct: A

📖 Explanation: RTS/CTS exchanges reserve the medium for the upcoming data frame, so nodes that cannot hear the original sender (hidden) hear the CTS and stay silent, thereby preventing collisions.

Q34. To add a priority state for emergency traffic in the CSMA/CA FSM, which modification is most appropriate?

A.Create a separate backoff algorithm that uses smaller contention windows for priority traffic
B.Allow priority packets to bypass carrier sensing entirely
C.Introduce a high‑priority state that skips the backoff timer after the channel is sensed idle ✅
D.Force all nodes to reset to the dead state before priority transmission
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: A dedicated priority state lets emergency packets move directly from carrier‑sense to transmit, bypassing the normal backoff, which ensures minimal delay while still respecting the idle‑channel check.

Q35. If the transmission time T=L/RT = L/R is long, why does CSMA/CA experience a higher collision probability?

A.Longer TT reduces the chance that other nodes will sense the medium
B.The channel remains occupied longer, giving more opportunities for other nodes to start transmitting ✅
C.Long packets are immune to collisions
D.Collision detection is faster for longer packets
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: A longer transmission keeps the channel busy for more time, increasing the window during which another node may begin a transmission, thus raising the likelihood of a collision.

Q36. Under high network load, which protocol generally provides higher channel utilization: CSMA/CA or TDMA, and why?

A.CSMA/CA, because its random backoff adapts to traffic
B.TDMA, because scheduled slots prevent collisions and backoff delays ✅
C.Both achieve equal utilization
D.CSMA/CA, because it uses carrier sensing to avoid collisions
💡 Difficulty: hard | ✅ Correct: B

📖 Explanation: TDMA assigns fixed time slots to each node, eliminating collisions and the need for backoff, which yields higher utilization when many nodes contend for the medium.

Q37. When authentication is required and succeeds, what is the correct sequence of FSM states from idle to termination?

A.Dead → Open → Terminate → Dead
B.Dead → Establish → Terminate → Dead
C.Dead → Establish → Open → Terminate → Dead ✅
D.Dead → Open → Establish → Terminate → Dead
💡 Difficulty: medium | ✅ Correct: C

📖 Explanation: The FSM moves from Dead to Establish (where authentication occurs), then to Open for data exchange, proceeds to Terminate when the session ends, and finally returns to Dead.

Q38. In a PPP frame, which field identifies the encapsulated network‑layer protocol?

A.Protocol ✅
B.Address
C.Control
D.Flag
💡 Difficulty: easy | ✅ Correct: A

📖 Explanation: The Protocol field (2 bytes) specifies which network‑layer protocol (e.g., IP, IPv6) is carried in the PPP payload.

Q39. Why does PPP employ separate LCP and NCP protocols rather than a single control protocol?

A.LCP handles error correction while NCP handles encryption
B.LCP manages link establishment and authentication; NCP configures network‑layer parameters, allowing modular design ✅
C.Both are redundant and provide backup
D.LCP is for wireless links and NCP for wired links
💡 Difficulty: medium | ✅ Correct: B

📖 Explanation: LCP takes care of establishing and authenticating the link, while NCP negotiates network‑layer settings such as IP address assignment, keeping the control functions modular and extensible.

Q40. How can CSMA/CA be adapted for ultra‑low‑power IoT devices that use duty cycling?

A.By eliminating carrier sensing and transmitting at fixed intervals
B.By using continuous listening to detect collisions
C.By employing long sleep periods and adaptive backoff based on sensed traffic to minimize active time ✅
D.By increasing transmission power to overcome interference
💡 Difficulty: hard | ✅ Correct: C

📖 Explanation: IoT nodes can stay asleep most of the time, waking briefly to sense the channel and then using an adaptive backoff that scales with observed traffic, thereby reducing the time spent with the radio on and conserving energy.

🔗 Related Topics (MCQs)