OSI model, TCP/IP, and encapsulation

Where the models came from

ISO created the OSI model as a vendor-neutral framework. TCP/IP was already deployed and became the de facto standard, so OSI survives as the reference and teaching model.

Why layered models at all: they manage complexity, specify requirements, keep engineering modular, contain changes, encourage development, and make the whole thing easier to teach and learn.

Host-to-host basics

Source, transmission media, destination. Every message carries source and destination addresses (the envelope analogy).

OSI layers

Lower layers (1-4) move the data. Upper layers (5-7) deal with the content and its presentation.

Reliable vs. unreliable at L4: a file transfer needs reliable; a video stream can drop a pixel unnoticed.

TCP/IP stack

Encapsulation and PDUs

Down the stack on the sender is encapsulation: each layer adds its header, and the link layer adds a trailer (FCS). Up the stack on the receiver is de-encapsulation: strip the header, hand the payload up.

Each layer talks logically to its peer layer on the other host. The L5-7 content is the payload.

The PDU names by layer:

Quick recall