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.
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
๐ 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
๐ง What Exactly Do Network Protocols Decide?
1๏ธโฃ How Data Is Sent ๐ค
Protocols define:
- Data format (bits, frames, packets)
- Order of data
- Speed of transmission
- 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
- 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
- TCP retransmits lost packets
- UDP ignores errors
๐งฉ Real-Life Analogy (VERY IMPORTANT ๐ก)
๐ฎ Sending a Letter (Postal System)
๐ Without postal rules โ letters lost
๐ Without network protocols โ data communication fails
| 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
๐น TCP vs UDP (VERY IMPORTANT)
๐ต TCP (Transmission Control Protocol)
โ Reliable delivery
โ Error checking
โ Data arrives in order
Characteristics:
โ Error checking
โ Data arrives in order
Characteristics:
- Slower
- Connection-oriented
- Web browsing
- File transfer
๐ UDP (User Datagram Protocol)
โ Fast data transfer
โ No delivery guarantee
Characteristics:
โ No delivery guarantee
Characteristics:
- Faster
- Connectionless
- Video streaming
- Online games
- Voice calls
TCP vs UDP Comparison
๐ง Exam Trick
Banking โ TCP
YouTube โ UDP
Banking โ TCP
YouTube โ UDP
๐น FTP, SFTP, TFTP (File Transfer)
FTP
โข Not secure (plain text)
โข Port: 21
โข Rarely used today
โข Not secure (plain text)
โข Port: 21
โข Rarely used today
SFTP
โข Secure (uses SSH encryption)
โข Port: 22
โข Preferred in companies
โข Secure (uses SSH encryption)
โข Port: 22
โข Preferred in companies
TFTP
โข Very simple
โข No authentication
โข Port: 69 (UDP)
โข Used for router/switch configs
โข Very simple
โข No authentication
โข Port: 69 (UDP)
โข Used for router/switch configs
๐น HTTP & HTTPS
HTTP
โข No encryption
โข Port: 80
โข No encryption
โข Port: 80
HTTPS
โข Encrypted (SSL/TLS)
โข Port: 443
โข Used by modern websites
โข 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
Automatically assigns IP, subnet, gateway, DNS
๐ Without DHCP โ manual IP needed
DNS
Converts name to IP
google.com โ 142.250.182.14
Converts name to IP
google.com โ 142.250.182.14
๐ง Exam Trap
DNS does โ NOT assign IP
DHCP does โ NOT convert names
DNS does โ NOT assign IP
DHCP does โ NOT convert names
๐น ICMP & NTP (Support Tools)
ICMP
โข Error reporting
โข Used by ping & traceroute
โข Error reporting
โข Used by ping & traceroute
NTP
โข Synchronizes time
โข Important for logs & security
โข Synchronizes time
โข Important for logs & security
๐ง MASTER TABLE (EXAM READY)
| Protocol | Purpose | Port |
|---|---|---|
| TCP | Reliable delivery | โ |
| UDP | Fast delivery | โ |
| FTP | File transfer | 21 |
| SFTP | Secure file transfer | 22 |
| TFTP | Device config | 69 |
| HTTP | Web | 80 |
| HTTPS | Secure web | 443 |
| DHCP | IP assignment | 67/68 |
| DNS | Name resolution | 53 |
| ICMP | Ping / errors | โ |
| NTP | Time sync | 123 |
๐ ๏ธ 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
โ 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
DHCP = Gives IP
DNS = Names to IP
HTTPS = Secure
ICMP = Ping
NTP = Time