📝 Ethernet MAC addressing (18 MCQs)
Forty Eight Bit Addresses for Ethernet Interfaces
Ethernet MAC addressing identifies network interfaces at the data link layer. A standard Ethernet address is 48 bits, commonly written as six hexadecimal octets such as 00:1A:2B:3C:4D:5E. Source and destination MAC addresses appear in every ordinary Ethernet frame, supporting delivery across the local link without replacing logical IP addressing. This allows compatible interfaces to exchange frames across different wired media without changing upper layers.
Octet Structure and Organizational Address Assignment
The first octet contains important control bits. The least significant bit indicates individual or group addressing, distinguishing unicast from multicast. The next bit indicates universal or locally administered addressing. The remaining bits identify the assigned address structure. Manufacturers commonly receive organizational identifiers, while administrators may configure locally administered addresses. The selected PHY determines the electrical or optical signalling method.
Unicast, Multicast and Broadcast Destinations
A unicast frame targets one interface, a multicast frame targets a defined group, and the Ethernet broadcast address FF:FF:FF:FF:FF:FF targets all stations on the local broadcast domain. Network interface hardware and switches examine destination addresses to determine whether a frame should be accepted, flooded, or forwarded through a particular port.
How Switches Learn and Use MAC Addresses
When a switch receives a frame from a device, it records the source MAC address with the incoming port in its forwarding table. It then looks up the destination address. If known, the switch forwards the frame to the associated port; if unknown, it floods the frame within the same VLAN, excluding the receiving port.
MAC Address Delivery Within an IP Network
When a computer sends an IP packet to a host on its own subnet, it uses the destination host's MAC address in the Ethernet frame. For a remote IP destination, it sends the frame to the MAC address of its default gateway. The IP destination remains the remote host, while the frame destination is the next-hop router.
Differences Between MAC Addresses and IP Addresses
'A MAC address identifies a whole IP network' is incorrect because it identifies a data-link interface. 'A MAC address is always globally assigned' is false because locally administered addresses are possible. 'Routers preserve the same Ethernet source and destination across every hop' is incorrect because each routed link uses a newly constructed link-layer frame.
MAC Address Bits and Frame Delivery in Examinations
Be able to convert a 48-bit address into six octets, recognize unicast, multicast, and broadcast values, and interpret the two low-order bits of the first octet. Trace source learning and destination lookup in a switch. In routing questions, distinguish the IP destination from the Ethernet next-hop destination. Always state the applicable rate, medium, encoding, and duplex mode.
Ethernet MAC addressing: Key Terms and Definitions
- MAC address - Forty eight bit link identifier.
- OUI - Organizationally assigned address prefix.
- Unicast - One interface is the destination.
- Multicast - A defined group receives frames.
- Broadcast - All interfaces receive the frame.
- VLAN - Separates a logical broadcast domain.
📝 All Ethernet MAC addressing MCQs
Q1. What is the standard 8‑bit flag pattern used in bit‑oriented framing?
📖 Explanation: The flag 01111110 is defined by HDLC and many bit‑oriented protocols as the unique 8‑bit delimiter that marks the start and end of a frame. The other patterns are either all ones, all zeros, or a simple alternating pattern, none of which serve as the protocol‑defined flag.
Q2. In bit‑oriented protocols, which layer interprets the data section of a frame?
📖 Explanation: The data payload of a frame is delivered to the upper protocol layer, which for most network models is the Application layer. The lower layers (Physical, Data Link, Network) handle transmission, framing, and routing, but they do not interpret the payload as user data.
Q3. If a transmitted frame contains the bit pattern 01111110 within its data, what mechanism is used to prevent misinterpretation as a flag?
📖 Explanation: Bit stuffing inserts a complementary 0 after any occurrence of five consecutive 1s, ensuring that the flag pattern 01111110 cannot appear unintentionally inside the data. This preserves the uniqueness of the flag while allowing any user data to be transmitted.
Q4. Given that 32‑bit characters may contain the flag pattern, what is the impact on frame synchronization if bit stuffing is not applied?
📖 Explanation: Without bit stuffing, a 32‑bit character that accidentally matches the flag sequence would be mistaken for a frame delimiter, causing the receiver to lose track of where frames begin and end. This loss of synchronization leads to corrupted data streams.
Q5. In a system moving from byte‑oriented to bit‑oriented protocols, what is a likely consequence for error detection mechanisms?
📖 Explanation: Transitioning to bit‑oriented framing often requires a CRC that operates on the bit stream rather than on byte boundaries. Consequently, a more sophisticated polynomial may be chosen to maintain detection capability across arbitrary bit patterns.
Q6. Compare the overhead introduced by byte stuffing versus bit stuffing in a high‑speed network.
📖 Explanation: Bit stuffing only inserts a single 0 after five consecutive 1s, while byte stuffing may need to escape every occurrence of a control character, potentially adding an entire extra byte. Therefore, bit stuffing generally incurs less overhead in high‑speed traffic.
Q7. Evaluate the advantage of using an 8‑bit flag pattern versus a longer unique delimiter.
📖 Explanation: A concise 8‑bit flag minimizes the number of bits transmitted solely for framing, reducing overall overhead. Although longer delimiters could lower the chance of accidental occurrence, the added bits diminish efficiency, making the short flag preferable for most applications.
Q8. Differentiate between 32‑bit character handling in byte‑oriented and bit‑oriented framing regarding delimiter detection.
📖 Explanation: In bit‑oriented framing, a special flag marks frame boundaries, and bit stuffing guarantees that the flag never appears in the data. Byte‑oriented schemes rely on character‑level escape sequences, which can be less flexible when dealing with multi‑byte characters.
Q9. Analyze how the transition to bit‑oriented framing affects compatibility with legacy 8‑bit character applications.
📖 Explanation: Legacy applications expect byte‑oriented streams; moving to bit‑oriented framing introduces flag bits and stuffing that these applications cannot interpret. Therefore, intermediary translation or adaptation layers are needed to bridge the gap.
Q10. Contrast the processing complexity of detecting flag patterns in bit‑oriented framing vs byte‑oriented framing.
📖 Explanation: Detecting a flag in bit‑oriented protocols involves examining the stream one bit at a time to locate the 01111110 pattern, which is more granular than scanning whole bytes for a specific escape character in byte‑oriented protocols.
Q11. When data contains five consecutive 1s, how many extra bits are inserted by bit stuffing?
📖 Explanation: Bit stuffing dictates that after any sequence of five consecutive 1s, a single 0 is inserted to break the pattern. This ensures that the flag sequence cannot be formed unintentionally, adding exactly one extra bit for each such occurrence.
Q12. How does flag delimiting combined with bit stuffing ensure reliable communication?
📖 Explanation: The flag provides a clear start and end marker for each frame, while bit stuffing guarantees that the flag pattern never appears within the payload. Together they maintain data transparency and allow the receiver to reliably detect frame limits.
Q13. Synthesize a scenario where using bit‑oriented framing improves video streaming performance compared to byte‑oriented framing.
📖 Explanation: Video streams consist of large, continuous bit streams where minimizing framing overhead is critical. Bit‑oriented framing introduces only a short flag and occasional stuffing bits, reducing latency and bandwidth consumption relative to byte‑oriented schemes that may add larger escape sequences.
Q14. Design a mixed‑media protocol using bit‑oriented framing. Which element is essential to maintain synchronization?
📖 Explanation: A flag pattern such as 01111110, together with bit stuffing, provides unambiguous frame delimiters regardless of the media type. Without this mechanism, variable‑length text, audio, or video payloads could cause loss of synchronization.
Q15. Why does moving toward bit‑oriented protocols align with increasing data rates and complex media types?
📖 Explanation: Bit‑oriented protocols operate on the raw bit stream, enabling tighter packing, reduced framing overhead, and adaptable delimiters. This efficiency is essential for high‑throughput environments and media that demand precise timing and minimal latency.
Q16. If a frame’s flag pattern changes to 01111010 due to errors, what can be inferred about error detection?
📖 Explanation: The altered pattern no longer matches the valid flag, so the frame will be rejected. A correctly computed CRC over the entire frame will almost certainly flag the inconsistency, indicating that the error will be detected.
Q17. Increasing the flag length from 8 bits to 12 bits changes the probability of accidental appearance in random data how?
📖 Explanation: Each additional bit halves the chance of a random sequence matching the flag. Extending the flag from 8 to 12 bits reduces the probability by a factor of 2⁴ = 16, yielding an exponential decrease in accidental occurrences.
Q18. When transmitting a payload with 30% ones, which framing is more bandwidth‑efficient?
📖 Explanation: Bit‑oriented framing only adds a flag and occasional stuffing bits, whereas byte‑oriented framing may require escape characters for each control byte. With a substantial proportion of ones, bit stuffing adds fewer bits, making bit‑oriented framing more efficient.