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.
When independent networks or links are connected to create internet-works
(network of networks) or a large network, the connecting devices (called routers
or switches) route or switch the packets to their final destination. One of the functions of the NETWORK LAYER is to provide this mechanism.
OSI is a general model for networking given by ISO. OSI model has Seven Layer and each layer have certain functions and responsibilities. The switch can be a two layer switch that is a bridge and a three layer switch that is a router.
Most switches operate at layer 2 or the Data Link layer.
A switch is mainly a layer 2 device (because it switches on the MAC address)
a switch basically operates at the datalink layer of the OSI model,whereas the routers and the gateways operate at the network layer
layer 2 data link
layer 2: data link
layer 2
physical
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
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).
Repeaters operate at the physical layer of the OSI model.
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