Different textbooks may give you different answers to this question. In several I've seen, the "packet" is complete in the data link layer (layer 2) and is known as a 'frame' in the physical layer (layer 1).
Others may indicate a packet is the result of the physical layer (layer 1). In other descriptions the terms packet and frame are interchanged in the layer 1 and 2 of the OSI model.
LAPD
Packet switching is considered part of layer 3 of the OSI model.Packet switching is considered part of layer 3 of the OSI model.Packet switching is considered part of layer 3 of the OSI model.Packet switching is considered part of layer 3 of the OSI model.
Packet switching breaks the original data into smaller segments per packet before transmission. This is done in the layer 4 transport layer of the OSI model.
Layer 3,4 and 7
A Protocol Data Unit (PDU) is a unit of data specified in a protocol of a given layer of the OSI model. Each layer has its own PDU: at the Application layer, it's called a message; at the Transport layer, it's a segment (or datagram in UDP); at the Network layer, it's a packet; at the Data Link layer, it's a frame; and at the Physical layer, it's a bit or symbol. These PDUs help in managing and encapsulating data as it traverses through the layers of the OSI model.
Data link layer
The Network Layer
Layer 2 (Data Link Layer) http://compnetworking.about.com/cs/internetworking/g/bldef_bridge.htm
It depends on which textbook you are reading; some textbooks state that the frame is constructed in the data link layer (layer 2) and transmitted out the physical layer as a packet. Some other textbooks will say that the packet is created in layer 2 and transmitted out the physical layer as a frame.
the network layer --> check your question. ^^^^^^^^^^^^^^^^^^^^^^^^^^^ That is totally not the right answer, how about you actually read the book for the course. It is the data link layer that does encapsulation. I agree - its the Data Link Layer which encapsulates the Network layer...NOT the Network Layer.
In the OSI model, each layer has a specific Protocol Data Unit (PDU). At the application layer, the PDU is called a message; at the transport layer, it is a segment (for TCP) or a datagram (for UDP); at the network layer, it is a packet; at the data link layer, it is a frame; and at the physical layer, the PDU is a bit. Each PDU encapsulates the relevant data and control information required for communication at that particular layer, facilitating the flow of data through the network.
Application Layer