Network Protocols overview
Quick OSI refresher for people who already know it: layers, PDUs, encapsulation, the Wireshark view, and the port and protocol numbers you look up most.
What this is
A lookup reference for network protocols, written for security people who already know the OSI model. It is not a course. Use it when you are staring at a capture and want to know what a field means, which values are normal and what an attacker could do with it.
Protocols are grouped by OSI layer, one folder per layer. Every protocol page has the same shape, so you always know where to look:
| Section | What you find there |
|---|---|
| Quick facts (box under the title) | OSI layer, what carries it, ports or identifiers, RFCs, Wireshark filter, encrypted or not |
| Packet structure | Interactive header diagram. Click a field for its size, position, meaning, common values and Wireshark field name. |
| How it works | The exchange: handshake, request/response, special cases |
| In Wireshark | Display filters and what normal and suspicious traffic looks like |
| Security notes | Known attacks, abuse and what to look for |
| Versions and related | Older and newer versions, protocols it works with |
| References | RFCs and specs |
Field links work too: /docs/network-protocols-overview/layer-3-network/ipv4#ipv4-ttl opens the IPv4 page with the TTL field selected.
The OSI model at a glance
| # | Layer | PDU | Job | Addressing | Protocols here |
|---|---|---|---|---|---|
| 7 | Application | Data / message | What the application says | Names, URLs | DNS, DHCP, NTP, HTTP, SMTP, IMAP/POP3, FTP, TFTP, SSH, Telnet, RDP, SMB, LDAP, RADIUS, SNMP, Syslog |
| 6 | Presentation | Data | Encoding, compression, encryption | – | TLS (SSL) |
| 5 | Session | Data | Sessions, dialogue control | – | TLS session resumption |
| 4 | Transport | Segment (TCP), datagram (UDP) | Process-to-process delivery, reliability, flow control | Ports | TCP, UDP, QUIC |
| 3 | Network | Packet | Host-to-host delivery across networks, routing | IP addresses | IPv4, IPv6, ICMP, IPsec, WireGuard |
| 2 | Data link | Frame | Delivery inside one network segment | MAC addresses | Ethernet, ARP, 802.1Q VLAN, Spanning Tree, 802.1X / EAP |
| 1 | Physical | Bits | Signals on the wire or radio | – | Cables, PHYs, radio |
Layer 1 has no folder here: for traffic analysis it only matters as “the link is up”. Layers 5 and 6 share one folder, because in practice only TLS lives there.
OSI vs TCP/IP
Real protocols were built for the TCP/IP model, so their OSI placement is a convention, not a fact. Where a protocol sits between layers, its quick facts say so.
| TCP/IP layer | OSI layers | Examples |
|---|---|---|
| Application | 7, 6, 5 | DNS, HTTP, TLS, SSH |
| Transport | 4 | TCP, UDP, QUIC (over UDP) |
| Internet | 3 | IPv4, IPv6, ICMP, IPsec |
| Link | 2, 1 | Ethernet, ARP, Wi-Fi |
Common borderline cases: ARP (between 2 and 3: resolves layer-3 addresses, travels in layer-2 frames), TLS (above TCP, below the application), ICMP (layer 3, but carried inside IP like a layer-4 protocol), DHCP and DNS (application protocols that configure or support the network itself).
Encapsulation
Each layer wraps the data from the layer above in its own header (and sometimes a trailer). This is an HTTPS request on its way to the wire:
The Wireshark view
Wireshark’s packet details pane is the encapsulation above, read top to bottom: each tree line is one layer, outermost first.
| Tree line in Wireshark | Layer | Display filter |
|---|---|---|
Frame 42: 583 bytes on wire | Capture metadata (not a protocol) | frame |
Ethernet II, Src: …, Dst: … | 2 | eth |
Internet Protocol Version 4, Src: …, Dst: … | 3 | ip (IPv6: ipv6) |
Transmission Control Protocol, Src Port: … | 4 | tcp (UDP: udp) |
Transport Layer Security | 5/6 | tls |
Hypertext Transfer Protocol | 7 | http (http2, http3) |
Filters you need all the time:
| Filter | Shows |
|---|---|
ip.addr == 10.0.0.5 | Traffic from or to a host |
tcp.port == 443 || udp.port == 53 | Traffic on a port |
tcp.flags.syn == 1 && tcp.flags.ack == 0 | Connection attempts (SYN only) |
tcp.analysis.flags | Retransmissions, zero windows and other TCP problems |
dns.flags.response == 0 | DNS queries |
tls.handshake.type == 1 | TLS Client Hellos (see the SNI) |
http.request | HTTP requests |
icmp || icmpv6 | ICMP |
!(arp or dns or icmp) | Hide the background noise |
Port and protocol numbers
Well-known ports (transport layer):
| Port | Protocol | Port | Protocol |
|---|---|---|---|
| 20, 21/tcp | FTP data, control | 389/tcp+udp | LDAP, CLDAP |
| 22/tcp | SSH, SFTP, SCP | 443/tcp+udp | HTTPS (UDP = HTTP/3, QUIC) |
| 23/tcp | Telnet | 445/tcp | SMB |
| 25/tcp | SMTP | 465, 587/tcp | SMTP submission (TLS, STARTTLS) |
| 53/udp+tcp | DNS | 500, 4500/udp | IKE, IPsec NAT-T |
| 67, 68/udp | DHCP server, client | 514/udp | Syslog (6514/tcp with TLS) |
| 69/udp | TFTP | 636/tcp | LDAPS |
| 80/tcp | HTTP | 993, 995/tcp | IMAPS, POP3S |
| 88/tcp+udp | Kerberos | 1812, 1813/udp | RADIUS authentication, accounting |
| 110/tcp | POP3 | 3268, 3269/tcp | AD Global Catalog |
| 123/udp | NTP | 3389/tcp+udp | RDP |
| 143/tcp | IMAP | 51820/udp | WireGuard (default) |
| 161, 162/udp | SNMP, traps |
IP protocol numbers (the Protocol field of the IPv4 header, Next Header in IPv6):
| Number | Protocol | Number | Protocol |
|---|---|---|---|
| 1 | ICMP | 47 | GRE |
| 2 | IGMP | 50 | ESP (IPsec) |
| 6 | TCP | 51 | AH (IPsec) |
| 17 | UDP | 58 | ICMPv6 |
| 41 | IPv6 in IPv4 | 89 | OSPF |
EtherTypes (the type field of the Ethernet header): 0x0800 IPv4, 0x0806 ARP, 0x8100 802.1Q VLAN tag, 0x86DD IPv6, 0x888E 802.1X (EAPOL).