solulubeta
Sign in
Cheat Sheets / CS Theory
01.03 · Cheat sheet

Computer Networks

The OSI and TCP/IP layers, TCP vs UDP, ports, IP addressing and subnets, what happens when you open a URL, devices and protocols on one page.

3 min Cheat sheet Pro

The networking facts that come up in every CS-fundamentals round.

OSI model (top to bottom)

#LayerExamplesUnit
7ApplicationHTTP, DNS, SMTP, FTPData
6PresentationTLS, encoding, compressionData
5SessionSessions, syncData
4TransportTCP, UDP, portsSegment
3NetworkIP, ICMP, routersPacket
2Data linkEthernet, MAC, switchesFrame
1PhysicalCables, signals, hubsBits

Remember 7 → 1: All People Seem To Need Data Processing. TCP/IP model: Application, Transport, Internet, Network access.

TCP vs UDP

TCPUDP
ConnectionYes (3-way handshake)No
Reliable, orderedYesNo
SpeedSlowerFaster
Header20 bytes or more8 bytes
Used forWeb, email, filesDNS, video, games, calls

Handshake: SYN → SYN-ACK → ACK. Close: FIN and ACK in each direction.

solulu Pro

Continue this cheat sheet with Pro

Inside: 8 sections.

  • OSI model (top to bottom)
  • TCP vs UDP
  • Common ports
  • IP addressing
  • What happens when you open a URL
  • Devices
  • +2 more
Lifetime ₹1,999 ₹999 · Launch offer
Mark this as done when you are finished.

Item 3 of 12 · updated 2026-10-13