Menu

Important Protocols and Port Numbers: Fast Revision Notes for IBPS SO IT 2026

Jitendra Chadar
October 9, 2026
18 min read
Computer Networks
Important Protocols and Port Numbers: Fast Revision Notes for IBPS SO IT 2026

Network protocols are the rules that let devices exchange data, and port numbers are the addresses that tell a device which service should receive that data. For IBPS SO IT, RRB Scale II IT, and SEBI Grade A IT, questions on this topic come from several layers: application protocols like HTTP and DNS, transport protocols like TCP and UDP, and network layer protocols like ICMP and OSPF.

This guide organises the important protocols by OSI layer, so you can recall what each one does, which port it uses (if any), and whether it runs over TCP, UDP, or directly over IP.

Fast Memory Trick: Port = which service on the host · IP protocol number = which protocol is inside the IP packet · ICMP and OSPF = no ports at all

Quick Answer: Most Tested Ports

If you only have two minutes, learn this table first.

PortProtocolTransport
21FTP (control)TCP
22SSH / SFTPTCP
23TelnetTCP
25SMTPTCP
53DNSUDP and TCP
67 / 68DHCP server / clientUDP
80HTTPTCP
110POP3TCP
143IMAPTCP
161/162SNMP / SNMP TrapUDP
179BGPTCP
443HTTPSTCP (UDP for HTTP/3)
520RIPUDP
3389RDPTCP

Quick Revision

  • Port numbers range from 0 to 65535: well-known (0 to 1023), registered (1024 to 49151), dynamic (49152 to 65535).
  • These are defaults. Real systems can be configured to use other ports.
  • Exam keyword: "default port of X" → think of the table above.

Important Protocols by OSI Layer

The OSI model is a seven-layer reference model that describes how data moves between devices. Knowing which layer a protocol belongs to helps you answer "at which layer does X work?" questions.

OSI LayerMain FunctionImportant Protocols and Examples
ApplicationNetwork services for applicationsHTTP, HTTPS, DNS, DHCP, FTP, SMTP, POP3, IMAP, SSH, SNMP
PresentationData representation and encryptionEncoding, compression, TLS functions
SessionManages communication sessionsSession setup, maintenance, and teardown
TransportEnd-to-end deliveryTCP, UDP
NetworkLogical addressing and routingIP, ICMP, IGMP, OSPF
Data LinkDelivery over a local linkEthernet, PPP
PhysicalRaw bit transmissionCables, radio signals

ARP sits between the Data Link and Network layers. Many textbooks list it at the Network layer, others at Data Link. In an MCQ, follow the option the question expects, and do not assume every protocol fits neatly into one layer.

Quick Revision

  • Application layer = HTTP, DNS, DHCP, SMTP, FTP, SSH.
  • Transport layer = TCP and UDP.
  • Network layer = IP, ICMP, IGMP, OSPF (and ARP in many textbooks).

IP Address vs Port Number vs IP Protocol Number

These three terms identify different things and are not interchangeable.

TermWhat It IdentifiesExample
IP addressA network interface, used for routing192.168.1.10
TCP/UDP portAn application endpoint at the transport layerTCP port 443
IP protocol numberThe protocol carried inside an IP packetTCP = 6, UDP = 17

Example: When you open an HTTPS website, the server listens on TCP port 443, and the IP header's protocol field says 6 (TCP). Both numbers appear in the same packet, but they mean different things.

Q: If a question asks for the port of HTTPS and the protocol number of TCP, are they the same kind of number? A: No. HTTPS uses port 443, which identifies a service. TCP is protocol number 6, which identifies what the IP packet carries.

Quick Revision

  • Port = which service. Protocol number = which protocol inside IP.
  • Exam keyword: "protocol field in the IP header" → think protocol number.
  • Exam keyword: "default port" → think port number.

Application Layer Protocols and Port Numbers

Application layer protocols are the protocols that provide network services directly to users and applications. Most port-number questions come from this layer. The tables below list standard defaults. The IANA Service Name and Port Number Registry is the authoritative reference.

Web and Remote Access

ProtocolPortTransportFunction
HTTP80TCPWeb communication
HTTPS443TCPSecure web communication
SSH22TCPSecure remote login
Telnet23TCPRemote terminal, no built-in encryption
RDP3389TCP and UDPRemote desktop

HTTP/3 runs over QUIC, which uses UDP port 443. So HTTPS is not always TCP.

File Transfer and Email

