Skip to main content

CAM table in AP Networking

In AP Networking, a CAM (Content Addressable Memory) table is the lookup table a switch keeps that maps each device's MAC address to the physical port it's connected to, letting the switch forward frames to the right port instead of flooding them everywhere.

This definition is part of Fiveable's AP Networking review, which also has guided practice questions.

Verified for the 2027 AP Networking exam•Last updated November 2026•Fiveable Content Team

What is CAM table?

A CAM table is a switch's memory of who's plugged in where. CAM stands for Content Addressable Memory, and the table holds pairs: a MAC address plus the switch port that address lives on. When a frame arrives, the switch looks up the destination MAC in this table and sends the frame straight to the correct port instead of blasting it out every port.

The table has limited space, and that limit is where security comes in. In a MAC flooding attack, someone sends the switch a flood of fake, distinct MAC addresses. The CAM table fills up and has nowhere to store real entries. Once it's overwhelmed, many switches stop acting like smart switches and start flooding traffic out all ports, which lets an attacker eavesdrop on data meant for someone else. MAC filtering fights this by capping how many MAC addresses, and which specific ones, a single physical port will accept.

Why CAM table matters in AP Networking

The CAM table sits right under topic 3.5 (Controlling the Traffic: Firewalls and Filtering) in Unit 3: Managing Many Connections. It's the thing MAC filtering protects. Learning objective [AP Networking 3.5.A] asks you to explain how MAC filtering strengthens security, and the CAM table is the whole reason that matters. Essential knowledge spells out the chain: MAC flooding sends a switch tons of distinct MAC addresses, overflowing the CAM table, and MAC filtering stops that by limiting which and how many MAC addresses a port accepts. If you can't picture the CAM table filling up, the defense doesn't make sense.

Keep studying AP Networking Unit 3

How CAM table connects across the course

MAC Flooding (Unit 3)

MAC flooding is the attack; the CAM table is the target. The attacker spams fake MAC addresses until the table is full, so the two terms are basically two halves of one story. You can't explain one on the exam without the other.

MAC Filtering (Unit 3)

MAC filtering is the defense that keeps the CAM table safe. By letting a port accept only approved MAC addresses and capping how many it allows, the switch never gets overwhelmed with fake entries, so the table stays accurate.

Firewalls and Access Control Lists (Unit 3)

A CAM table operates at the switch level using MAC addresses, while a firewall and its ACL filter traffic higher up using IP addresses, ports, and services. Same topic 3.5, different layer. Think of CAM table defense as locking the physical door and firewall rules as checking IDs once people are inside.

Is CAM table on the AP Networking exam?

Expect the CAM table to show up as the reason MAC filtering is a security tool, not as a standalone trivia term. An MCQ stem might describe a switch suddenly flooding traffic out all ports and ask you to identify the cause (MAC flooding overflowing the CAM table) or the fix (MAC filtering). For 3.5.A you should be able to explain, in plain words, the full chain: attacker floods fake MAC addresses, CAM table overflows, switch fails, and MAC filtering prevents it by limiting addresses per port. Know the layer too: CAM tables and MAC filtering work with MAC addresses, while firewalls and ACLs work with IP addresses and ports.

CAM table vs access control list (ACL)

A CAM table is built automatically by the switch to remember which MAC address is on which port, and it's a forwarding tool. An ACL is a human-written list of firewall rules that permit or deny traffic based on IP addresses, ports, or services. One is a map of where devices are; the other is a rulebook for what traffic is allowed.

Key things to remember about CAM table

  • A CAM table maps MAC addresses to switch ports so the switch can forward frames to the right port instead of flooding every port.

  • CAM tables have limited space, which is exactly what a MAC flooding attack exploits.

  • When the CAM table overflows, many switches start flooding traffic out all ports, letting an attacker eavesdrop.

  • MAC filtering protects the CAM table by letting a port accept only approved MAC addresses and capping how many it allows.

  • The CAM table works at the MAC-address level, which is lower than where firewalls and ACLs filter using IP addresses and ports.

Frequently asked questions about CAM table

What is a CAM table in networking?

A CAM (Content Addressable Memory) table is the switch's lookup list that maps each device's MAC address to the physical port it's connected to. The switch uses it to forward frames to the correct port instead of sending them out everywhere.

Can a CAM table be attacked?

Yes. In a MAC flooding attack, someone sends the switch a flood of fake, distinct MAC addresses that overflow the CAM table. Once it's full, many switches start flooding traffic out all ports, which lets an attacker listen in on data meant for others.

How does MAC filtering protect the CAM table?

MAC filtering caps how many MAC addresses, and which specific ones, a physical switch port will accept, refusing all others. That prevents an attacker from stuffing the CAM table with fake entries, which is the heart of learning objective 3.5.A.

What's the difference between a CAM table and an ACL?

A CAM table is built automatically by the switch to track which MAC address is on which port, and it handles forwarding. An ACL is a human-written list of firewall rules that permit or deny traffic based on IP addresses, ports, or services, so it works at a higher layer.

Is the CAM table the same thing as a firewall?

No. A firewall filters traffic using rules in an ACL based on IP addresses, ports, and services, while the CAM table just records MAC-to-port mappings on a switch. They live in the same topic (3.5) but operate at different layers of defense.

Keep studying AP Networking

Connect this key term to the AP exam workflow: review the course, practice questions, and check related study tools.