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.
Topic: Networking in IT Infrastructure · Tutorial
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?
- How Do Protocols Fit Into Layers?
- What Is the Difference Between TCP and UDP?
- Which Application Protocols Should You Know?
- What Do ARP, ICMP and DHCP Do?
- How Can You See Protocols in Action?
- References
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) | Job | Examples |
|---|---|---|
| Application | Services for users and apps | HTTP, DNS, SMTP, SSH, FTP |
| Transport | End-to-end delivery between programs | TCP, UDP, QUIC |
| Internet | Addressing and routing | IPv4, IPv6, ICMP |
| Link | Delivery on the local network | Ethernet, Wi-Fi, ARP |
What Is the Difference Between TCP and UDP?
| TCP (RFC 9293) | UDP (RFC 768) | |
|---|---|---|
| Connection | Three-way handshake first | None |
| Reliability | Retransmits lost data, keeps order | No guarantees |
| Speed and overhead | More overhead | Less overhead |
| Typical uses | Web, email, file transfer, SSH | DNS 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?
| Protocol | Purpose | Port | Secure option |
|---|---|---|---|
| HTTP (RFC 9110) | Web | 80 | HTTPS with TLS 1.3 on 443 |
| DNS (RFC 1034) | Name resolution | 53 | DNSSEC; DNS over TLS or HTTPS |
| FTP | File transfer | 21 | SFTP (22) or FTPS |
| SMTP | Sending email | 25, 587 | TLS submission (465/587) |
| IMAP / POP3 | Reading email | 143 / 110 | IMAPS 993 / POP3S 995 |
| Telnet | Remote login | 23 | SSH (22) |
| SNMP | Device monitoring | 161 | SNMPv3 |
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
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0