GPEN · Question #218
In which layer of the OSI model does a sniffer operate?
The correct answer is D. Data link layer. Network sniffers operate at the Data Link layer (Layer 2) because they capture raw Ethernet frames directly from the network interface by placing the NIC in promiscuous mode.
Question
In which layer of the OSI model does a sniffer operate?
Options
- ANetwork layer
- BSession layer
- CPresentation layer
- DData link layer
How the community answered
(22 responses)- A5% (1)
- B5% (1)
- C14% (3)
- D77% (17)
Why each option
Network sniffers operate at the Data Link layer (Layer 2) because they capture raw Ethernet frames directly from the network interface by placing the NIC in promiscuous mode.
The Network layer (Layer 3) handles IP routing and logical addressing; sniffers do not operate here because they capture frames before IP processing occurs.
The Session layer (Layer 5) manages dialog control between applications and has no role in raw packet capture at the hardware/frame level.
The Presentation layer (Layer 6) handles data formatting and encryption/decryption, which is above the frame-capture level where sniffing takes place.
The Data Link layer (Layer 2) is where sniffers operate because they interact with the network interface card at the frame level, reading all frames traversing the wire regardless of destination MAC address. Placing the NIC in promiscuous mode allows the sniffer to capture every frame on the segment, including those not addressed to the host. This raw frame capture is inherently a Layer 2 function.
Concept tested: OSI layer at which network sniffers operate
Source: https://learn.microsoft.com/en-us/windows-hardware/drivers/network/ndis-packet-coalescing
Topics
Community Discussion
No community discussion yet for this question.