Network Design and Operations

When an L2 switch receives a frame, which information does it record in its MAC address table?

  1. AThe frame's source MAC address and the port on which the frame arrived
  2. BThe frame's destination MAC address and the port out of which the frame was sent
  3. CA pair made of an IP address in the frame and the MAC address that corresponds to it
Show answer and explanation

Answer: A. The frame's source MAC address and the port on which the frame arrived

An L2 switch looks at the source MAC address of each frame it receives and records in its MAC address table that "this device is behind this port" (learning). To forward a frame, it looks up the destination MAC address in the table; if there is an entry it sends the frame only out of that port, and if not it sends it out of every port except the one it arrived on (flooding). The destination MAC address says nothing about where that device is, so it cannot be used for learning. An entry is removed if no frame arrives from that device for a set time (for example 300 seconds), so the table can follow devices that move.

  • A. Correct. The source address tells the switch which port the device is behind.
  • B. The destination MAC address does not tell the switch which port the destination is behind. Learning uses the source address.
  • C. The mapping between IP and MAC addresses is what hosts and routers look up with ARP and keep (the ARP table).
Practice this topic Back to topic

Related calculators

Books on Network Design and Operations Ad

As an Amazon Associate I earn from qualifying purchases.

More Network Design and Operations questions

  1. An L2 switch with an empty MAC address table has devices on ports 1 to 4, all in the same VLAN. PC-A on port 1 sends a frame to PC-B on port 2, and PC-B then sends a reply frame to PC-A. How are the two frames forwarded?
  2. An L2 switch with four PCs is connected to one interface of a router. A repeater hub with three PCs is connected to the router's other interface. No VLANs are used. Counting a collision domain as the range in which frames can collide on half-duplex Ethernet, which is the correct pair of numbers of broadcast domains and collision domains?
  3. The VLAN ID in an IEEE 802.1Q tag is 12 bits long, and the values 0 and 4095 are reserved for special purposes. How many VLAN IDs can be used to identify VLANs?
  4. Switches SW1 and SW2 both have ports in VLAN 10 and VLAN 20. The two switches are to be connected with a single cable so that devices in the same VLAN can communicate across the switches. Which configuration of the connecting ports is appropriate?
  5. In a network where switches are connected with redundant paths, what role does the Spanning Tree Protocol (STP) play?

Comparisons in this topic