Layers are the paths over which data is transmitted. The Open Systems Intercommunication (OSI) standards define layers as the model for communication over a network.
Following are the layers over which Ethernet hubs and switches operate in-network functioning. Each device does this by targeting MAC addresses.