📝 IPv4 datagram format header fields (32 MCQs)
IPv4 Header Layout and Datagram Size
An IPv4 datagram consists of a header followed by data. The header is at least 20 bytes and can reach 60 bytes when options are present; its length is specified by the four-bit Internet Header Length field in 32-bit words. The Total Length field counts the entire datagram in bytes, including both header and payload, up to the protocol limit.
Control and Identification Fields in the Header
The Version field identifies IPv4, while DSCP and ECN support differentiated treatment and congestion notification. Identification, Flags and Fragment Offset support fragmentation and reassembly. The Time To Live field limits looping, Protocol identifies TCP, UDP or another payload protocol, and Header Checksum detects corruption in the IPv4 header. Source and Destination fields contain 32-bit addresses.
How a Router Processes IPv4 Header Fields
A router reads the destination address to perform a forwarding-table lookup. It decreases TTL by at least one, discards a packet if TTL expires, and recomputes the header checksum because the header changed. It also examines fragmentation flags and offset when relevant. The Protocol field is used by the receiving host to deliver payload to the correct upper-layer handler.
Reading a Common Twenty-Byte IPv4 Header
For a datagram without options, IHL is 5, representing 5 × 4 = 20 header bytes. If Total Length is 1,500 bytes, the payload is 1,480 bytes. A Protocol value of 6 identifies TCP, while 17 identifies UDP. These values show how header fields describe datagram size and the next protocol without revealing application content.
Header Fields and Related Network Functions
Address fields support logical delivery, TTL limits routing loops, and Protocol supports demultiplexing at the destination. Fragmentation fields allow oversized IPv4 datagrams to cross links with smaller maximum transmission units when fragmentation is permitted. The checksum protects only the IPv4 header, not the payload; transport protocols may provide their own checks for end-to-end data integrity.
Frequent Errors When Interpreting IPv4 Fields
'Total Length counts only payload bytes' is incorrect because it includes header and data. 'The IPv4 checksum protects the whole packet' is incorrect because it covers only the header. 'IHL is measured directly in bytes' is incorrect because it counts 32-bit words, so a value of 5 means 20 bytes.
IPv4 Header Calculations and Field Recognition
Be able to calculate header length from IHL, payload length from Total Length, and identify the meaning of Protocol, TTL, Flags and Fragment Offset. Recognize the minimum and maximum header sizes, convert hexadecimal field values when needed, and state which fields change at routers. Distinguish IPv4 header checksum from TCP or UDP checksums.
IPv4 Header Fields and Datagram-Format Terms
- IHL - Header length in 32-bit words.
- Total Length - Complete datagram size in bytes.
- TTL - Limits forwarding lifetime.
- Protocol - Identifies upper-layer payload.
- Fragment Offset - Locates fragment payload.
- Header Checksum - Detects header corruption.
📝 All IPv4 datagram format header fields MCQs
Q1. Which of the following is a membership characteristic used to assign stations to a VLAN?
📖 Explanation: IP addresses are explicitly mentioned in the text as a way to group stations into VLANs, allowing the administrator to list specific addresses such as 181.34.23.67. MAC addresses, subnet masks, and port speed are not described as VLAN membership criteria in the provided material.
Q2. What does TDM stand for in the context of VLAN inter‑switch communication?
📖 Explanation: The passage lists three methods for sharing VLAN membership among switches and defines TDM as Time‑Division Multiplexing. The other abbreviations are not mentioned, making Time‑Division Multiplexing the only correct expansion.
Q3. In manual VLAN configuration, the administrator primarily inputs which type of information?
📖 Explanation: Manual configuration is described as the administrator typing port numbers, IP addresses, or other characteristics into the VLAN software. Therefore, IP addresses are the primary data entered, whereas cable length, power usage, and wireless strength are unrelated to the logical VLAN assignment process.
Q4. Which method adds an extra header to a MAC frame to indicate the destination VLAN?
📖 Explanation: The text explains that frame tagging inserts an additional header onto a MAC frame so receiving switches can identify the VLAN. Table maintenance records membership, while automatic and semiautomatic configurations refer to how stations join VLANs, not to modifying the frame itself.
Q5. If a station’s IP address changes from 181.34.23.67 to 181.34.23.72, which VLAN membership outcome is most likely under a static IP‑based VLAN policy?
📖 Explanation: Both addresses appear in the example list for VLAN 1, so a static policy that matches exact IPs would still recognize the new address as a member of VLAN 1. The other options would require a different mapping not indicated in the text.
Q6. Which of the following best describes a logical difference between manual and automatic VLAN configuration?
📖 Explanation: Manual configuration is defined as the administrator typing port numbers or IPs, implying explicit human action for each assignment or migration. Automatic configuration relies on criteria set by the administrator, allowing the system to move stations without further human intervention. The other statements misrepresent the roles of hardware and VLAN identifiers.
Q7. In a network that uses frame tagging, what is the most direct consequence when a frame traverses a trunk link between two switches?
📖 Explanation: Frame tagging adds a header containing the VLAN ID, enabling the downstream switch to know which VLAN the broadcast belongs to. Encryption, MAC replacement, and duplication are not described as functions of frame tagging in the provided material.
Q8. When table maintenance is used, what logical effect does a broadcast from a newly attached station have on the switch’s VLAN table?
📖 Explanation: The passage states that a broadcast frame triggers the switch to create an entry recording the station’s membership. Thus, the broadcast directly leads to a new table entry, whereas discarding, clearing, or converting the frame are not indicated behaviors.
Q9. If a network administrator combines IP‑based, multicast‑based, and manual characteristics for VLAN assignment, which outcome best reflects the resulting flexibility?
📖 Explanation: The text mentions that some vendor software allows characteristics to be combined, letting the administrator choose one or more when installing. Therefore, any station that satisfies any of the selected criteria can be assigned, providing maximum flexibility. The other options contradict the described capability.
Q10. How does the use of Time‑Division Multiplexing (TDM) affect the timing of VLAN information exchange between two switches?
📖 Explanation: TDM works by dividing the communication channel into separate time intervals, each dedicated to a particular VLAN’s information. This prevents collisions and ensures orderly delivery. Encryption, merging, or event‑driven updates are not part of the TDM description in the source material.
Q11. A network uses semiautomatic configuration where initial VLAN assignments are manual. Which logical sequence best describes a user’s experience when changing projects?
📖 Explanation: Semiautomatic configuration is defined as manual initialization followed by automatic migrations. Thus, once the user’s initial VLAN is set, subsequent project changes trigger automatic VLAN reassignment, aligning with the described behavior. Manual re‑assignment, static VLANs, or disconnection do not reflect the semiautomatic model.
Q12. Which analytical comparison correctly contrasts table maintenance and frame tagging methods for VLAN information propagation?
📖 Explanation: Table maintenance creates and shares membership tables at intervals, whereas frame tagging appends a VLAN identifier to each traversing frame. This fundamental difference influences bandwidth usage and processing overhead. The other statements either misstate the mechanisms or claim identical operation, which is inaccurate.
Q13. In a scenario where a trunk link between Switch A and Switch B carries traffic for three VLANs, what is a direct implication of using TDM on that link?
📖 Explanation: TDM allocates distinct time intervals for each VLAN, ensuring that frames from different VLANs do not collide on the shared trunk. This scheduling is essential for maintaining VLAN isolation. Combining frames, ignoring tags, or using separate cables contradict the TDM principle described.
Q14. A VLAN administrator defines the project number as the automatic configuration criterion. Which logical inference can be drawn about station migration when a user switches projects?
📖 Explanation: Automatic configuration reacts to administrator‑defined criteria. By using the project number, the system can detect a change and instantly reassign the station to the VLAN that matches the new project, eliminating the need for manual intervention. The other outcomes ignore the automatic nature of the rule.
Q15. When combining IP‑based and multicast‑based membership characteristics, which conceptual advantage is most significant?
📖 Explanation: The combination leverages two distinct mechanisms: specific unicast IP addresses and multicast group addresses, expanding the ways stations can qualify for VLAN membership. This dual approach enhances flexibility without removing configuration, preventing loops, or mandating a uniform IP range.
Q16. Consider a network where automatic configuration uses the project number, and manual configuration is also applied to certain critical servers. Which analytical outcome best describes the resulting VLAN landscape?
📖 Explanation: The text describes a semiautomatic approach where initialization is manual and migrations are automatic. Extending this, the network can maintain a hybrid model: servers with manual entries remain static, while other stations follow the automatic project‑based rule. The other options either negate the manual role or incorrectly assert universal behavior.
Q17. If Switch A’s VLAN table shows that Station X belongs to VLAN 5, but Switch B’s table does not list Station X, what logical conclusion can be drawn about broadcast delivery to Station X from Switch B?
📖 Explanation: Table maintenance requires periodic exchange of tables. Until Switch B receives an updated table from Switch A, it lacks knowledge of Station X’s membership, so broadcasts destined for VLAN 5 will not be forwarded to Station X. The other options assume automatic updates or disregard VLAN information, which contradict the described process.
Q18. Which of the following statements about VLAN tagging protocols is factually correct?
📖 Explanation: IEEE 802.1Q is the standard that defines a 4‑byte VLAN tag inserted into Ethernet frames, enabling switches to identify VLAN membership. The other statements misrepresent the role of 802.3 (the Ethernet base standard) and 802.11 (wireless), or incorrectly claim that tags are exclusive to wireless links.
Q19. A network engineer observes that after enabling frame tagging, broadcast storms are reduced. Which conceptual explanation best accounts for this observation?
📖 Explanation: By appending VLAN identifiers, each switch can confine a broadcast to its designated VLAN, avoiding the spread of the broadcast to unrelated VLANs. This containment reduces the volume of broadcast traffic, mitigating storms. Encryption, conversion to unicast, or disabling broadcasts are not mechanisms associated with VLAN tagging.
Q20. When an administrator configures a VLAN using both IP address and multicast address criteria, which logical scenario could cause a station to be excluded from the VLAN despite meeting one criterion?
📖 Explanation: If the vendor software is set to require all chosen characteristics (an AND condition), a station must satisfy every selected rule. Thus, meeting only the IP condition while lacking the multicast subscription would prevent inclusion. The other options describe OR logic or automatic overrides, which are not implied by the “combined” description.
Q21. Which analytical assessment correctly identifies a potential drawback of using TDM for VLAN trunking in a high‑traffic environment?
📖 Explanation: Because TDM divides the link into discrete time slices, each VLAN must wait its turn, which can cause noticeable latency, especially when many VLANs contend for bandwidth. The other statements mischaracterize TDM’s impact on latency, configuration, or load balancing.
Q22. In a network employing automatic configuration based on project numbers, what is the most likely consequence if two projects share the same number due to a data entry error?
📖 Explanation: Automatic configuration relies on the project number as a unique identifier. If two distinct projects inadvertently share the same number, the system cannot differentiate them, so all stations will be grouped into a single VLAN, raising possible security and traffic segregation issues. The other outcomes assume error handling not described in the material.
Q23. Which of the following best explains why manual VLAN configuration is considered a logical rather than a physical configuration?
📖 Explanation: The passage explicitly states that manual configuration is logical, meaning the administrator types port numbers, IP addresses, or other characteristics into the VLAN software, leaving the physical cabling unchanged. The other options describe physical alterations, which are not part of the logical configuration process.
Q24. A network designer must decide between frame tagging and table maintenance for inter‑switch VLAN propagation. Which conceptual factor most strongly favors frame tagging?
📖 Explanation: Frame tagging embeds a VLAN identifier directly into each frame, enabling switches to instantly recognize the VLAN on mixed‑VLAN trunks. This per‑frame identification is the primary advantage over table maintenance, which relies on periodic table exchanges and cannot provide immediate per‑frame context. Memory reduction, frame immutability, or broadcast elimination are not the decisive reasons.
Q25. When combining manual, automatic, and multicast‑based characteristics, which logical inference can be drawn about the complexity of the VLAN membership database?
📖 Explanation: Integrating several membership criteria implies that the underlying database must accommodate diverse rule types (IP, multicast groups, manual entries) and include logic to evaluate and prioritize overlapping conditions. Simplifying to a single list, dropping VLAN IDs, or auto‑resolving conflicts without policy would undermine the described flexibility.
Q26. Consider a scenario where a broadcast from Station Y triggers table maintenance on Switch C, but Switch D’s table update interval is significantly longer. What is the most likely impact on VLAN consistency across the network?
📖 Explanation: Because Switch D receives table updates less frequently, there will be a window where it lacks the latest membership entry created by Switch C. During this period, broadcasts intended for Station Y’s VLAN may not be forwarded correctly, leading to temporary inconsistency. The other options either ignore the interval effect or suggest permanent loss.
Q27. A network employing semiautomatic configuration initializes stations manually. If a new station is added without manual entry, what is the most probable outcome under this scheme?
📖 Explanation: Semiautomatic configuration requires manual initialization; without that step, the system lacks the necessary information to assign the station to any VLAN, leaving it unassigned. Automatic joining based on IP or universal inclusion is not part of the described process, and a crash is an unrealistic outcome.
Q28. When using frame tagging, which analytical comparison correctly assesses its effect on bandwidth utilization compared to table maintenance?
📖 Explanation: Frame tagging introduces a small, fixed-size VLAN tag to each frame, resulting in negligible per‑frame overhead. In contrast, table maintenance requires transmitting entire membership tables at intervals, which can be sizable and consume noticeable bandwidth. Therefore, tagging is more bandwidth‑efficient. The other statements incorrectly assess overhead or claim zero usage.
Q29. If a VLAN administrator defines a project number criterion that is numeric, how might the system interpret a project identifier of \0012\ versus \12\ in automatic configuration?
📖 Explanation: Automatic configuration based on numeric criteria typically normalizes values, meaning leading zeros do not affect the numeric interpretation. Consequently, \0012\ and \12\ map to the same project number, placing stations in the same VLAN. Treating them as distinct strings or performing concatenation would contradict standard numeric handling.
Q30. A switch that uses both table maintenance and frame tagging simultaneously must resolve potential conflicts. Which conceptual approach best ensures consistent VLAN forwarding?
📖 Explanation: When both mechanisms are present, the most reliable method is to trust the explicit VLAN identifier embedded in the frame, as it reflects the sender’s intent. Table entries serve as a fallback, but the tag provides definitive per‑frame information, preventing ambiguity. Ignoring tags or random selection would lead to inconsistent forwarding.
Q31. In a network where multicast IP addresses are used as VLAN membership characteristics, which logical inference can be made about the relationship between IP multicast groups and VLAN IDs?
📖 Explanation: The text indicates that some vendors use multicast IP addresses as membership characteristics, implying a mapping where a particular multicast group corresponds to a VLAN. This association lets multicast traffic serve as a criterion for VLAN assignment. The other options deny or misrepresent this linkage.
Q32. When an administrator reconfigures VLAN settings to add a new characteristic, what is the most likely effect on existing stations that already meet the previous criteria?
📖 Explanation: Reconfiguration typically augments the existing criteria; stations that already satisfy the original rules continue to belong to their VLANs unless the new rule introduces a conflict. This approach avoids unnecessary disruption. Immediate removal, forced adoption, or table resets would cause unnecessary instability and are not implied by the described reconfiguration capability.