Encapsulation is a process used by network layers in networking stacks, like the OSI or TCP/IP stacks, so that data from applications that needs to be transported across a network is wrapped, or encapsulated, in data packets with header and footer information that the other layers in the stack can use to route the packet on.