Protocols and Ports
1. A protocol = a set of rules; a port = a service's number
A protocol = a set of rules: what format and order data is sent in, how mistakes are caught; the “shared language” of two devices. Examples: HTTP, FTP, SMTP, TCP/IP.
A port number = a 16-bit number (0–65535) saying which service on the computer is wanted. IP address + port = a socket, e.g. 192.168.1.5:80. The IP is the house address, the port is the room number.
| Range | Ports |
|---|---|
| Well-known | 0–1023: HTTP, FTP, SMTP… |
| Registered | 1024–49151: MySQL 3306, RDP 3389 |
| Dynamic | 49152–65535: a client's temporary ports |
- 2. TCP and UDP: two ways to deliver
- 3. Web protocols: HTTP and HTTPS
- 4. Moving files and working on a far-away computer
- 5. E-mail: SMTP sends, POP3/IMAP fetch
- 6. Helper protocols: IP, ARP, ICMP, SNMP and others
- 7. Port numbers: the full list
- ⚠️ Where students go wrong most
The full note, 7 try-it tools and all 75 MCQs of this chapter come with the full subject: ₹99
or ⭐ all 14 subjects + every PYQ for ₹599 a year (Full GS Pass)
How exams asked it
- A secure method for encrypting e-mails to protect the content? S/MIME (SSC CGL 2025 Tier-II)
- Full form of HTTP? Hyper Text Transfer Protocol · Which protocol gives e-mail among different hosts? SMTP (Allahabad HC)
- FTP stands for? File Transfer Protocol · An HTTP request contains how many parts? 3 · A ____ is a set of rules? Protocol (Allahabad HC)
Check yourself
1. For a secure (encrypted) remote login:
Answer: C. SSH · SSH (port 22) encrypts everything; Telnet (23) sends plain text.
2. The default port of HTTPS:
Answer: B. 443 · 80 = HTTP, 25 = SMTP, 110 = POP3.
Asked in the exam (PYQ)
Which of the following is a secure method for encrypting emails to protect the content from unauthorized access?
Answer: B. S/MIME · S/MIME (Secure/Multipurpose Internet Mail Extensions) uses public-key certificates to encrypt and digitally sign the email message itself, end to end. SMTP sends mail and IMAP retrieves mail; neither encrypts content. SSL/TLS only protects the connection, not the stored message.
More PYQs from this chapter
- What is the full form of HTTP ?Allahabad High Court RO/ARO · 6 January 2022 · RO
- Which protocol provides E-mail facility among different hosts?Allahabad High Court RO/ARO · 5 January 2022 · RO
- FTP stands for :Allahabad High Court RO/ARO · 11 December 2021 · Shift 1
- An HTTP request contains ____ parts.Allahabad High Court RO/ARO · 11 December 2021 · Shift 2
- A ____ is a set of rules.Allahabad High Court RO/ARO · 11 December 2021 · Shift 2
- Which of the following is NOT a binary number?Allahabad High Court RO/ARO · 8 January 2017 · RO
All 19 PYQs of this chapter are on the mind map and with the PYQ Pass.
