Layer 4 usually uses segments, layer 3 are packets, layer 2 are frames. Layer 4 uses either tcp (SYN and ACKS) and UDP (connectionless) with port numbers
Layer 3 i.e, network layer of the OSI model is used to IP addressing.
Networking layer of the OSI model
DHCP runs at the application layer of the OSI model.
Primarily at layer 1 and 2. The frame adds this information for these layers.
Layer 3 (network layer).
The Physical layer is responsible for the actual hardware connection. The physical addressing is handled by the Data Link Layer.
Data Link
physical addressing media access control
The OSI model has seven layers whereby each layer has its function. The Data Link Layer is responsible for addressing data messages so that they reach their destination correctly.
Only the Network Layer (Layer 3) portion of the datagram is used by the Network Layer (Layer 3) portion of the TCP/IP Model. The network portion of the datagram includes IP Addressing information, and things such as TTL (Time to Live), and Datagram Priority markings.
Core, Distribution, and Access.
In the OSI model, encapsulation occurs as data is passed down through the layers. At the Application layer (Layer 7), data is created and then passed to the Presentation layer (Layer 6) for formatting. The Session layer (Layer 5) manages sessions, while the Transport layer (Layer 4) adds headers for segmentation and reliability. As data moves down to the Network layer (Layer 3), it receives IP addressing, followed by the Data Link layer (Layer 2), which adds MAC addressing and framing, and finally, the Physical layer (Layer 1) transmits the raw bits over the physical medium. Each layer adds its own header (and sometimes footer) to the data, forming a protocol data unit (PDU) specific to that layer.