Packets are related to which layer
Packets are related to network layer.
The network layer is considered the backbone of the OSI Model. Network layer protocols exist in every host or router. The router examines the header fields of all the IP packets that pass through it.
A packet is the unit of data that is routed between an origin and a destination on the Internet or any other packet-switched network.
Network layer:-
The network layer is
the third level of the open systems interconnection model (OSI Model) and the
layer that provides data routing paths for network communication. Data is
transferred in the form of packets via logical network paths in an ordered
format controlled by the network layer.