ProtocolPortTransportFunction
FTP (control)21TCPCommands and control
FTP (data)20TCPData in active mode
SFTP22TCPFile transfer over SSH
TFTP69UDPSimple file transfer, no authentication
SMTP25TCPMail transfer between servers
SMTP Submission587TCPMail submission from clients
SMTPS465TCPSMTP over implicit TLS
POP3110TCPMail retrieval
POP3S995TCPPOP3 over TLS
IMAP143TCPMail access and sync
IMAPS993TCPIMAP over TLS

Q: Which port does SFTP use? A: Port 22, because SFTP runs over SSH.

Q: What is the difference between SMTP, POP3, and IMAP? A: SMTP sends or relays email. POP3 and IMAP are used to retrieve or access email.

DNS and Network Configuration

ProtocolPortTransportFunction
DNS53UDP and TCPName resolution
DHCP server67UDPIPv4 DHCP server
DHCP client68UDPIPv4 DHCP client
NTP123UDPTime synchronisation
SNMP161Usually UDPManagement queries
SNMP Trap162Usually UDPManagement notifications
Syslog514UDPLog messages

DNS is the system that translates domain names such as example.com into IP addresses. Ordinary queries usually use UDP 53. TCP 53 is used for zone transfers and for responses too large for UDP.

DHCP is the protocol that automatically gives clients an IP address, subnet mask, and default gateway. Memory trick: server = 67, client = 68.

SNMP is the protocol used to monitor and manage network devices. Requests use 161 and traps use 162.

Directory, Authentication, File Sharing, and Databases

ServicePortTransportFunction
LDAP389TCP/UDPDirectory services
LDAPS636TCPLDAP over TLS
Kerberos88TCP/UDPNetwork authentication
SMB445TCPFile and printer sharing
Microsoft SQL Server1433TCPDatabase
MySQL3306TCPDatabase
PostgreSQL5432TCPDatabase

Database ports are defaults and can be changed during installation.

Quick Revision

  • FTP = 21 (control), 20 (data). SFTP = 22. TFTP = UDP 69.
  • SMTP = 25, POP3 = 110, IMAP = 143. Secure versions: 465/587, 995, 993.
  • DNS = 53 (UDP and TCP). DHCP = 67 server, 68 client. SNMP = 161, 162.
  • Exam keyword: "secure remote login" → think SSH (22).
DBMS Fast Revision Notes cover

DBMS Fast Revision Notes

  • Complete DBMS revision eBook
  • 5 modules, 11 chapters
  • Concept checks alongside topic blocks
  • 5 full-syllabus mock tests
  • High contrast print-friendly clean design
₹49₹99
50% off launch special

Transport Layer Protocols: TCP vs UDP

TCP is a connection-oriented transport protocol that provides reliable, ordered delivery. UDP is a connectionless transport protocol that sends datagrams without guaranteeing delivery or order. Ports exist because of these two protocols.

FeatureTCPUDP
Full formTransmission Control ProtocolUser Datagram Protocol
ConnectionConnection-oriented (3-way handshake)Connectionless
ReliabilityReliable deliveryNo delivery guarantee
OrderingOrdered byte streamNo ordering guarantee
AcknowledgementsYesNo
RetransmissionYesNo
Header size20 bytes minimum8 bytes
IP protocol number617
Typical usesSSH, SMTP, databases, most web trafficDNS queries, DHCP, NTP, streaming, VoIP

Q: Which header is smaller, TCP or UDP? A: UDP, at 8 bytes, compared with TCP's minimum of 20 bytes.

Q: Is UDP always faster than TCP? A: Not always. UDP has lower overhead, but real performance depends on the application and the network.

Quick Revision

  • TCP = reliable, ordered, connection-oriented, protocol number 6.
  • UDP = connectionless, no guarantee, protocol number 17.
  • HTTP/1.1 and HTTP/2 use TCP. HTTP/3 uses QUIC over UDP.

Network Layer Protocols

Network layer protocols handle addressing, routing, and diagnostics. Some closely related protocols, like ARP, are grouped here because exams often test them together.

IP (Internet Protocol)

IP is the protocol that provides logical addressing and forwards packets across networks.

  • IPv4 addresses are 32 bits. IPv6 addresses are 128 bits.
  • IP is connectionless and does not guarantee delivery or ordering.
  • Routers use the destination IP address to forward packets.

Q: Which protocol handles logical addressing and routing of packets? A: IP (Internet Protocol).

ICMP (Internet Control Message Protocol)

ICMP is the protocol used for error reporting and diagnostics in IP networks.

  • The ping command uses ICMP Echo Request and Echo Reply.
  • ICMP for IPv4 is IP protocol number 1.
  • ICMP does not use TCP or UDP ports.

