In a nutshell
The OSI model breaks networking into seven layers, from the application at the top down to the physical wire at the bottom. Sending data adds a header at each layer (encapsulation); receiving strips them off in reverse order. Each layer only ever deals with its counterpart on the other machine.