🎓 BookMCQ
← Back to 19. Network Layer Protocols

📝 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.
10
Easy
13
Medium
9
Hard

📝 All IPv4 datagram format header fields MCQs

Q1. Which of the following is a membership characteristic used to assign stations to a VLAN?

A.IP address ✅
B.MAC address
C.Subnet mask
D.Port speed
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.Time‑Division Multiplexing ✅
B.Transmission Data Management
C.Token Data Mode
D.Trunk Distribution Method
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.IP addresses ✅
B.Physical cable length
C.Power consumption
D.Wireless signal strength
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.Frame Tagging ✅
B.Table Maintenance
C.Automatic Configuration
D.Semiautomatic Configuration
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.Remains in VLAN 1 ✅
B.Moves to VLAN 2
C.Becomes unassigned
D.Joins all VLANs
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.Manual requires administrator input for each change, automatic reacts to predefined criteria ✅
B.Manual uses hardware switches, automatic uses software only
C.Manual assigns VLAN IDs, automatic does not use VLAN IDs
D.Manual works only on routers, automatic works only on switches
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.The frame carries a VLAN identifier that the receiving switch can interpret ✅
B.The frame’s payload is encrypted for security
C.The frame’s source MAC address is replaced with the trunk’s MAC
D.The frame is duplicated for redundancy
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.An entry for that station’s VLAN membership is created ✅
B.The switch discards the broadcast as unknown
C.All existing VLAN entries are cleared
D.The broadcast is converted into a unicast frame
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.Stations can be placed in a VLAN by any of the three criteria ✅
B.Only the first criterion defined is used
C.The combination forces all stations to belong to every VLAN
D.The system rejects mixed criteria and defaults to manual only
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.It allocates distinct time slots for each VLAN’s data, preventing overlap ✅
B.It encrypts VLAN data to hide timing information
C.It merges all VLAN traffic into a single time slot
D.It requires each switch to send updates only when a change occurs
💡 Difficulty: easy | ✅ Correct: A

📖 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?

A.The user’s VLAN changes automatically after the initial manual assignment ✅
B.The user must manually re‑assign the VLAN each time
C.The VLAN never changes regardless of project changes
D.The user’s device disconnects from the network
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.Table maintenance relies on periodic table exchanges, while frame tagging embeds VLAN IDs in each frame ✅
B.Both methods require the same amount of bandwidth and processing
C.Table maintenance uses MAC addresses as tags, whereas frame tagging uses IP addresses
D.Both methods are identical in operation and effect
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.The link must schedule non‑overlapping time slots for each VLAN’s frames ✅
B.The link will combine all VLAN frames into a single broadcast
C.The link will ignore VLAN tags and forward frames blindly
D.The link will require a separate physical cable for each VLAN
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.The station will automatically move to the VLAN associated with the new project number ✅
B.The station will retain its current VLAN until manually reconfigured
C.The station will be placed in a default VLAN unrelated to the project number
D.The station will be disconnected until the administrator confirms the change
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.It allows both unicast and multicast traffic to be used for VLAN membership decisions ✅
B.It reduces the need for any configuration at all
C.It eliminates the possibility of VLAN loops
D.It forces all devices to use the same IP address range
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.A hybrid environment where most stations move automatically, while critical servers stay fixed unless manually changed ✅
B.All stations, including critical servers, will migrate automatically regardless of manual settings
C.Manual configuration overrides automatic configuration for every station
D.Automatic configuration disables manual configuration for the entire network
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.Station X will not receive broadcasts from Switch B until the tables are synchronized ✅
B.Station X will still receive broadcasts because VLAN IDs are ignored
C.Switch B will automatically add Station X to its table upon receiving any frame
D.Broadcasts will be duplicated to all VLANs to ensure delivery
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.IEEE 802.1Q adds a 4‑byte tag to Ethernet frames ✅
B.IEEE 802.3 removes VLAN information from frames
C.IEEE 802.11 uses VLAN tags in the same way as Ethernet
D.VLAN tags are only used on wireless links
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.Tagging allows switches to limit broadcasts to the appropriate VLAN, preventing unnecessary propagation across all ports ✅
B.Tagging encrypts broadcast frames, making them invisible to other switches
C.Tagging converts broadcasts into unicast frames directed to a single port
D.Tagging disables broadcast functionality entirely
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.The station’s IP address matches but its multicast subscription does not, and the software requires all selected criteria to be satisfied ✅
B.The station’s multicast address matches but its IP address is outside the specified range, and the software uses an OR logic
C.The station satisfies either criterion, guaranteeing inclusion regardless of the other
D.The software automatically overrides manual criteria with default settings
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.TDM can introduce latency because each VLAN must wait for its assigned time slot, reducing overall throughput ✅
B.TDM eliminates all latency by sending all VLANs simultaneously
C.TDM requires no additional configuration, making it unsuitable for complex networks
D.TDM automatically balances load across VLANs without any human intervention
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.Stations from both projects will be placed in the same VLAN, potentially causing security concerns ✅
B.The network will reject the duplicate project numbers and halt all VLAN assignments
C.Stations will be evenly split between two separate VLANs despite sharing the same number
D.The switch will generate an error and reboot
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.It assigns stations to VLANs through software settings without altering cabling ✅
B.It requires physically rewiring the network to separate VLANs
C.It changes the electrical characteristics of the ports
D.It modifies the hardware firmware of the switches
💡 Difficulty: medium | ✅ Correct: A

