OSI Model, TCP vs UDP, IP Address & Subnetting: Answers
The networking questions security learners search most, answered in two or three lines each.
OSI model
What are the 7 layers of the OSI model?
Physical, Data Link, Network, Transport, Session, Presentation and Application (layers 1 to 7). A common memory aid is Please Do Not Throw Sausage Pizza Away.
What is the difference between the OSI and TCP/IP models?
OSI is a 7-layer reference model used for teaching and troubleshooting. TCP/IP is the 4-layer model the internet actually uses: Link, Internet, Transport and Application.
Protocols
What is the difference between TCP and UDP?
TCP is connection-oriented, reliable and ordered, using a three-way handshake (SYN, SYN-ACK, ACK); it is used for web and email. UDP is connectionless and faster with no delivery guarantee, used for DNS, streaming and games.
What are common port numbers to know?
HTTP 80, HTTPS 443, SSH 22, FTP 21, Telnet 23, SMTP 25, DNS 53, RDP 3389 and MySQL 3306.
Addressing
What is an IP address?
An IP address is a numeric label that identifies a device on a network. IPv4 uses 32 bits (such as 192.168.1.10) and IPv6 uses 128 bits.
What is subnetting?
Subnetting splits a network into smaller networks using a subnet mask, such as /24 (255.255.255.0), which gives 254 usable hosts. It improves organisation, performance and security by segmenting traffic.