OSI and TCP/IP Model
TLDR;
Open System Interconnection (OSI) Model: This is a theoretical framework with 7 detailed layers that explain network fundamentals and communication.
Physical
Data Link
Network
Transport
Session
Presentation
Application
TCP/IP Model: This practical model was developed to standardize communication protocols for the Internet and real-world networks. It merges OSI layers into 4 layers for simplicity.
Link/Network Access
Internet/Network
Transport
Application
Layer 7 - Application
This is the highest layer in the OSI model, allowing users to access network resources and services. It is the only layer seen by end users - it provides an interface that is the base of all other activities.
Layer 6 - Presentation
This layer transforms the data it receives into a format the Application layer can read.
The data encoding and decoding depend on the application protocol sending or receiving the data.
This layer also handles encryption and decryption used for securing data.
Layer 5 - Session
This layer establishes, manages, and terminates connections between communicating devices and services.
It is also responsible for establishing whether a connection is duplex or half-duplex and for gracefully closing a connection between hosts.
Layer 4 - Transport
The primary purpose of this layer is to provide reliable data transmission to lower layers.
Its features include flow control, segmentation, desegmentation, and error control; it ensures that data moves error-free from point to point.
The transport layer provides services to connection-oriented (TCP) and connectionless (UDP) protocols.
Firewalls and proxies operate at this layer.
Layer 3 - Network
It is responsible for routing data between physical networks.
It is also responsible for logically addressing network hosts (IP address), packet segmentation, protocol identification, and, in some cases, error detection.
Routers operate at this level.
Layer 2 - Data Link
Provides the means of transporting data across a physical network (LAN).
Its primary purpose is to provide an addressing scheme that can be used to identify physical devices (MAC) and provide error-checking features to ensure data integrity.
Network switches operate at this layer.
Layer 1 - Physical
The lowest layer of the OSI model is the physical medium through which network data is transferred.
It defines the physical and electrical nature of all hardware used - voltages, hubs, network adaptors, repeaters, & cabling specifications.
It establishes and terminates connections, provides a means for sharing communication resources, and converts signals from digital to analog and vice versa.
Model Summary
7 - Application
4 - Application
FTP/S, SSH, Telnet, SMTP/S, DNS, DHCP, TFTP, HTTP/S, Kerberos, POP3, NTP, RPC, IMAP, SNMP, IRC, LDAP/S, MSSQL, MySQL, PostgreSQL, RADIUS, SIP, NFS
User interface for accessing network services.
6 - Presentation
Application - Merged
SSL/TLS, JPEG, MPEG, ASCII, EBCDIC
Data formatting, encryption, and compression
5 - Session
Application - Merged
NetBIOS, RPC, PPTP, SMB, OpenVPN,
Manages sessions and data exchange between hosts
4 - Transport
3 - Transport
ISAKM, IKE
Reliable delivery, segmentation, flow control
3 - Network
2 - Internet
IP, ICMP, ARP, IGMP, NAT, OSPF, BGP, IPSec
Routing, addressing, logical data transmission
2 - Data Link
1 - Link (Network Access)
Ethernet, PPP, Frame Relay, HDLC, L2TP, PPTP, LLDP, MPLS
Framing, error detection, physical addressing
1 - Physical
Link (Network Access) - Merged
Ethernet, Fiber, Wireless
Physical transmission of raw bits over medium
Last updated