Protocols And Services

4 min read728 words

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

  1. Networking Protocols — Understand the general rules governing network communication.
  2. TCP — Learn reliable, connection-oriented data transfer.
  3. UDP — Understand connectionless data transfer.
  4. Port Numbers — Connect transport protocols to application services.
  5. DNS — Learn how domain names are resolved.

Common Ports Reference

PortProtocolCommon Service
20/21TCPFTP data/control
22TCPSSH
25TCPSMTP
53TCP/UDPDNS
67/68UDPDHCP
80TCPHTTP
110TCPPOP3
123UDPNTP
143TCPIMAP
443TCPHTTPS
445TCPSMB
3306TCPMySQL
3389TCPRDP

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

  1. What is a networking protocol?
  2. How does TCP differ from UDP?
  3. What happens during the TCP three-way handshake?
  4. What is a port number?
  5. What is the difference between a listening port and an established connection?
  6. What is DNS, and why is it needed?
  7. What are A, AAAA, CNAME, and MX records?
  8. Which commands can you use to inspect ports and query DNS?
  9. 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.

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy