Alpha Centauri Studies
CoursesFor Institutions

Loading...

Alpha Centauri Studies

CSEC past papers, worked

Past papers worked question by question, and courses built on the CSEC syllabus, for students across the Caribbean.

Serving Caribbean students since 2025

Explore

CoursesAboutContact

Support

PrivacyTermsHelp

Subscribe to Our Newsletter

New papers and courses, when they land.

Connect With Us
© 2026 Alpha Centauri Studies. All rights reserved.
1.13 Switching concepts

TutorialLab M5 min

Lab M: Process of Building MAC Address Table

Lab M: Process of Building MAC Address Table

We know that a switch has many advantages over a hub. One of the major reason behind switch’s popularity over hub is its Unicast transmission method. A Switch has ability to transmit a frame only to a device that deserve to receive it. For this, switch uses its MAC Address Table to make a forwarding decision. Whenever a switch is powered on, its MAC address table is blank. When the switch receives a frame on an interface, it places the source MAC address of sending device in its MAC address table. However, the switch has still no idea about the destination MAC address hence, it floods the frame to all its active interfaces except the interface from where it receives that frame. This is what called flooding.

The device, of which the MAC address matches, answers and sends a frame back, then the switch takes the source MAC address from the received frame and place it in the MAC address table. Once the switch has learned all the MAC addresses and the MAC address table is fully updated, the devices can make a one-to-one communication (unicast). From now, the frames will only be forwarded the between the devices that deserve to participate in the communication process. That is why the layer-2 switches are considered better than hubs. We know that -in a hub-based network, all the each frame is forwarded out to all the active ports every time.

We will use the following topology to explain how does a switch build the MAC address table?

A switch with three hosts, used to watch a MAC address table fill. ESW1 is in the middle. PC1 is to its left, its e0 interface cabled to the switch port f0/0, and its MAC address is 0050.7966.6800. PC2 is above and to the right, its e0 interface cabled to switch port f0/1, with MAC address 0050.7966.6801. PC3 is below and to the right, its e0 interface cabled to switch port f0/2, with MAC address 0050.7966.6802. All three hosts are drawn as VPCS machines. No IP addresses are shown.

In the preceding figure, there are four hosts attached to a switch. When the switch is powered on, its MAC address table will be blank.

  1. We assume that PC1 sends a frame to PC3.

  2. The switch will receive the frame on the F0/ 0 interface and will place the source MAC address in the MAC address table.

  3. Since the MAC address of PC3 will not be available in the switch’s MAC address table, the frame will be forwarded out (flooded) to all the active interfaces.

  4. PC3 will receive the frame and will respond to PC1. The switch will receive this frame on the interface F0/ 2 and will place the source MAC address in the MAC address table.

  5. Now, PC1 and PC3 can make a one-to-one communication to each other. However, PC2 will not be able to see the frames transmitting between PC1 and PC3. When a device will communicate to PC2, its MAC address will also be updated in the switch’s MAC address table.

  6. Now, switch will have all the MAC addresses in its MAC address table and all the devices will be able make one-to-one communication. Once the MAC address table is fully updated, it will look like the following.

A three column table listing each host, the switch interface it is reached through, and its MAC address. PC1 is on Fa0/0 with MAC 0050.7966.6800. PC2 is on Fa0/1 with MAC 0050.7966.6801. PC3 is on Fa0/2 with MAC 0050.7966.6802.

However, if the devices do not transfer frames to the switch again within a certain amount of time called aging-time, the switch will remove the MAC addresses of those devices from the MAC address table to keep the MAC address table up-to-dated.

The following figure shows the MAC address table and the default aging-time.

The console of switch ESW1 after two show commands. show mac-address-table prints a table under the headings Destination Address, Address Type, VLAN and Destination Port. The first entry is cc01.350c.0000, of type Self, on VLAN 1, against Vlan1. Three learned entries follow, all Dynamic and all on VLAN 1: 0050.7966.6800 on FastEthernet0/0, 0050.7966.6801 on FastEthernet0/1 and 0050.7966.6802 on FastEthernet0/2. After three bare prompts, show mac-address-table aging-time replies "Mac address aging time 300", so entries are held for 300 seconds. The source boxes the first command, the three dynamic rows, and the aging-time command with its reply.

In the preceding figure Dynamic means the entries are added dynamically. However, MAC addresses can be defined manually this will be called Static address type.

That’s all about how a switch does build the MAC address table? ______

Your answers

Nothing here is marked. Most of these answers are read off your own machine, so there is no right value to compare them against; they are kept so your work survives.

Check your answersEvery question in this lab, answered. Take your own capture first.→

Source: itexamanswers.net