🧠 Jin Hyun Park

Jin Hyun Park / Qual Exam Prep / Networking

Networking

Layers, protocols, and a handful of mechanisms you should be able to explain in one sentence each.

The OSI model

Seven layers, from the application down to the wire. Each layer has its own name for the unit of data it handles.

LayerUnitWhat it does
7. ApplicationData (message)The protocols programs use directly: HTTP, SMTP, DNS, and so on.
6. PresentationDataConverts data from the sender's system-specific representation into a common form. Compression and encryption happen here.
5. SessionDataOpens, manages, and closes sessions between applications.
4. TransportSegment (TCP), datagram (UDP)End-to-end reliability: flow control, splitting data into segments and reassembling it, error control. TCP keeps track of segments and retransmits any that are lost.
3. NetworkPacketForwards packets toward their destination, including routing through intermediate routers. IP lives here.
2. Data linkFrameDelivers frames between directly connected nodes. Ethernet and MAC addresses live here.
1. PhysicalBitPuts bits on the cable, fiber, or radio.

Client–server vs. peer-to-peer

Client-server network compared with a peer-to-peer network
Source: networkstraining.com

CSMA/CD

TCP timers

TCP uses four timers to keep a connection reliable.

Ethernet

Address Resolution Protocol (ARP)

Parity bit

Datagrams and fragmentation

Round-trip time (RTT)

TCP three-way handshake

Overview · Useful materials · Sample questions · Algorithms · Architecture · OS · Databases · Automata · AI / ML · Things to remember