N

OSI Model Notes

OSI Model

Overview

The OSI (Open Systems Interconnection) Model is a foundational concept in computer networking.

  • It standardizes how devices communicate with each other.
  • It guides developers in designing computer hardware, networking hardware, and software.
  • Also known as the OSI Stack.

Seven Layers of the OSI Model

The OSI Model comprises seven layers, each with specific functions:

LayerNameFunction
7ApplicationUsers interact with applications that use network services to access resources.
6PresentationData is encoded into a usable format and may be encrypted for privacy.
5SessionThis layer maintains communication sessions between different systems.
4TransportThis layer determines how the data will be transmitted, using Transport Control Protocol (TCP) or User Datagram Protocol (UDP).
3NetworkThis layer is responsible for determining the physical path the data will take across multiple networks.
2Data LinkThis layer defines the format of data on the network and associates the physical Media Access Control (MAC) address of the network interface card with the virtual IP address of the system.
1PhysicalThe physical layer is responsible for converting the data into a physical signal representing the raw bits and transmitting it to another device.

Mnemonic to remember the layers (from Layer 1 to Layer 7): "Please Do Not Throw Sausage Pizza Away."

  • Physical
  • Data Link
  • Network
  • Transport
  • Session
  • Presentation
  • Application

Communication Process Through the OSI Stack

The following illustrates how information is communicated through the OSI stack between Computer A and Computer B:

LayerComputer AComputer B
7Information written by a user into a web-enabled messaging application enters the word “Hello” into the text box and clicks Send.The word “Hello” is displayed on the screen within the messaging application.
6The letters of the message are encoded as numbers using a character encoding set by the presentation layer.The presentation layer unencodes the message from numbers to the original, human-readable message “Hello”.
5The session layer was used to establish the connection between the user’s computer and a remote computer and associate the encoded message with the messaging session.Port numbers and identifiers are used to associate the incoming message with a particular application.
4The transport layer is used to determine how the message will be transmitted using either TCP or UDP. The transport layer then reassembles the message using the appropriate mechanisms. For TCP, the sequence numbers are used to reassemble the original message.For TCP, any lost or damaged packets are resent by the origin. In the case of UDP, the packets are simply processed up to the next layer.
3The message is formatted into a network packet that uses IP addresses to track the origin and destination systems involved in the communication.The frames are then reassembled into the original network packet and the IP addresses are examined.
2The network packet is then segmented and formatted into data frames to be transmitted to the next device. Physical MAC addresses are used to track the frame from this device to the next connected device.The NIC sends the received frames to be reassembled and the MAC addresses are examined.
1The NIC (network interface card) converts the bits of the frame into either electrical, light, or radio signals and transmits them to the next device.The bits are received and assembled in the NIC’s memory.

Intermediate Systems

In real-world scenarios, data flow isn't direct. Intermediate systems and networking devices exist between origin and destination.

  • Data ascends and descends through layers at each intermediate system.
  • This continues until the destination IP address matches the packet's destination IP address.

Key Terms

  • Network Packet: Formatted data units that contain control information and a payload of data, transmitted across a network.
  • OSI Model (Open Systems Interconnection Model): A fundamental concept that standardizes network protocols and technology. It contains seven layers with specific responsibilities and is also called the OSI Stack.