Networking Protocols and Services
Networking protocols define how devices communicate, exchange data, and provide services across networks. Understanding these protocols is essential for network administration, troubleshooting, cybersecurity, and ethical hacking.
This section introduces common networking protocols, transport-layer communication, port numbers, and DNS.
What You'll Learn
- Understand what networking protocols are and why they are necessary.
- Explore common protocols and their purposes.
- Understand TCP and UDP communication.
- Learn how port numbers identify network services.
- Understand how DNS resolves domain names to IP addresses.
- Use Linux commands to inspect connections and troubleshoot network services.
- Recognize how protocols and exposed services relate to network security.
Lessons
1. Networking Protocols
Learn how networking protocols establish rules for communication between devices.
Topics include:
- Protocol fundamentals
- Common application and network protocols
- Protocols and OSI layers
- Request-and-response communication
- Common protocol use cases
2. TCP — Transmission Control Protocol
Understand reliable, connection-oriented communication and how TCP delivers data between applications.
Topics include:
- TCP characteristics
- Three-way handshake
- Sequence and acknowledgment numbers
- Reliability and retransmission
- Connection establishment and termination
- TCP flags and basic troubleshooting
3. UDP — User Datagram Protocol
Learn how connectionless communication works and why some applications choose UDP instead of TCP.
Topics include:
- UDP characteristics
- Datagrams
- TCP versus UDP
- Common UDP-based services
- Latency and reliability trade-offs
4. Port Numbers
Understand how port numbers help operating systems deliver network traffic to the correct application or service.
Topics include:
- TCP and UDP ports
- Well-known, registered, and dynamic ports
- Source and destination ports
- Common service ports
- Listening ports and exposed services
- Basic port inspection and troubleshooting
5. DNS — Domain Name System
Learn how DNS translates human-readable domain names into information used to locate network services.
Topics include:
- DNS fundamentals and hierarchy
- Resolvers and authoritative name servers
- A, AAAA, CNAME, MX, NS, and TXT records
- Recursive and iterative queries
- DNS caching and TTL
- Basic DNS troubleshooting
Recommended Learning Path
- Networking Protocols — Understand the general rules governing network communication.
- TCP — Learn reliable, connection-oriented data transfer.
- UDP — Understand connectionless data transfer.
- Port Numbers — Connect transport protocols to application services.
- DNS — Learn how domain names are resolved.
Common Ports Reference
| Port | Protocol | Common Service |
|---|---|---|
| 20/21 | TCP | FTP data/control |
| 22 | TCP | SSH |
| 25 | TCP | SMTP |
| 53 | TCP/UDP | DNS |
| 67/68 | UDP | DHCP |
| 80 | TCP | HTTP |
| 110 | TCP | POP3 |
| 123 | UDP | NTP |
| 143 | TCP | IMAP |
| 443 | TCP | HTTPS |
| 445 | TCP | SMB |
| 3306 | TCP | MySQL |
| 3389 | TCP | RDP |
Note: These are common defaults, not guarantees. Services can use different ports, and modern protocols may use additional transport options.
Useful Linux Commands
Check Network Connections and Listening Ports
ss -tuln
Display Active Connections and Processes
ss -tunap
Query DNS Records
dig example.com
Query DNS Using nslookup
nslookup example.com
Test Connectivity to a Host
ping example.com
Use these commands on your own systems or networks where you have permission.
Practice Questions
- What is a networking protocol?
- How does TCP differ from UDP?
- What happens during the TCP three-way handshake?
- What is a port number?
- What is the difference between a listening port and an established connection?
- What is DNS, and why is it needed?
- What are A, AAAA, CNAME, and MX records?
- Which commands can you use to inspect ports and query DNS?
- Why can an exposed network service create a security risk?
Next Steps
After completing this section, continue to:
- Web Communication — Learn how HTTP and HTTPS support web applications.
- Network Security — Explore network threats, defensive controls, and secure communication.
- Reconnaissance and Port Scanning — Apply networking fundamentals during authorized security assessments.
Ugenz Academy — Learn • Build • Protect • Grow.