Security Architecture
A firewall filters traffic by source and destination IP address, port number and TCP session state. At which OSI layer does it operate?
Show the answer
Correct answerA. Layer 4
AWhy this is right: Transport layer covers TCP/UDP ports and session state, which is what this firewall uses.
BWhy not this: Application layer firewalls inspect content such as URLs and commands, which goes beyond ports and state.
CWhy not this: Network layer covers IP addresses only; filtering on ports and session state is transport-layer.
DWhy not this: Data link layer deals with MAC addresses and frames, not ports or TCP session state.
A Layer 4 firewall works at the transport layer, using ports and TCP or UDP session state alongside IP addresses. A Layer 7 firewall would go further and inspect application content such as URLs or commands.