Docsity

Networking Protocols Cheat Sheet – Complete Quick Reference (2026), Cheat Sheet of Computer Networks

Toggle sidebar
bg1
NETWORKING PROTOCOLS QUICK REFERENCE | OSI • TCP/IP • PORTS • SUBNETTING • COMMANDS
NETWORKING PROTOCOLS
COMPLETE QUICK REFERENCE | OSI layers, TCP/IP, ports, protocols & commands | Exam / CCNA / Network+
revision
1. OSI MODEL VS. TCP/IP
OSI Layer TCP/IP layer PDU Examples
7Application Application Data HTTP(S), DNS, SMTP, SSH,
FTP
6Presentation Application Data TLS, JPEG, ASCII
5Session Application Data NetBIOS, RPC
4Transport Transport Segment / datagram TCP, UDP, QUIC
3Network Internet Packet IP, ICMP, OSPF
2Data Link Network Access Frame Ethernet, Wi-Fi, PPP,
VLAN
1Physical Network Access Bit Cables, radio, signals
Mnemonic (7 1): →All People Seem To Need Data Processing.
2. TCP VS. UDP
Feature TCP UDP
Connection Connection-oriented; 3-way handshake Connectionless
Delivery Reliable, ordered; retransmits losses Best-effort; no ordering/retransmission by
UDP
Control Flow + congestion control No built-in flow/congestion control
Header 20–60 bytes 8 bytes
Typical uses Web, email, file transfer, SSH DNS, DHCP, VoIP, gaming, streaming
3. CONNECTION SETUP / TEARDOWN
TCP 3-way handshake TCP 4-way close
1. Client Server: SYN (seq=x)→1. Client Server: FIN→
2. Server Client: SYN-ACK (ack=x+1)→2. Server Client: ACK→
3. Client Server: ACK (ack=y+1)→3. Server Client: FIN→
Connection established 4. Client Server: ACK; connection closed→
4. HTTP QUICK REFERENCE
HTTP quick ref: GET/HEAD read (safe); POST submits; PUT replaces (idempotent); PATCH partial; DELETE idempotent; OPTIONS capabilities.
Status: 2xx success, 3xx redirect, 4xx client error, 5xx server error. HTTP/3 uses QUIC over UDP 443.
4. WELL-KNOWN PORTS (0–1023)
Port Protocol / service Transport
20/21 FTP data / control TCP
22 SSH / SFTP / SCP TCP
23 Telnet (insecure remote login) TCP
25 / 587 SMTP relay / submission TCP
53 DNS UDP/TCP
67 / 68 DHCP server / client UDP
69 TFTP UDP
80 / 443 HTTP / HTTPS TCP; HTTP/3 uses UDP 443
110 / 143 POP3 / IMAP TCP
123 NTP time sync UDP
161 / 162 SNMP query / trap UDP
389 / 636 LDAP / LDAPS TCP/UDP; LDAPS TCP
445 SMB file sharing TCP
514 Syslog UDP
5. REGISTERED / COMMON ALTERNATE PORTS
Port Service
1433 Microsoft SQL Server
1521 Oracle DB
2049 NFS
3306 MySQL
3389 RDP
5432 PostgreSQL
5900 VNC
6379 Redis
8080 / 8443 Alternate HTTP / HTTPS
27017 MongoDB
6. DNS, EMAIL, FILE TRANSFER & REMOTE ACCESS
Topic Remember
DNS records
A=IPv4; AAAA=IPv6; CNAME=alias; MX=mail;
TXT=verification/SPF/DKIM; NS=name server; SOA=zone; PTR=reverse;
SRV=service
DNS lookup Client recursive resolver root TLD authoritative server→ → → →
Email SMTP sends (25/587); POP3 receives/downloads (110/995); IMAP syncs
mail on server (143/993)
File transfer FTP 20/21 insecure; FTPS uses TLS (21/990); SFTP/SCP use SSH port 22;
TFTP 69 insecure
Remote access SSH 22 encrypted; Telnet 23 insecure; RDP 3389; VNC 5900 (security
depends on setup)
Routing protocols: RIP = distance vector (max 15 hops); OSPF / IS-IS = link state; EIGRP = hybrid (Cisco); BGP = path vector (Internet
routing).
pf3

