200-201 practice question 7 of 35

What is the difference between deep packet inspection and stateful inspection?

Full set: 505 questions
Answer options
A: Deep packet inspection is more secure than stateful inspection on Layer 4
B: Stateful inspection verifies contents at Layer 4 and deep packet inspection verifies connection at Layer 7
C: Stateful inspection is more secure than deep packet inspection on Layer 7
D: Deep packet inspection allows visibility on Layer 7 and stateful inspection allows visibility on Layer 4 Correct answer
Correct Answer:
D. Deep packet inspection allows visibility on Layer 7 and stateful inspection allows visibility on Layer 4
Explanation

Stateful inspection, also known as stateful packet inspection, operates primarily at the Network (Layer 3) and Transport (Layer 4) of the OSI model. It maintains a state table to track active connections, making decisions based on the context of the traffic flow (e.g., TCP connection states). Deep Packet Inspection (DPI), a more advanced technology often found in Next-Generation Firewalls (NGFWs), goes further by examining the actual data payload of a packet. This allows it to inspect traffic at the Application Layer (Layer 7), identifying specific applications, services, and potential malicious content that a stateful firewall cannot see.

Why Incorrect

A. DPI is more secure overall due to its Layer 7 capabilities, but this statement incorrectly limits the comparison to Layer 4, where stateful inspection is the foundational technology.
B. This statement is inaccurate. Stateful inspection verifies the state of a connection at Layer 4, not its "contents," while DPI inspects the contents at Layer 7.
C. This is incorrect. Stateful inspection lacks visibility into Layer 7; therefore, it cannot be more secure than DPI at that layer.

References

1. Official Vendor Documentation: Cisco

"What Is a Next-Generation Firewall (NGFW)?"

Cisco.com. The document states

"While first-generation stateful firewalls only look at the header of a packet (Layers 3 and 4 information)

a next-generation firewall (NGFW) looks at the entire packet

including the header and the payload of the packet (Layers 3-7 information)." This directly supports that stateful inspection is a Layer 4 function and DPI (a feature of NGFW) provides Layer 7 visibility.

(Source: Cisco official website

article on NGFW technology fundamentals).

2. Official Vendor Documentation: Santos

O. (2020). CCNA CyberOps Associate CBROPS 200-201 Official Cert Guide. Cisco Press. In Chapter 10

"Network Security Infrastructure

" the text explains

"A stateful firewall... keeps track of the state of network connections... traveling across it." It later describes NGFWs as having "deep packet inspection (DPI) capabilities... to enforce policies at the application layer (Layer 7)." This clearly distinguishes stateful inspection (Layer 4 state) from DPI (Layer 7 visibility).

(Reference: Chapter 10

Sections "Stateful Firewalls" and "Next-Generation Firewalls (NGFWs) and Next-Generation Intrusion Prevention Systems (NGIPSs)").

3. Academic Publication: Al-shara

Z. A.

et al. (2015). "Survey of firewall technologies." Proceedings of the 2015 International Conference on Communications

Management and Information Technology (ICCMIT). This paper defines a stateful inspection firewall as one that "operates at layer 3 and 4 of OSI model" and contrasts it with application-level firewalls that use DPI to "examine the payload of the packet at the application layer."

(DOI: 10.1016/j.procs.2015.04.102

Section 3. "Firewall Technologies").

Scroll to Top