ExamShortcut

Networking: Devices, Topologies & Protocols

🔒 Log in to track
high importance⚡ 12 shortcuts5 subtopics
All subtopics·Subtopic 5 of 5

Protocols and port numbers; TCP vs UDP

🔒 Log in to track
⏱ 4 min read🧩 6 question types🎯 17 practice Q
The idea in one minute

The IP address finds the computer. The port number finds the service on it. Learn the main ports: HTTP 80, HTTPS 443, FTP 21, SSH 22, Telnet 23, SMTP 25, DNS 53, POP3 110, IMAP 143. TCP is reliable and connection-oriented. UDP is fast and connectionless.

01

Ports, numbered doors on a machine

The IP address finds the computer. The port number finds the service on it. Learn this classic set.

ProtocolPortJob
HTTP80web pages (plain)
HTTPS443web pages, encrypted with TLS/SSL
FTP21 (control), 20 (data)file transfer
SSH22secure remote login
Telnet23remote login, not encrypted
SMTP25sending e-mail
DNS53name to IP resolution
DHCP67 / 68automatic IP assignment
POP3110receiving e-mail (download)
IMAP143receiving e-mail (sync)
SNMP161network management
RDP3389Windows remote desktop

Tip: 21, 22, 23 climb in order: FTP, SSH, Telnet. Then 25 is SMTP. 80 and 443 are the web pair. 110 and 143 bring mail in.

02

TCP vs UDP

TCPUDP
Full formTransmission Control ProtocolUser Datagram Protocol
Connectionconnection-oriented (handshake first)connectionless (just send)
Deliveryguaranteed and orderedno guarantee
Speedslowerfaster, low overhead
Used byweb, e-mail, file transferDNS queries, DHCP, streaming, VoIP, gaming

The TCP handshake has three steps: SYN, SYN-ACK, ACK.

Example: Live cricket streaming uses UDP. One lost frame is better than a paused match.

03

One web visit, step by step

  1. DNS turns the name into an IP address.
  2. TCP opens the connection.
  3. HTTPS (port 443) asks for the page and delivers it encrypted.

For e-mail, SMTP sends. POP3 or IMAP receive.

04

Reading a protocol question

Decide what the question asks. Then use the matching tool.

  • Direction: send mail is SMTP. Receive mail is POP3 or IMAP.
  • Number: recall the port anchors. If unsure, eliminate by neighbourhood.
  • Style: reliable means TCP. Fast means UDP.
  • Full form: spell it out from the name.

Tip: For TCP or UDP, ask what a lost packet costs. A corrupted file is bad, so use TCP. One blurred video frame is fine, so use UDP.

05

Full forms to memorise

  • HTTP: HyperText Transfer Protocol. HTTPS: secure HTTP over TLS/SSL.
  • FTP: File Transfer Protocol. SMTP: Simple Mail Transfer Protocol.
  • POP: Post Office Protocol. IMAP: Internet Message Access Protocol.
  • DNS: Domain Name System. DHCP: Dynamic Host Configuration Protocol. SSH: Secure Shell.

Watch: Telnet sends everything in plain text. SSH (22) is the encrypted replacement.

06

Question types you will see

Each type: how to recognise it, the method step by step, and one question to try.

Type 1very common4 practice Q

Port-number matching

How to spot it:

HTTPS works on which port, the port of SMTP, FTP, DNS or POP3, or a matched pair with one number shifted.

Method
  1. Recall the anchors: HTTP 80, HTTPS 443, FTP 21, SSH 22, Telnet 23, SMTP 25, DNS 53, POP3 110, IMAP 143.

  2. Watch for 443 given to HTTP or 80 given to HTTPS.

  3. Use the climbing run 21, 22, 23.

  4. Eliminate by neighbourhood if unsure.

Why it works:

Port numbers are fixed facts, so anchors beat guessing.

Try this

HTTPS uses which port number by default?

Show solution
  1. HTTPS is secure web traffic.

  2. The port is 443. Plain HTTP uses 80.

Answer

443

Type 2very common4 practice Q

TCP vs UDP selection

How to spot it:

Which protocol is used for live streaming or file transfer, which is connection-oriented, or reliability-versus-speed statements.

Method
  1. Ask what a lost packet would cost.

  2. A corrupted file is costly: TCP.

  3. One blurred frame is fine: UDP.

  4. Live streaming, gaming, VoIP, DNS queries: UDP.

Why it works:

Reliability needs TCP. Speed needs UDP.

Try this

Which transport protocol suits a live cricket stream?

