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
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.
physical addressing media access control
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.
Access points operate primarily at the Data Link layer (Layer 2) of the OSI model, where they facilitate wireless communication between devices on a local area network (LAN). They manage the data frames and handle MAC addressing, allowing devices to connect to the network. Additionally, access points can also interact with the Network layer (Layer 3) for IP addressing and routing functions.