CNSP practice question 2 of 15

What is the response from a closed UDP port which is not behind a firewall?

Full set: 60 questions

Domain Network Security Protocols

Answer options
A: ICMP message showing Destination Unreachable Correct answer
B: A RST packet
C: No response
D: None of the above
Correct Answer:
A. ICMP message showing Destination Unreachable
Explanation

UDP has no built-in session control. When a host receives a UDP datagram addressed to a port on which no application is listening and the host is not filtering traffic, it MUST send an ICMP “Destination Unreachable – Port Unreachable” (Type 3, Code 3) message back to the sender. This behaviour is mandated by the Internet standards (RFC 1122 §3.2.2.1, repeating RFC 792). Therefore the visible response from a closed, un-firewalled UDP port is an ICMP Destination Unreachable message.

Why Incorrect

B. RST packet – RST is a TCP-only control flag; UDP has no RST mechanism.
C. No response – “No response” occurs when a firewall silently drops the packet; an unfiltered host must reply with ICMP.
D. None of the above – Option A is correct per protocol standards, so this choice is invalid.

References

1. RFC 1122: “Requirements for Internet Hosts – Communication Layers”

§3.2.2.1

p. 34 (ICMP Port Unreachable requirement).

2. RFC 792: “Internet Control Message Protocol”

pp. 7-9 (Type 3

Code 3 definition).

3. MIT OpenCourseWare 6.033 “Computer Systems Engineering”

Lecture notes: “Transport Protocols”

slide “UDP Scanning—ICMP Port Unreachable from Closed Ports”.

4. Stanford CS244 Lecture 4

Transport Protocols

section “UDP behaviour on closed ports” (course handout

p. 6).

Scroll to Top