text
stringlengths
0
6.55k
Address Table: Before Either Frame Is Sent Address: Output
Fred 0200.1111.1111
1
Wilma 0200.3333.3333
(Empty) (Empty)
1
Address Table: After Frame 1 (Fred to Barney)
F0/1 F0/3
F0/2 F0/4
Address: Output 0200.1111.1111 F0/1
2
Address Table: After Frame 2 (Barney to Fred)
Barney 2
0200.2222.2222
Betty 0200.4444.4444
Address: Output
0200.1111.1111 F0/1 0200.2222.2222 F0/2
Figure 5-6 Switch Learning: Empty Table and Adding Two Entries
(Figure 5-6 depicts the MAC learning process only, and ignores the forwarding process and therefore ignores the destination MAC addresses.)
Focus on the learning process and how the MAC table grows at each step as shown on the right side of the figure. The switch begins with an empty MAC table, as shown in the upper-right part of the figure. Then Fred sends his first frame (labeled “1”) to Barney, so the switch
||||||||||||||||||||
||||||||||||||||||||
114 CCNA 200-301 Official Cert Guide, Volume 1
adds an entry for 0200.1111.1111, Fred’s MAC address, associated with interface F0/1. Why F0/1? The frame sent by Fred entered the switch’s F0/1 port. SW1’s logic runs something like this: “The source is MAC 0200.1111.1111, the frame entered F0/1, so from my perspective, 0200.1111.1111 must be reachable out my port F0/...
Continuing the example, when Barney replies in Step 2, the switch adds a second entry, this one for 0200.2222.2222, Barney’s MAC address, along with interface F0/2. Why F0/2? The frame Barney sent entered the switch’s F0/2 interface. Learning always occurs by looking at the source MAC address in the frame and adds the ...
Flooding Unknown Unicast and Broadcast Frames
Now again turn your attention to the forwarding process, using the topology in Figure 5-5. What do you suppose the switch does with Fred’s first frame, the one that occurred when there were no entries in the MAC address table? As it turns out, when there is no matching entry in the table, switches forward the frame out...
Switches flood unknown unicast frames. Flooding means that the switch forwards copies of the frame out all ports, except the port on which the frame was received. The idea is simple: if you do not know where to send it, send it everywhere, to deliver the frame. And, by the way, that device will likely then send a reply...
Switches also flood LAN broadcast frames (frames destined to the Ethernet broadcast address of FFFF.FFFF.FFFF) because this process helps deliver a copy of the frame to all devices in the LAN.
For example, Figure 5-7 shows the same first frame sent by Fred, when the switch’s MAC table is empty. At step 1, Fred sends the frame. At step 2, the switch sends a copy of the frame out all three of the other interfaces.
Fred
0200.1111.1111 1
F0/1
F0/2
Wilma 2 0200.3333.3333
F0/3
F0/4
Address Table: Before Frame Is Sent Address: Output
(Empty) (Empty)
2 Barney
0200.2222.2222
2
Betty 0200.4444.4444
Figure 5-7 Switch Flooding: Unknown Unicast Arrives, Floods Out Other Ports
Avoiding Loops Using Spanning Tree Protocol
The third primary feature of LAN switches is loop prevention, as implemented by Spanning Tree Protocol (STP). Without STP, any flooded frames would loop for an indefinite period of