The old Echo service used port 7, but ICMP Echo does not. ICMP uses message types and codes, not ports.

IGMP (Internet Group Management Protocol)

IGMP is the protocol that manages IPv4 multicast group membership between hosts and local routers. It is IP protocol number 2 and uses no TCP/UDP ports.

ARP (Address Resolution Protocol)

ARP is the protocol that maps a local IPv4 address to a MAC (link-layer) address.

  • Used when a device wants to send data to another device on the same network.
  • Does not use TCP/UDP ports.
  • IPv6 uses NDP (Neighbor Discovery Protocol) instead of ARP.

Q: What is the difference between ARP and DNS? A: ARP maps an IPv4 address to a MAC address on the local network. DNS maps a domain name to an IP address.

Routing Protocols

Routing protocols are the protocols that let routers learn and share route information.

ProtocolFull FormTypeMetricTransport / Port
RIPRouting Information ProtocolDistance-vectorHop countUDP 520
OSPFOpen Shortest Path FirstLink-stateCostIP protocol 89 (no ports)
BGPBorder Gateway ProtocolPath-vectorPath attributes and policyTCP 179
EIGRPEnhanced Interior Gateway Routing ProtocolAdvanced distance-vectorComposite metricIP protocol 88 (no ports)

Quick Revision

  • IP = addressing and routing. ICMP = errors and ping. IGMP = multicast. ARP = IP to MAC.
  • RIP = hop count, UDP 520. OSPF = cost, protocol 89. BGP = between autonomous systems, TCP 179.
  • Exam keyword: "ping" → think ICMP. "Hop count" → think RIP. "Cost" → think OSPF.

Protocols That Do Not Use TCP/UDP Ports

Some protocols are carried directly inside IP packets, so they have an IP protocol number but no TCP/UDP port. This is a favourite exam trap.

ProtocolIP Protocol NumberUses TCP/UDP Ports?Function
ICMP (IPv4)1NoErrors and diagnostics
IGMP2NoIPv4 multicast management
TCP6YesReliable transport
UDP17YesConnectionless transport
IPv6-in-IPv441NoIPv6 tunnelling over IPv4
GRE47NoTunnelling
ICMPv658NoIPv6 errors and diagnostics
EIGRP88NoRouting
OSPF89NoLink-state routing

Memory Trick: 1 = ICMP · 2 = IGMP · 6 = TCP · 17 = UDP · 89 = OSPF

Q: If a question asks for the port of HTTPS and the protocol number of TCP, what are the answers? A: The port of HTTPS is 443, and the protocol number of TCP is 6.

Quick Revision

  • No ports: ICMP, IGMP, OSPF, EIGRP, GRE.
  • Has ports: TCP and UDP (they carry the ports).
  • Exam keyword: "IP protocol field" → think protocol numbers.

Commonly Confused Protocols

PairKey Difference
HTTP vs HTTPSHTTPS protects HTTP using TLS
FTP vs SFTPFTP is separate; SFTP runs over SSH
SMTP vs POP3 vs IMAPSMTP sends; POP3 and IMAP retrieve
DNS vs DHCPDNS resolves names; DHCP assigns configuration
ARP vs DNSARP maps IP to MAC; DNS maps name to IP
ICMP vs TCPICMP reports and diagnoses; TCP delivers data reliably
RIP vs OSPFRIP uses hop count; OSPF uses cost
Port vs protocol numberPorts identify endpoints; protocol numbers identify the IP payload

Five Common Exam Traps

  1. Assuming every protocol has a port. ICMP and OSPF do not.
  2. Treating DNS as UDP-only. DNS uses both UDP and TCP on port 53.
  3. Mixing up FTP and SFTP. FTP uses 21. SFTP uses 22.
  4. Assuming HTTPS is always TCP. HTTP/3 uses UDP 443.
  5. Mixing up routing protocols. RIP = hop count, OSPF = cost, BGP = between autonomous systems.

One-Minute Port Revision

PortProtocolRemember
20FTP dataActive-mode data
21FTPControl
22SSH / SFTPSecure access and transfer
23TelnetUnencrypted remote login
25SMTPMail relay
53DNSName resolution
67DHCP serverUDP
68DHCP clientUDP
69TFTPUDP
80HTTPWeb
110POP3Mail retrieval
123NTPTime sync
143IMAPMail access
161SNMPQueries
162SNMP TrapNotifications
179BGPTCP
389LDAPDirectory
443HTTPSSecure web
445SMBFile sharing
465SMTPSMail over TLS
514SyslogUDP
520RIPUDP
587SMTP submissionClient mail submission
636LDAPSLDAP over TLS
993IMAPSSecure IMAP
995POP3SSecure POP3
1433SQL ServerDatabase
3306MySQLDatabase
3389RDPRemote desktop
5432PostgreSQLDatabase

