nerdexam
GIAC

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.

Penetration Testing Foundations & Reconnaissance

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)
  • A
    5% (1)
  • B
    5% (1)
  • C
    14% (3)
  • D
    77% (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.

ANetwork layer

The Network layer (Layer 3) handles IP routing and logical addressing; sniffers do not operate here because they capture frames before IP processing occurs.

BSession layer

The Session layer (Layer 5) manages dialog control between applications and has no role in raw packet capture at the hardware/frame level.

CPresentation layer

The Presentation layer (Layer 6) handles data formatting and encryption/decryption, which is above the frame-capture level where sniffing takes place.

DData link layerCorrect

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

#network sniffing#OSI model#data link layer#packet capture

Community Discussion

No community discussion yet for this question.

Full GPEN Practice