📖 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?

A.The need for per‑frame VLAN identification to support mixed‑VLAN trunks ✅
B.The desire to minimize the amount of data stored in each switch’s memory
C.The requirement to avoid any changes to Ethernet frames
D.The intention to eliminate all broadcast traffic
💡 Difficulty: hard | ✅ Correct: A

📖 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?

A.The database must support multiple matching rules and possibly prioritize them ✅
B.The database can be reduced to a single simple list of IP addresses
C.The database will no longer need to store any VLAN IDs
D.The database will automatically resolve conflicts without administrator input
💡 Difficulty: hard | ✅ Correct: A

📖 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?

A.Temporary inconsistency where Switch D may not recognize Station Y’s membership until the next update ✅
B.Immediate synchronization between Switch C and Switch D regardless of update intervals
C.Permanent loss of Station Y’s VLAN information on Switch D
D.Switch D will discard the broadcast entirely
💡 Difficulty: hard | ✅ Correct: A

📖 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?

A.The station will remain unassigned until an administrator manually adds it ✅
B.The station will automatically join a default VLAN based on its IP address
C.The station will be placed in all VLANs by default
D.The station will cause the network to crash
💡 Difficulty: hard | ✅ Correct: A

📖 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?

A.Tagging adds minimal overhead per frame, whereas table maintenance consumes additional bandwidth during periodic table exchanges ✅
B.Tagging consumes more bandwidth than table maintenance because of large headers
C.Both methods use identical amounts of bandwidth
D.Table maintenance eliminates any bandwidth usage altogether
💡 Difficulty: hard | ✅ Correct: A

📖 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?

A.Both are treated as the same numeric value, so stations with either identifier join the same VLAN ✅
B.\0012\ is considered a different string and creates a separate VLAN
C.The system rejects identifiers with leading zeros
D.The VLAN ID is calculated by concatenating the digits, resulting in a different VLAN
💡 Difficulty: hard | ✅ Correct: A

📖 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?

A.Prioritize the VLAN ID from the frame tag over table entries when both exist ✅
B.Ignore the frame tag and rely solely on the table entries
C.Merge the two methods by creating a new VLAN that combines both sources
D.Randomly select one method for each frame
💡 Difficulty: hard | ✅ Correct: A

📖 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?

A.Each VLAN can be associated with a specific multicast group, allowing multicast traffic to define membership ✅
B.Multicast groups are unrelated to VLAN IDs and cannot influence membership
C.VLAN IDs replace multicast addresses entirely
D.Multicast addresses automatically generate new VLAN IDs without administrator input
💡 Difficulty: hard | ✅ Correct: A

📖 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?

A.They remain in their current VLANs unless the new characteristic conflicts, preserving stability ✅
B.They are immediately removed from all VLANs until manually reassigned
C.All stations are forced to adopt the new characteristic regardless of prior membership
D.The switch resets all VLAN tables to default values
💡 Difficulty: hard | ✅ Correct: A

📖 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.

🔗 Related Topics (MCQs)