OSI layers
Short notes on the OSI layers. Color is not the layer key.
L7 Application
HTTP, DNS, SMTP, and SSH. The PDU is Data; look at the URI and hostname. Nginx, Apache, CoreDNS, and HAProxy in HTTP mode sit near this layer.
L6 Presentation
JSON, ASN.1, OpenSSL, and serializers fit this description. Do not assign TLS only to L6.
L5 Session
Sessions and RPC. In practice this overlaps L7.
L4 Transport
TCP, UDP, SCTP, QUIC, and ports. Linux TCP, L4 load balancers, and HAProxy TCP mode sit here.
L3 Network
IP, ICMP, and routing. IPv4, IPv6, FRRouting, routers, and L3 switches sit here.
L2 Data link
Ethernet, 802.1Q, and ARP. MAC, VLAN, Linux bridge, and Open vSwitch sit here.
L1 Physical
1000BASE-T and optical PHY, bits, NICs, and cables.
Where practice overlaps
Practical TCP/IP folds L5–L7 into the application. RFC 1122 is the reference for that model. OSI, TLS, VPN, and proxies span layers.