

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


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
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
TCP 3-way handshake TCP 4-way close
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.
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
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
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).
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
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
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.
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.
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.
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