LOGBOOK

HELP

1 / 11
Other keys: showSpace: good1-4: rate0: skip5: flag

Question

What do the terms "ingress" and "egress" mean in switching, and why does a switch never forward a frame out the ingress port?

Answer

Ingress = traffic entering the switch port; Egress = traffic leaving the switch port.

These are fundamental switching terms you'll see throughout Cisco documentation:

  • Ingress — the interface where a frame arrives
  • Egress — the interface where a frame is sent out

A switch never forwards a frame back out the port it arrived on. This is because the source device is already on that segment — sending the frame back would be pointless and could cause loops or duplicate traffic.

The switch uses its MAC (Media Access Control) address table (mapping destination MAC addresses to ports) to determine which egress port to use. If it doesn't know the destination, it floods the frame out all ports except the ingress port.

Go deeper:

or press any other key

Question

What is a CAM table, and how does a switch build it?

Answer

A CAM (Content Addressable Memory) table — also called the MAC (Media Access Control) address table — maps MAC addresses to switch ports, and is built dynamically by examining source addresses of incoming frames.

Learning from source MAC: add/refresh/move entries with a 5-minute aging timer.

* Building the CAM table from source MACs. *

Unlike regular memory where you search by address to find data, a CAM table works in reverse: you search by content (the MAC address) and it returns the location (the port number). This is what makes switching so fast.

How it's built:

  1. A frame arrives on a port
  2. The switch reads the source MAC address
  3. It records the mapping: source MAC → ingress port
  4. Each entry has a 5-minute aging timer — if no frames from that MAC arrive within 5 minutes, the entry is removed

The table starts empty when the switch boots. Over time, as devices communicate, the switch "learns" the network topology organically.

Tip: Think of CAM as a reverse phone book — instead of looking up a name to find a number, you look up a MAC to find a port.

Go deeper:

or press any other key