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.
Application Layer
The Layer 3 Protocol Data Unit (PDU) is commonly referred to as a packet. In the OSI model, Layer 3 corresponds to the Network layer, which is responsible for routing data between devices across different networks. The packet contains not only the payload (the actual data being transmitted) but also essential header information, such as source and destination IP addresses, that helps in directing the packet through the network.