Lab 2
Lab 2
StudentID:22110044
Subject: Networking Essentials
Lab 02: How switch works and watching CAM table with Packet Tracer
3. Network diagram.
4. Tasks
4.2. Watch the flooding behavior
When a broadcast frame is received, the switch will flood out all remaining ports with broadcast
frames. You can watch this by pinging PC2 from PC1.
• Switch to simulation mode
• Click “Play”,
• Open the PC1 command prompt, enter ping 192.168.10.2 then press Enter:
How does the switch behave when the first frame is received? Explain this behavior.
Answer: When PC0 sends an ICMP broadcast frame to PC2's IP address, the switch receives the
frame through the port connected to PC1. At this point, the switch doesn't know PC2's MAC
address, so it sends this broadcast frame out to all ports (except the one it receives) to ensure that
it reaches all devices in the network. This is called flooding. Both PC2 and PC1 will receive this
broadcast frame.
4.3. Watch the CAM table
Task: Explain the CAM table. What is the meaning of value at column “Mac Address”? How
many items are there? How to make CAM table store MAC of all PCs?
Explain the CAM table:
The Content Addressable Memory (CAM) table is a table that a switch uses to store
information about the MAC addresses of network devices that have sent data to the
switch. Each entry in the CAM table contains a MAC address and information about the
network port to which that address was sent. When the switch receives a data frame, it
checks the destination MAC address of that frame and searches the CAM table to
determine which network port needs to send the frame to
o EX:
Port 1: PC1 (MAC Address: AA:BB:CC:DD:EE:01)
Port 2: PC2 (MAC Address: AA:BB:CC:DD:EE:02)
Port 3: PC3 (MAC Address: AA:BB:CC:DD:EE:03)
When PC1 wants to send a data packet to PC2, it sends the data packet to
the switch. The switch checks the destination MAC address
(AA:BB:CC:DD:EE:02) in the data packet and looks it up in the CAM
table. If the CAM table has an entry for this MAC address, the switch
knows it must send the data packet to port 2. Therefore, it forwards the
data packet to port 2 to reach computer B.
What is the meaning of value at column “Mac Address”?
The "MAC address" column in the CAM table contains the MAC addresses of devices
that have communicated with the switch. Each device on a network has a unique MAC
address, which serves as an identifier for that device's network card.
How many items are there?
In case I'm reviewing, there are two devices that have communicated with the switch, the
CAM panel will probably show two items – each corresponding to a MAC address of a
device.
This is image
Result:
4.4. Change network configuration and watch the new CAM table
Task: Reset the simulation,
Modify the above network diagram as shown:
After PC1 pings all PCs, the switch will learn about the MAC addresses of the other PCs
involved in the communication. So, we expect to see entries for all PCs in the CAM table
after the ping command is executed.