Network Design and Operations

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?

  1. AThe first frame is sent only to port 2, and the reply is sent to ports 1, 3 and 4
  2. BThe first frame is sent to ports 2, 3 and 4, and the reply is sent only to port 1
  3. CBoth frames are sent out of every port except the one they arrived on
Show answer and explanation

Answer: B. The first frame is sent to ports 2, 3 and 4, and the reply is sent only to port 1

When the first frame arrives, the switch does not yet know PC-B's MAC address, so it sends the frame out of ports 2, 3 and 4, every port except port 1 where it arrived (flooding). At the same time, it learns that the sender, PC-A, is behind port 1. The reply is addressed to PC-A, which is already in the table, so it is sent only to port 1. The switch also learns that PC-B is behind port 2, so later frames between the two PCs are not flooded. The devices on ports 3 and 4 receive the first frame but discard it because the destination MAC address is not theirs.

  • A. PC-B has not been learned yet, so the first frame cannot be sent to port 2 alone. By the time of the reply, PC-A has been learned.
  • B. Correct. Frames to unknown destinations are flooded, and frames to learned destinations go only to their port.
  • C. The first frame taught the switch where PC-A is, so the reply is not flooded.
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 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?
  2. 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?
  3. 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?
  4. In a network where switches are connected with redundant paths, what role does the Spanning Tree Protocol (STP) play?
  5. In STP, the bridge IDs of three switches are known: SW1 has priority 32768 and MAC address 00-00-5E-00-53-01, SW2 has priority 61440 and MAC address 00-00-5E-00-53-05, and SW3 has priority 4096 and MAC address 00-00-5E-00-53-0A. Which switch is elected as the root bridge?

Comparisons in this topic