The OSI Model: A Simple Explanation

I am excited to continue my learning journey in DevOps. I believe that DevOps is the future of software development, and I am excited to be a part of the movement.
The OSI (Open Systems Interconnection) model is a conceptual framework for understanding how communication occurs between different devices in a network. It is divided into seven layers, each of which is responsible for a specific aspect of communication. In this blog, we will explain each layer of the OSI model with examples.
| 7. Application Layer |
| 6. Presentation Layer |
| 5. Session Layer |
| 4. Transport Layer |
| 3. Network Layer |
| 2. Data Link Layer |
| 1. Physical Layer |
1. Physical Layer(Transporting Binary bits)
The physical layer is responsible for the transmission and reception of raw data between devices. So it consist of L1 technologies that transports the Data in bits to Hosts(binary 0's &1's)
Address Scheme : Binary Bits
Examples of physical layer devices include:
Ethernet cables
Coaxial
Fibre optic cables
Wireless access points
Network interface cards (NICs)
2. Data Link Layer(Hop to Hop)
The data link layer is responsible for the reliable transfer of data between devices over a physical link. It includes protocols for error detection and correction, as well as flow control to prevent data loss. It uses MAC address to communicate.
Address Scheme : MAC Address
MAC Address example:
For windows
94-65-9C-3B-8S-E7(uses '-' in between)For Linux
94:65:9C:3B:8S:E7(uses ':' in between)For cisco/routers/switvhes
9465.9C3B.8AE7(uses '.' In between)
Examples of L2 technology devices include:
Ethernet switches
Wireless access points
Network bridges
Network interface cards (NICs)
3. Network Layer(End to End)
The network layer is responsible for the routing of data between devices on different networks. It includes protocols for addressing and routing, such as IP (Internet Protocol).
Address Scheme: IP Addresses
Examples of network layer devices include:
Routers
Layer 3 switches
Firewalls
IP phones
Anthing with IP Addresses
4. Transport Layer(Service to Service)
The transport layer is responsible for the reliable transfer of data between applications running on different devices. It includes protocols such as TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).
Servers listen for requests to pre-defined Ports
Client selects random Ports for each connection(when you open same website in 3 different tabs)
Ports 0-65535 for TCP
Ports 0-65535 for UDP
Address Scheme : PORTS
Examples of transport layer devices include:
Load balancers
Firewalls
VPN gateways
Web application firewalls
5. Session Layer
The session layer is responsible for establishing and managing sessions between applications running on different devices. It includes protocols for session establishment, maintenance, and termination. Examples of session layer devices include:
Remote desktop software
Video conferencing software
Telnet clients
FTP clients
6. Presentation Layer
The presentation layer is responsible for the formatting and presentation of data to the application layer. It includes protocols for data encryption and compression. Examples of presentation layer devices include:
SSL/TLS encryption software
Video codecs
Audio codecs
Image compression software
7. Application Layer
The application layer is responsible for providing services to applications running on different devices. It includes protocols such as HTTP (Hypertext Transfer Protocol) and FTP (File Transfer Protocol). Examples of application layer devices include:
Web browsers
Email clients
FTP clients
VoIP software
In conclusion, the OSI model provides a standardized framework for understanding how communication occurs between devices in a network. By dividing the communication process into 7 layers, some model consists of only 4 Layers Application, Presentation & Session layers are combine and called Application Layer(TCP/IP) it allows for easier troubleshooting and interoperability between devices from different manufacturers. Understanding the OSI model and the devices that operate at each layer is essential for designing, implementing, and maintaining a robust and secure network.



