Networking - Network Layers

In the OSI (Open Systems Interconnection) reference model, the communications between a computing system are split into seven different abstraction layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.

One popular mnemonic, starting with Layer 7, is All People Seem To Need Data Processing.

LayerDescriptionCommentExamples
1PhysicalActual hardware sits at this layer. It transmits signals over media.Cable, RJ45
2DatalinkTranslates binary (or BITs) into signals and allows upper layers to access media.MAC, Switches
3NetworkThis layer determines how data is sent to the receiving device. It’s responsible for packet forwarding, routing, and addressing.IP, Routers
4TransportThis layer coordinates data transfer between system and hosts, including error-checking and data recovery.TCP, UDP, Port numbers
5SessionThis layer establishes and terminates connections between devices. It also determines which packets belong to which text and image files.Syn/Ack
6PresentationThis layer converts data to and from the Application layer. In other words, it translates application formatting to network formatting and vice versa. This allows the different layers to understand each other.Encryption, ASCII, PNG, MIDI
7ApplicationMost of what the user actually interacts with is at this layer. Web browsers and other internet-connected applications (like Skype or Outlook) use Layer 7 application protocols.NMP, HTTP, FTP