Definition: OSI stands for Open Systems Interconnection model.
Purpose: Describes the process of data as it traverses networks, providing a broad overview rather than detailed descriptions.
Relation to Protocols: While based on TCP/IP, OSI can apply to many different protocols, allowing for a common understanding across various IT professionals.
The Layers of the OSI Model
Layer 7: Application Layer
Interfaces with user applications.
Examples: HTTP, HTTPS, FTP, DNS, POP3.
Layer 6: Presentation Layer
Formats data for the user.
Involves character encoding, encryption, and decryption.
Works closely with the Application Layer.
Layer 5: Session Layer
Manages sessions between devices.
Responsible for starting, managing, and terminating sessions.
Layer 4: Transport Layer
Ensures data is transported from one device to another.
Commonly associated with TCP (Transmission Control Protocol) and UDP (User Datagram Protocol).
May involve segmenting large data into smaller units.
Layer 3: Network Layer
Responsible for routing data based on IP addresses.
Can fragment data for transmission.
Layer 2: Data Link Layer
Facilitates communication between devices in the same network.
Often called the MAC address layer, as it deals with hardware addresses (Media Access Control).
Switches operate at this layer to forward traffic based on MAC addresses.
Layer 1: Physical Layer
Concerns the physical transmission of data (signals) through cables or wireless.
Troubleshooting at this layer involves checking cables, fiber optics, and wireless signals.
Key Concepts for Each Layer
Layer 1 (Physical): Cables, signal integrity, hardware issues (e.g., bad cables).
Layer 2 (Data Link): MAC addresses, Ethernet frames, switching processes.
Layer 3 (Network): IP addressing, routing, subnet masks.
Layer 4 (Transport): TCP/UDP ports, data segmentation, communication oversight.
Layer 5 (Session): Session initiation, control protocols, tunneling.
Layer 6 (Presentation): Data formatting for display, encryption (SSL/TLS).
Layer 7 (Application): User interfaces, application data interactions.
Real-World Application of OSI Model
Wireshark Example: Used to capture and analyze network data.