Networking stacks are layered so each level solves one problem and talks to the level above and below through well-defined interfaces. The OSI model (7 layers) is a reference framework; the TCP/IP stack (4 layers) is what the Internet actually runs. Understanding both lets you read captures, configs, and RFCs without getting lost.
OSI — seven logical layers
TCP/IP — four practical layers
Encapsulation on the wire