Layer 1 – Physical
This is where the electrical bits are generated. Either for wired, wireless, or fiber connections. These are the electrical pulses that create the 1’s and 0’s.
- Wiring
- Fiber
- Network Cards
- Hubs
- Ethernet (IEEE 802.3), Token Ring, RS-232, FDDI, and others
Layer 2 – Data-link
- Ethernet frames
- Network card and drivers
- PPP
- Switches
- Bridge
- MAC addresses
- Layer 2 network maps include the physical layer 1 port
- Translates data frames into bits for Layer 1 processing
- PPP, IEEE 802.2
Layer 3- Network
- Involves subnets and routers
- IP Addresses
- Packets
- ARP
- ICMP
- IPv4, IPv6, ARP, ICMP
Layer 4 – Transport
- Packets: RAW, TCP (segments), UDP (datagrams)
- end-to-end management of the message
- responsible for getting the entire message (fragmentation, out of order packets, etc)
- TCP, UDP, SCTP
Layer 7 – Application
- SMTP, DNS, FTP
- Specific format for the program
- NFS, NIS, DNS, LDAP, telnet, ftp, rlogin, rsh, rcp, RIP, RDISC, SNMP, and others
- Application layer protocols
Steps:
- The OS is notified by the network card that there’s data (Layer 1 & 2)
- The network card driver unwraps the Layer 2 frame and hopefully exposes a Layer 3 packet
- If the OS decides to keep the packet, it unwraps it into a Layer 4 packet.
- Depending on what the packet is (TCP, UDP, etc) it sends it to the proper subsystem.
- The subsystem will then unwrap the Layer 7 data and send it to the proper application with the designated port.
- Going the opposite way, routers will peek inside the packets to see where it’s destined for. If it is destined for a system on the subnet, the OS will simply send an ARP instead of going through the router.
OSI | TCP/IP | Protocol Data Unit | Encapsulation | Devices | Protocol Suite | |
7 | Application | Application | Data | Data (Unsplit) | Layer 7 Firewall | HTTP, DNS, DHCP, FTP, Telnet, SSH, SMTP, POP, IMAP, NTP, SNMP, TLS/SSL, BGP, RIP, SIP |
6 | Presentation | |||||
5 | Session | |||||
4 | Transport | Transport | Segments | Add transport header | Layer 4 Firewall | TCP, UDP |
3 | Network | Internet | Packets | Add network header | Router | IPv4, IPv6, ICMP, ICMPv6, IPSec, OSPF, EIGRP |
2 | Data Link | Network Access | Frames | Add frame header and trailer | Switch, NIC, Wireless AP | MAC, ARP, Ethernet 802.3, CDP, LLPDP, HDLC, PPP, DSL, L2TP, 802.11, SONET/SDH |
1 | Physical | Bits | Hub, NIC, Wireless AP |
Recent Comments