This is a stack. The layers are looked at from bottom to top, once the destination has been reached, the MAC address is removed by the link layer, then the IP addresses are removed by the network layer, then the transport layers remove the port number and reassemble the packets. The application layer presents the data to the recipient in the form they requested.