ISC2 Systems Security Certified Practitioner (SSCP) free question 8 / 10 · Domain 6: Network and Communications Security
A firewall rule allows traffic only by IP address and TCP port number. In the TCP/IP layering that RFC 1122 describes, which layers does the rule use?
- The transport layer for the address and the IP layer for the port, because the order of headers is reversed
- The application layer for both, because a rule is written by an administrator
- The IP layer for the address and the transport layer for the port, because ports belong to TCP
- The link layer for the address and the application layer for the port, because both are local values
Show the answer and explanation
Answer: C
Why this is correct
RFC 1122 defines requirements for Internet host software and covers the communications protocol layers: the link layer, the IP layer and the transport layer, with a companion document for the application and support protocols. An IP address is carried in the IP header, which belongs to the IP layer, and a TCP port number is carried in the TCP header, which belongs to the transport layer. A rule that filters on both therefore works across the IP and transport layers, and an application-level inspection would be a separate function above them.
Why the other options are wrong
"The link layer for the address and the application layer for the port, because both are local values" … IP addresses are carried at the IP layer. Link layer addresses are different values, and TCP port numbers are part of the transport layer, not the application layer.
"The transport layer for the address and the IP layer for the port, because the order of headers is reversed" … The IP header carries the address and the TCP header carries the port. The layers are not the other way round.
"The application layer for both, because a rule is written by an administrator" … Who writes the rule does not decide the layer. The address and the port are carried in the IP and TCP headers, below the application.
Key points
TCP/IP layers: link, IP (internet), transport, application. Addresses live at the IP layer, ports at the transport layer.