CNSP practice question 14 of 15

How many usable TCP/UDP ports are there?

Full set: 60 questions

Domain Network Security Protocols

Answer options
A: 65536
B: 65535 Correct answer
C: 63535
D: 65335
Correct Answer:
B. 65535
Explanation

TCP and UDP identify communicating applications with a 16-bit “port” field. A 16-bit unsigned integer can encode 0–65 535 inclusive. Port 0 is reserved by IANA and not used for normal connections, leaving 65 535 ports (1-65 535) that are actually usable for services and ephemeral client bindings. Therefore, the number of usable TCP/UDP ports is 65 535.

Why Incorrect

A. 65 536 Includes port 0, but 0 is reserved—not normally usable.
C. 63 535 Arithmetic error; far fewer than the 16-bit capacity minus the reserved value.
D. 65 335 Transposed digits; does not equal 2^16 – 1 usable ports.

References

1. IETF RFC 6335

§2.1 “Port Numbers” – 16-bit range 0–65 535; port 0 reserved (https://www.rfc-editor.org/rfc/rfc6335).

2. IETF RFC 9293 (TCP)

§3.1 Header Format – Source/Destination Port fields are 16 bits (p.20).

3. IETF RFC 768 (UDP)

§1 – “Source Port

Destination Port: 16 bits” defining same range.

4. IANA Service Name and Port Number Registry

Introduction – notes port 0 as “reserved.”

5. MIT OpenCourseWare 6.033 “Computer Systems Engineering

” Lecture notes “Networking: TCP & UDP” – slide on 16-bit port field

reserving 0.

Scroll to Top