The four layers
Link layer (L2): Ethernet, Wi-Fi - moves frames between neighbours on a LAN.
Internet layer (L3): IP assigns addresses and routes packets across networks. Volumetric DDoS floods happen here (UDP/ICMP).
Transport layer (L4): TCP and UDP add ports, reliability or speed. SYN floods and UDP game floods target this layer.
Application layer (L7): HTTP, DNS, SMTP - where proxies and WAFs inspect behaviour.