200-201 practice question 7 of 35
What is the difference between deep packet inspection and stateful inspection?
Full set: 505 questionsStateful 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.
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.
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").
Keep practicing
Take the free 200-201 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 200-201 practice questions
- Question 1What is a difference between SIEM and SOAR?
- Question 2What is the role of indicator of compromise in an investigation?
- Question 3Which security model assumes an attacker within and outside of the network and enforces s…
- Question 4Which of these describes SOC metrics in relation to security incidents?
- Question 5Which type of data collection requires the largest amount of storage space?
- Question 6Which option describes indicators of attack?
