OSI Model Layers | Function | TCP/IP Model Layers | PDU | Hardware | Protocols |
1. Physical | Defines the physical aspects of network communication, including cables, connectors, voltage levels, and transmission speed. | Network Access/Link Layer | Bits | NICs, Cables, Hubs | Ethernet, Wi-Fi, Token Ring, Bluetooth, ISDN |
2. Data Link | Facilitates node-to-node data transfer and handles error detection/correction. Adds MAC addresses for node identification. | Network Access | Frame | Switches, Access Points | ARP, PPP, SLIP, Wi-Fi (IEEE 802.11), Frame Relay |
3. Network | Handles logical addressing and routing of data using IP addresses. Ensures that packets are correctly delivered to their destination. | Internet | Packet | Routers, Layer 3 Switches | IP, ICMP, IGMP, IPsec, NAT |
4. Transport | Ensures error-free data transfer by segmenting data and ensuring delivery through protocols like TCP and UDP. | Transport | Segment | Gateways, Load Balancers | TCP, UDP, SCTP, DCCP |
5. Session | Manages sessions between applications, establishing, maintaining, and terminating connections. | (Part of Application Layer) | – | PCs, Mobile Devices | SMB, RPC, NFS |
6. Presentation | Translates data into a format that the application layer can understand, encrypts/decrypts data if needed. | (Part of Application Layer) | – | – | SSL, TLS, JPEG, GIF, HTTPS |
7. Application | Closest to the end-user, this layer facilitates interaction between applications and lower layers. | Application | Data | Proxy Servers, Firewalls | HTTP, FTP, DNS, SSH, SMTP, SNMP |