Network Applications & Protocols

Learn how TCP vs UDP works and understand key protocols like FTP, HTTP, DHCP, DNS, ICMP, and NTP.

Network Protocols

๐Ÿ”น What are Network Protocols?

A network protocol is a set of rules and standards that devices follow to communicate with each other over a network.

๐Ÿ‘‰ Just like humans need a common language to talk, computers need protocols to exchange data.

๐Ÿง  Why Network Protocols Are Needed

Imagine this situation:
  • One device sends data too fast
  • Another device expects data slowly
  • One device sends data in English
  • Another understands only Hindi
โŒ Communication fails
๐Ÿ“Œ Protocols solve this problem by defining:
  • How data should look
  • When data should be sent
  • What to do if something goes wrong

Network Protocols Across OSI Model

OSI Model with Protocol Layers

๐Ÿ”ง What Exactly Do Network Protocols Decide?

1๏ธโƒฃ How Data Is Sent ๐Ÿ“ค

Protocols define:
  • Data format (bits, frames, packets)
  • Order of data
  • Speed of transmission
๐Ÿ“Œ Example:
  • TCP sends data in sequence
  • UDP sends data without order

2๏ธโƒฃ How Data Is Received ๐Ÿ“ฅ

Protocols decide:
  • How receiver understands data
  • How data is reassembled
  • How delivery is confirmed
๐Ÿ“Œ Example:
  • TCP sends ACK (Acknowledgment)
  • UDP does not confirm delivery

3๏ธโƒฃ How Errors Are Handled โš ๏ธ

Protocols define:
  • What happens if data is lost
  • What happens if data is corrupted
  • Whether data should be resent
๐Ÿ“Œ Example:
  • TCP retransmits lost packets
  • UDP ignores errors

๐Ÿงฉ Real-Life Analogy (VERY IMPORTANT ๐Ÿ’ก)

๐Ÿ“ฎ Sending a Letter (Postal System)
Postal System Network Protocol
Address on envelope IP address
Registered post TCP
Normal post UDP
Post office rules Protocol rules

๐Ÿ“Œ Without postal rules โ†’ letters lost
๐Ÿ“Œ Without network protocols โ†’ data communication fails

Popular Network Protocols Overview

Popular Network Protocols Diagram

๐Ÿ”น TCP vs UDP (VERY IMPORTANT)

๐Ÿ”ต TCP (Transmission Control Protocol)

โœ” Reliable delivery
โœ” Error checking
โœ” Data arrives in order

Characteristics:
  • Slower
  • Connection-oriented
Used when accuracy matters:
  • Web browsing
  • Email
  • File transfer

๐ŸŸ  UDP (User Datagram Protocol)

โœ” Fast data transfer
โŒ No delivery guarantee

Characteristics:
  • Faster
  • Connectionless
Used when speed matters:
  • Video streaming
  • Online games
  • Voice calls

TCP vs UDP Comparison

TCP vs UDP
๐Ÿง  Exam Trick
Banking โ†’ TCP
YouTube โ†’ UDP

๐Ÿ”น FTP, SFTP, TFTP (File Transfer)

FTP
โ€ข Not secure (plain text)
โ€ข Port: 21
โ€ข Rarely used today
SFTP
โ€ข Secure (uses SSH encryption)
โ€ข Port: 22
โ€ข Preferred in companies
TFTP
โ€ข Very simple
โ€ข No authentication
โ€ข Port: 69 (UDP)
โ€ข Used for router/switch configs

๐Ÿ”น HTTP & HTTPS

HTTP
โ€ข No encryption
โ€ข Port: 80
HTTPS
โ€ข Encrypted (SSL/TLS)
โ€ข Port: 443
โ€ข Used by modern websites

๐Ÿ”น DHCP & DNS (CORE SERVICES)

DHCP
Automatically assigns IP, subnet, gateway, DNS
๐Ÿ“Œ Without DHCP โ†’ manual IP needed
DNS
Converts name to IP
google.com โ†’ 142.250.182.14
๐Ÿง  Exam Trap
DNS does โŒ NOT assign IP
DHCP does โŒ NOT convert names

๐Ÿ”น ICMP & NTP (Support Tools)

ICMP
โ€ข Error reporting
โ€ข Used by ping & traceroute
NTP
โ€ข Synchronizes time
โ€ข Important for logs & security

๐Ÿง  MASTER TABLE (EXAM READY)

ProtocolPurposePort
TCPReliable deliveryโ€”
UDPFast deliveryโ€”
FTPFile transfer21
SFTPSecure file transfer22
TFTPDevice config69
HTTPWeb80
HTTPSSecure web443
DHCPIP assignment67/68
DNSName resolution53
ICMPPing / errorsโ€”
NTPTime sync123

๐Ÿ› ๏ธ CCST Troubleshooting Scenarios

โŒ Website not opening โ†’ Check DNS / HTTPS
โŒ PC has no IP โ†’ Check DHCP
โŒ Canโ€™t ping server โ†’ ICMP blocked / network issue
โŒ File transfer insecure โ†’ Use SFTP, not FTP
๐Ÿง  Memory Tricks

DHCP = Gives IP
DNS = Names to IP
HTTPS = Secure
ICMP = Ping
NTP = Time