Practice free →
HomeGATE CSEcomputerscienceComputer Networks › The PORT NUMBER range is

The PORT NUMBER range is

A0 to 255
B0 to 1023 only
C0 to 65535 (16-bit)
D0 to 4294967295
Answer & Solution
Correct answer: C. 0 to 65535 (16-bit)
1. TCP and UDP use 16-bit port numbers, ranging from 0 to $2^{16}-1 = 65535$. 2. Conventional ranges: - 0-1023: WELL-KNOWN ports (privileged, OS-restricted). E.g. HTTP=80, HTTPS=443, FTP=21. - 1024-49151: REGISTERED ports (e.g. PostgreSQL=5432). - 49152-65535: DYNAMIC/EPHEMERAL ports (used by clients). 3. Option A is only the well-known well-known range. Option B is well-known only. Option D is a 32-bit range (not used for ports). _Source: RFC 1180 "A TCP/IP Tutorial", §7-8 (TCP + Network Applications, port numbers)._
Solve this in the app — GATE CSE practice & 24k+ MCQs →
Related questions