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.
Network layer
Data link layer
Switches are on the second layer of the OSI model (Data Link); they do filtering based on host MAC addresses. You may also see a third layer switch; they not only provide all switching capabilities but some layer three routing capabilities too.
Layer 2 - The Data Link Layer Layer 2 of the OSI model provides error-detection capability
The Data Link Layer
Network layer
Network layer
They are defined in the OSI layer known as Data-Link.
Physical Layer of OSI model
Layer 2 data link layer
Data link layer
Layer 2 (Data Link Layer) http://compnetworking.about.com/cs/internetworking/g/bldef_bridge.htm
transport layer
Switches are on the second layer of the OSI model (Data Link); they do filtering based on host MAC addresses. You may also see a third layer switch; they not only provide all switching capabilities but some layer three routing capabilities too.
Application Layer
IP addresses are used primarily by layer 3 (network layer) of the OSI model for routine purposes.
Data Link Layer