Partial preview of the text

Download Networking Protocols Cheat Sheet – Complete Quick Reference (2026) and more Cheat Sheet Computer Networks in PDF only on Docsity!

NETWORKING PROTOCOLS

COMPLETE QUICK REFERENCE | OSI layers, TCP/IP, ports, protocols & commands | Exam / CCNA / Network+

revision

1. OSI MODEL VS. TCP/IP

OSI Layer TCP/IP layer PDU Examples 7 Application Application Data HTTP(S), DNS, SMTP, SSH, FTP 6 Presentation Application Data TLS, JPEG, ASCII 5 Session Application Data NetBIOS, RPC 4 Transport Transport Segment / datagram TCP, UDP, QUIC 3 Network Internet Packet IP, ICMP, OSPF 2 Data Link Network Access Frame Ethernet, Wi-Fi, PPP, VLAN 1 Physical Network Access Bit Cables, radio, signals

Mnemonic (7 → 1): All People Seem To Need Data Processing.

2. TCP VS. UDP

Feature TCP UDP Connection Connection-oriented; 3-way handshake Connectionless Delivery Reliable, ordered; retransmits losses Best-effort; no ordering/retransmission by UDP Control Flow + congestion control No built-in flow/congestion control Header 20–60 bytes 8 bytes Typical uses Web, email, file transfer, SSH DNS, DHCP, VoIP, gaming, streaming

3. CONNECTION SETUP / TEARDOWN

TCP 3-way handshake TCP 4-way close

  1. Client → Server: SYN (seq=x) 1. Client →Server: FIN
  2. Server → Client: SYN-ACK (ack=x+1) 2. Server →Client: ACK
  3. Client → Server: ACK (ack=y+1) 3. Server →Client: FIN Connection established 4. Client →Server: ACK; connection closed

4. HTTP QUICK REFERENCE

HTTP quick ref: GET/HEAD read (safe); POST submits; PUT replaces (idempotent); PATCH partial; DELETE idempotent; OPTIONS capabilities. Status: 2xx success, 3xx redirect, 4xx client error, 5xx server error. HTTP/3 uses QUIC over UDP 443.

4. WELL-KNOWN PORTS (0–1023)

Port Protocol / service Transport 20/21 FTP data / control TCP 22 SSH / SFTP / SCP TCP 23 Telnet (insecure remote login) TCP 25 / 587 SMTP relay / submission TCP 53 DNS UDP/TCP 67 / 68 DHCP server / client UDP 69 TFTP UDP 80 / 443 HTTP / HTTPS TCP; HTTP/3 uses UDP 443 110 / 143 POP3 / IMAP TCP 123 NTP time sync UDP 161 / 162 SNMP query / trap UDP 389 / 636 LDAP / LDAPS TCP/UDP; LDAPS TCP 445 SMB file sharing TCP 514 Syslog UDP

5. REGISTERED / COMMON ALTERNATE PORTS

Port Service 1433 Microsoft SQL Server 1521 Oracle DB 2049 NFS 3306 MySQL 3389 RDP 5432 PostgreSQL 5900 VNC 6379 Redis 8080 / 8443 Alternate HTTP / HTTPS 27017 MongoDB

6. DNS, EMAIL, FILE TRANSFER & REMOTE ACCESS

Topic Remember DNS records A=IPv4; AAAA=IPv6; CNAME=alias; MX=mail; TXT=verification/SPF/DKIM; NS=name server; SOA=zone; PTR=reverse; SRV=service DNS lookup Client → recursive resolver → root → TLD →authoritative server Email SMTP sends (25/587); POP3 receives/downloads (110/995); IMAP syncs mail on server (143/993) File transfer FTP 20/21 insecure; FTPS uses TLS (21/990); SFTP/SCP use SSH port 22; TFTP 69 insecure Remote access SSH 22 encrypted; Telnet 23 insecure; RDP 3389; VNC 5900 (security depends on setup) Routing protocols: RIP = distance vector (max 15 hops); OSPF / IS-IS = link state; EIGRP = hybrid (Cisco); BGP = path vector (Internet routing).