Practice MCQs

Try all 12 before checking the answers.

Q1· Computer Networks

Which port is commonly used by HTTPS over TCP?

A21
B53
C80
D443
Q2· Computer Networks

Which IP protocol number identifies ICMP for IPv4?

A1
B6
C17
D89
Q3· Computer Networks

Which protocol uses hop count as its routing metric?

AOSPF
BRIP
CBGP
DICMP
Q4· Computer Networks

Which port is commonly used by SSH?

A21
B22
C23
D25
Q5· Computer Networks

Which statement about DNS is correct?

AUses only TCP port 53.
BUses only UDP port 53.
CCan use both UDP and TCP port 53.
DAlways uses port 443.
Q6· Computer Networks

Which protocol is primarily used to send or relay email?

APOP3
BIMAP
CSMTP
DARP
Q7· Computer Networks

Which statement about UDP is correct?

AIt guarantees delivery.
BIt guarantees ordering.
CIt is connection-oriented.
DIt guarantees neither delivery nor ordering.
Q8· Computer Networks

Which protocol resolves a local IPv4 address to a link-layer address?

ADNS
BARP
CSMTP
DFTP
Q9· Computer Networks

Which protocol is identified by IP protocol number 17?

ATCP
BICMP
CUDP
DOSPF
Q10· Computer Networks

Which routing protocol uses cost as its metric?

ARIP
BOSPF
CSMTP
DDHCP
Q11· Computer Networks

Which pair gives the UDP ports used by IPv4 DHCP?

AServer 67, Client 68
BServer 68, Client 67
CServer 53, Client 54
DServer 80, Client 443
Q12· Computer Networks

Which statement is correct?

AEvery IP protocol uses a TCP or UDP port.
BICMP uses TCP port 1.
COSPF uses UDP port 89.
DIP protocol numbers and TCP/UDP port numbers serve different purposes.

Answers and Explanations

QAnswerExplanation
1D. 443HTTPS commonly uses TCP port 443.
2A. 1ICMP for IPv4 is IP protocol number 1.
3B. RIPRIP selects routes by hop count.
4B. 22SSH uses TCP port 22.
5C. BothUDP for normal queries, TCP for zone transfers and large responses.
6C. SMTPSMTP sends and relays email.
7D. NeitherUDP is connectionless with no delivery or ordering guarantee.
8B. ARPARP maps a local IPv4 address to a MAC address.
9C. UDPUDP is IP protocol number 17.
10B. OSPFOSPF uses cost as its metric.
11A. 67 / 68Server uses UDP 67, client uses UDP 68.
12D. Different purposesProtocol numbers identify the IP payload. Ports identify endpoints.

Quick Revision Cheat Sheet

One final scan before your mock test.

TopicRememberExam Keyword to Watch For
ICMPProtocol 1, no ports, used by ping"ping," "error reporting," "echo"
TCPProtocol 6, reliable, ordered"connection-oriented," "3-way handshake"
UDPProtocol 17, no guarantee"connectionless," "datagram"
OSPFProtocol 89, cost, link-state"link-state," "cost," "shortest path"
RIPUDP 520, hop count, distance-vector"hop count," "distance-vector"
BGPTCP 179, between autonomous systems"autonomous system," "path-vector"
DNSPort 53, UDP and TCP"name resolution," "zone transfer"
DHCPUDP 67 server, 68 client"automatic IP assignment"
ARPIPv4 to MAC, no ports"MAC address," "local network"
Free Practice

Ready to Test Your IT Professional Knowledge?

Access subject-wise free mock tests for every IT domain topic — DBMS, Computer Networks, OS, Software Engineering, and DSA — with detailed explanations and AI-powered question generation.

What to Study Next

Continue your IT Officer revision with these related articles.

Frequently Asked Questions (FAQs)

Focus on HTTP (80), HTTPS (443), FTP (21), SSH (22), Telnet (23), SMTP (25), DNS (53), DHCP (67 and 68), POP3 (110), IMAP (143), and SNMP (161 and 162). Also learn the no-port protocols ICMP, IGMP, and OSPF, and the routing protocols RIP, OSPF, and BGP.

Ready to Practice?

Don't just read about it. Create a custom mock test for this topic instantly.