Switches are commonly known as "Layer 2 (Data Link Layer)".
3550 Switches: These switches are working under Layer 2 (Data Link Layer) and it is forward the packets through MAC Address, but if we convert these type of switches into Routers it will function in Layer 3 (Network Layer) of OSI model as it's forward the packets based on the IP addresses.
2950 Switches: These switches are working under Layer 2 (Data Link Layer) of OSI model only and it is forward the packets through MAC Address.
Gateway network device
Hubs and repeaters operate at the Physical Layer of the OSI Model. The Physical Layer is the first layer of the OSI Model.
Hubs are a physical layer (layer 1) device; most switches operate at the Data Link layer (Layer 2) of the OSI model.
It operates on the data link layer of the OSI model (level 2). The switch creates a separate collision domain for each port. Although some switches operate on level 3 of the model and are called multi-layer switches.
Switches / Bridges and hubs work at data link layer, but there are layer three switches which operate at network layer. Dhruv
Layer 3
Repeaters operate at the physical layer of the OSI model.
1. Repeaters (Operate at the OSI Physical Layer).2. Bridges (Operate at the OSI Data Link Layer).3. Routers {and Brouters} (Operate at the OSI Network Layer).
There are no switches that operate on layer 7 (Application layer) on the OSI Model. Switches are a layer-2 device because they manage and switch frames.
The NIC operates on Layer 2 (Data Link Layer) of the OSI Model.
network layer
Router works in Network Layer of OSI model