What OSI layer do Access Points operate on?
I am studying for CCNA. In my book I read that wireless access points belong to OSI layer 2. I did some research and I found that is correct. This raised lots of questions in my head so I hope I don't get on your nerves :P
I know that these devices are connected to switches or routers, I also know that AP's use CSMA-CA (at layer 2).
Is this the only reason why they are Layer 2?
Is there some kind of switching table inside the AP where it associates MAC's with output interfaces? What logical stuff does an AP have inside it? I ask this because if it has to forward packets it has to choose whether to send to the air or to the switch or router direclty connected to it.
Others are providing more details answers, a simple view though is that they are wireless switches (which as you know are layer 2 devices). ##Disclaimer - There are many kinds of AP and switch, this is a one size fits all comment, its not always accurate##
Strictly speaking, access points are a L2 device. Their primary function is to bridge 802.11 WLAN traffic to 802.3 Ethernet traffic.
However, in the real world, enterprise wireless vendors often push more functionality to either the AP itself and/or tie them into a controller, with the end result that they often incorporate functionality from higher layers as well.
I don't entirely follow #1, but neither the connection to a switch or router nor the use of CSMA-CA has anything to do with their function as a L2 device. It is a L2 device because that is the layer of the network where it is designed to function. It doesn't care nor need L3 or above to operate and allow devices to communicate (again strictly speaking).
As for #2, yes, an AP (or any bridge) needs to keep track of which interface any individual device is connected. In general (and simply), they work on the principle of frames destined to an associated station gets forwarded out the wireless interface and any other frames get forwarded out the wired interface (or sent to the controller).
As an article (http://blogs.aerohive.com/blog/the-wireless-lan-architecture-blog-3/enterprise-wireless-networking) states, pure wireless access points are mixed L1/L2 devices: L1 hub on wireless side and L2 bridge on wired side.
I think you may have linked the wrong blog post. While I would agree the wireless side of the access point operates like a L1 hub because of the medium, I would still contend that an access point is a L2 device. In reality, an AP is a L2 bridge that is bridging 802.3 Ethernet traffic to 802.11 traffic. When bridges were sold as a product to separate broadcast domains, they often operated like half-duplex hubs on both sides, but they are still L2 devices. Similarly, just because a switch operates like a hub on "one side" when connected to a hub, it is not considered a L1/L2 device.
Looks like you probably meant this blog post. After reading it, my assessment still stands. An AP is a single device with different behaviors on each side, not two devices in one "chassis."