Show solution
  1. Speed matters more than perfect delivery.

  2. TCP retransmission would only pause the match.

Answer

UDP

Type 3common3 practice Q

Protocol purpose identification

How to spot it:

Which protocol transfers files, sends e-mail or resolves names. It is purpose matching.

Method
  1. File transfer: FTP. Send mail: SMTP.

  2. Receive mail: POP3 or IMAP. Web pages: HTTP or HTTPS.

  3. Names to IPs: DNS. Remote login: Telnet (plain) or SSH (secure).

  4. DHCP assigns IP addresses.

Why it works:

Each protocol was built for one purpose.

Try this

Which protocol is used to transfer files between computers?

Show solution
  1. File transfer is the purpose.

  2. FTP uses port 21 for control and 20 for data.

Answer

FTP (File Transfer Protocol)

Type 4common3 practice Q

Protocol full forms and security

How to spot it:

Full form of FTP, TCP, UDP or DHCP, which remote-login protocol is secure, or Telnet-versus-SSH statements.

Method
  1. Spell out the full form from the name.

  2. Telnet (23) sends plain text.

  3. SSH (22) is the encrypted replacement.

  4. HTTPS is HTTP over TLS/SSL.

Why it works:

The S in SSH and HTTPS means secure.

Try this

Which protocol provides an encrypted remote login?

Show solution
  1. Telnet on port 23 sends passwords as plain text.

  2. SSH is the encrypted one.

Answer

SSH (Secure Shell), port 22

Type 5common

Mail protocol direction

How to spot it:

Which protocol sends mail, which downloads it, or which keeps mail in sync across devices.

Method
  1. Sending: SMTP (port 25).

  2. Downloading: POP3 (port 110).

  3. Syncing: IMAP (port 143).

  4. All three run over TCP.

Why it works:

Sending and receiving use different protocols.

Try this

Which protocol is used to send e-mail?

Show solution
  1. Sending is the direction asked.

  2. SMTP is the sender; POP3 and IMAP receive.

Answer

SMTP (port 25)

Type 6occasional

Less common ports and services

How to spot it:

Ports 67/68, 161 or 3389, or which service uses them.

Method
  1. DHCP uses 67 and 68.

  2. SNMP (network management) uses 161.

  3. RDP (Windows remote desktop) uses 3389.

  4. FTP data port is 20.

Why it works:

These ports appear less often but are fixed facts.

Try this

Windows Remote Desktop uses which port?

Show solution
  1. RDP means Remote Desktop Protocol.

  2. Its port is 3389.

Answer

3389

07

Shortcuts that save time

⚡ Port anchors

Memorise six first: 80 HTTP, 443 HTTPS, 25 SMTP, 53 DNS, 110 POP3, 21 FTP. Then 22 SSH and 23 Telnet. Telnet is the insecure one.

Example

What is the default port of HTTPS?

Show solution
  1. HTTPS is the secure web protocol.

  2. Its port is 443.

Answer

443

⚡ TCP tracks, UDP does not

TCP tracks every packet, so it is reliable but slower. UDP is unreliable but quick. 'Guaranteed delivery' in a question means TCP.

Example

Live cricket video streaming mainly uses which protocol?

Show solution
  1. Speed matters more than perfect delivery.

  2. Retransmission would pause the match.

Answer

UDP

08

Mistakes to avoid

Where most students lose marks on this subtopic.

Mistake 01

Giving HTTP the port 443.

443 is HTTPS. Plain HTTP is 80.

Mistake 02

Choosing TCP for live streaming.

The expected answer is UDP, because speed comes first.

Mistake 03

Saying Telnet is secure.

SSH (22) is encrypted. Telnet (23) sends plain text.

Mistake 04

Using SMTP to receive mail.

SMTP sends mail. POP3 and IMAP receive it.

09

Quick revision

Read this the night before the exam.

  • HTTP 80, HTTPS 443, FTP 21, SSH 22, Telnet 23, SMTP 25, DNS 53, POP3 110, IMAP 143.

  • TCP is reliable and connection-oriented (web, mail, FTP). UDP is fast and connectionless (streaming, games, VoIP).

  • Telnet is plain text. SSH (22) is its encrypted replacement.

  • HTTPS is HTTP plus TLS/SSL encryption.

  • SMTP sends mail. POP3 and IMAP receive mail.

  • DNS resolves names to IP addresses. DHCP assigns IP addresses.

10

Practice: 17 questions

Sets of 10, mixed across the question types above. Every answer has a step-by-step explanation.

Topic test · 10 questions

Suggested time 5 min · wrong answers go to your mistake notebook automatically.