Networking Protocols Explained: HTTP, TCP, UDP, FTP and More

Networking protocols are agreed rules that let devices communicate. IP addresses and routes packets between networks. TCP delivers data reliably and in order, while UDP sends it quickly without guarantees.

Jul 11, 2025 - 10:12
Updated: 
104.1k

Networking in IT Infrastructure · Tutorial

Networking Protocols Explained: HTTP, TCP, UDP, FTP and More

Quick answer: Networking protocols are agreed rules that let devices communicate. IP addresses and routes packets between networks. TCP delivers data reliably and in order, while UDP sends it quickly without guarantees. On top of these, application protocols do specific jobs: HTTP and HTTPS for the web, DNS to turn names into addresses, DHCP to hand out IP settings, SMTP and IMAP for email, SSH for secure remote login, and FTP or SFTP for file transfer. Modern networks increasingly use encrypted versions such as HTTPS, SFTP and QUIC, because older plaintext protocols expose data.

Key takeaways

  • Protocols work in layers: each relies on the one below it.
  • TCP is reliable and ordered; UDP is fast and lightweight.
  • Most application protocols have an insecure and a secure version.
  • Every protocol is defined in public RFC documents.
  • Tools like ping, dig, curl and Wireshark let you see protocols in action.

Table of Contents

What Is a Network Protocol?

A protocol defines the format of messages, the order they are exchanged and what each side does in response. Internet protocols are published as RFCs by the IETF, so any vendor can implement them and devices from different makers can talk to each other.

How Do Protocols Fit Into Layers?

Layer (TCP/IP)JobExamples
ApplicationServices for users and appsHTTP, DNS, SMTP, SSH, FTP
TransportEnd-to-end delivery between programsTCP, UDP, QUIC
InternetAddressing and routingIPv4, IPv6, ICMP
LinkDelivery on the local networkEthernet, Wi-Fi, ARP

What Is the Difference Between TCP and UDP?

TCP (RFC 9293)UDP (RFC 768)
ConnectionThree-way handshake firstNone
ReliabilityRetransmits lost data, keeps orderNo guarantees
Speed and overheadMore overheadLess overhead
Typical usesWeb, email, file transfer, SSHDNS queries, voice and video, gaming

QUIC, used by HTTP/3, runs over UDP but adds reliability and built-in encryption.

Which Application Protocols Should You Know?

ProtocolPurposePortSecure option
HTTP (RFC 9110)Web80HTTPS with TLS 1.3 on 443
DNS (RFC 1034)Name resolution53DNSSEC; DNS over TLS or HTTPS
FTPFile transfer21SFTP (22) or FTPS
SMTPSending email25, 587TLS submission (465/587)
IMAP / POP3Reading email143 / 110IMAPS 993 / POP3S 995
TelnetRemote login23SSH (22)
SNMPDevice monitoring161SNMPv3

Port numbers come from the IANA registry.

What Do ARP, ICMP and DHCP Do?

  • ARP finds the hardware (MAC) address for an IPv4 address on the local network.
  • ICMP carries error and diagnostic messages; ping and traceroute use it.
  • DHCP (RFC 2131) automatically gives devices an IP address, gateway and DNS servers.

How Can You See Protocols in Action?

ping -c 3 example.com            # ICMP
dig example.com A                # DNS
curl -I https://example.com      # HTTP over TLS, headers only
ssh -v user@server               # SSH handshake details
sudo tcpdump -i any port 53      # watch DNS packets

Open the same traffic in Wireshark to see each layer's headers. Related: the TCP/IP model and insecure vs secure ports. WebAsha offers CCNA networking training.

References

Frequently Asked Questions

A set of rules that defines how devices format, send, receive and respond to messages so they can communicate.

TCP sets up a connection and guarantees ordered delivery, while UDP sends data without a connection or delivery guarantees.

HTTPS encrypts web traffic with TLS and verifies the server’s identity, so data cannot easily be read or altered.

DNS translates human-readable domain names into IP addresses so devices can find the servers they want to reach.

FTP sends data and passwords in plaintext, while SFTP runs over SSH and encrypts the whole session.

DHCP automatically assigns IP addresses, gateways and DNS server settings to devices when they join a network.

A modern transport protocol over UDP with built-in encryption and reliability, used by HTTP/3 for faster web connections.

In RFC documents published by the IETF, which are freely available on the RFC Editor website.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Wow Wow 0
Sad Sad 0
Angry Angry 0
Vaishnavi

Vaishnavi is a skilled tech professional at the Ethical Hacking Training Institute in Pune, responsible for managing and optimizing the technical infrastructure that supports advanced cybersecurity education. With deep expertise in network security, backend operations, and system performance, she ensures that practical labs, online modules, and assessments run smoothly and securely. Her behind-the-scenes contributions play a vital role in delivering a seamless and secure learning experience for aspiring ethical hackers.