Protocols
Protocols are agreed-upon rules for how data is sent and received. You do not need to memorize RFCs — you need to understand what each one does and when it is relevant.
TCP vs UDP
These are the two main transport-layer protocols.
| TCP | UDP | |
|---|---|---|
| Connection | Yes — three-way handshake | No — fire and forget |
| Reliability | Guaranteed delivery | No guarantee |
| Speed | Slower | Faster |
| Use cases | HTTP, SSH, FTP | DNS, VoIP, streaming |
The TCP three-way handshake: SYN → SYN-ACK → ACK. This is how a connection is established. A port scan works by sending SYN packets and seeing what responds.
DNS
DNS (Domain Name System) translates human-readable names (google.com) into IP addresses.
How it works:
- You type
google.comin a browser. - Your OS asks a DNS resolver (usually your router or ISP).
- The resolver queries root servers, then TLD servers, then authoritative servers.
- You get back an IP address.
DNS misconfigurations are frequent findings. Zone transfers (AXFR) on misconfigured servers can leak the entire DNS zone.
HTTP / HTTPS
HTTP is the protocol your browser uses to talk to web servers. HTTPS is HTTP over TLS (encrypted).
Every HTTP transaction is a request and a response. Both have a method (or status code), headers, and optionally a body.
See the HTTP page for full details.
ICMP
ICMP is used for network diagnostics. ping uses it.
Some firewalls block ICMP. A host not responding to ping does not mean it is offline.
ARP
ARP (Address Resolution Protocol) maps IP addresses to MAC addresses on a local network.
ARP spoofing is a classic local network attack — you convince other devices that your MAC is the router’s MAC, intercepting traffic.
DHCP
DHCP automatically assigns IP addresses to devices on a network. When you connect to Wi-Fi, your device gets an IP from the DHCP server (usually your router).
Rogue DHCP servers are a real attack. If you can respond to DHCP requests faster than the legitimate server, you control what IP and DNS server clients use.
In CTF Environments
Protocols show up in CTFs mainly through packet captures and network forensics. You need to recognize what protocol you are looking at and know what can go wrong with it.
DNS zone transfer — first thing to try on any CTF with a DNS service:
Analyzing a PCAP for protocol-specific data:
In Wireshark: use display filters like dns, ftp, http, arp. File → Export Objects → HTTP lets you pull files out of captured HTTP traffic.
TCP SYN scan behavior — understanding what nmap is doing:
A SYN-ACK means the port is open. An RST means closed. No response means filtered (firewall).
ARP in CCDC / network defense:
ARP spoofing is one of the first things a red team does on a local network. Detection:
Static ARP entries block this attack on critical hosts:
DHCP rogue server — competition context:
In CCDC, if the red team stands up a rogue DHCP server, clients start using attacker-controlled DNS. Defense: lock down DHCP snooping on managed switches, and monitor for unexpected DHCP traffic.
How the Club Uses This
Protocol knowledge is foundational in CCDC network defense (ARP, DHCP attacks) and CTF network forensics (analyzing PCAPs to find flags in DNS queries, FTP transfers, or cleartext HTTP).
References
- IP, Ports & Subnets
-
Protocols
- Networking Tools