NETWORK LAYERS & ADDRESSING

IP addressing • subnetting • routing • Ethernet / Wi-Fi

9. IPV4 VS. IPV

Feature IPv4 IPv Address size 32-bit 128-bit Format 192.168.1.1 2001:db8:: Header 20–60 bytes 40 bytes fixed Address space ~4.3 billion ~3.4 × 10³⁸ Broadcast / NAT Broadcast; NAT common No broadcast (multicast); NAT usually unnecessary Fragmentation Routers and source Source only

10. IPV4 RANGES & SPECIAL ADDRESSES

Range / address Purpose Classful (legacy) A: 1–126 (/8); B: 128–191 (/16); C: 192–223 (/24); D: multicast; E: reserved 10.0.0.0/8; 172.16.0.0/12; 192.168.0.0/16 Private IPv4 ranges 127.0.0.1; 0.0.0.0 Loopback; unspecified / default-route notation (context- dependent) 255.255.255.255; 169.254.0.0/16; 224.0.0.0/4 Limited broadcast; link-local / APIPA; multicast

11. SUBNET MASK QUICK TABLE

CIDR Mask Addresses Usable hosts* /24 255.255.255.0 256 254 /25 255.255.255.128 128 126 /26 255.255.255.192 64 62 /27 255.255.255.224 32 30 /28 255.255.255.240 16 14 /29 255.255.255.248 8 6 /30 255.255.255.252 4 2 /31 255.255.255.254 2 2 on point-to-point; /32 = single- host route Subnet formula: subnets = 2^(borrowed bits); addresses per subnet = 2^(host bits); traditional usable hosts = addresses −2. /31 point- to-point and /32 routes are special cases.

12. DATA LINK & WI-FI

Technology Standard / speed / note Ethernet IEEE 802.3; 10 Mb/s–400 Gb/s; copper/fiber Wi-Fi IEEE 802.11; wireless LAN Bluetooth IEEE 802.15.1; short-range PAN PPP RFC 1661; point-to-point VLAN IEEE 802.1Q; logical LAN tagging Wi-Fi Name / bands Peak stated rate* 802.11b / g 2.4 GHz 11 / 54 Mb/s 802.11n / Wi-Fi 4 2.4 / 5 GHz 600 Mb/s 802.11ac / Wi-Fi 5 5 GHz 6.9 Gb/s 802.11ax / Wi-Fi 6 2.4 / 5 / 6 GHz 9.6 Gb/s 802.11be / Wi-Fi 7 2.4 / 5 / 6 GHz ~46 Gb/s Ethernet frame (classic): Preamble 7 B | Destination MAC 6 B | Source MAC 6 B | Type 2 B | Payload 46–1500 B | FCS 4 B. MAC = 48 bits; first 24 bits commonly identify vendor OUI.

13. SECURITY PROTOCOLS & VPNS

Protocol Purpose / note TLS / HTTPS Encrypts application traffic; HTTPS normally uses port 443. SSL is deprecated; use TLS. SSH Secure remote access / file transfer (22). IPsec Network-layer protection; transport mode protects payload, tunnel mode encapsulates whole IP packet. WPA2 / WPA3 Wi-Fi security Kerberos 88 Authentication (e.g., Active Directory) LDAP / LDAPS 389 / 636 Directory services RADIUS 1812 / 1813 Authentication, authorization, accounting (AAA) VPN quick compare: OpenVPN = TLS / general-purpose; WireGuard = modern Noise-based design; IPsec/IKEv2 = often useful for mobile; L2TP/IPsec = legacy.

14. NETWORK DEVICES

Device Layer Function Hub / modem / AP / NIC 1 / 1 / 2 / 1–2 Repeat / convert signals; Wi-Fi bridge; network interface Switch / router 2 / 3 Forward frames by MAC / packets by IP Firewall / load balancer 3–7 / 4–7 Filter traffic / distribute requests Proxy / gateway 7 / any Intermediary for requests / connect unlike networks