How the switch intelligently decides destination is also on the same interface simila
In the above diagram(consider the first diagram only for this question) assume switch has 2 interfaces E0(left) and E1(right) and Fred is connected to P0 of Hub and Wilma to P1 of Hub and switch to port P3 of Hub and assume MAC address table of switch is EMPTY.
Now assume Fred is sending a frame to Wilma, which is also on the E0 interface. As per my understanding, first Fred sends to Port0 of Hub and Hub should simply flash it to P1 and P3 ports simultaneously. Since the MAC table is empty along with Wilma even Barney and Betty should receive the frame and it will be discarded by them .When Wilma sends a reply back to Fred via port P1 of Hub,it will be again flashed to P0 as well as P1 and now mac table will be updated with Wilma against E0.So next time onwards,anything to Wilma will be filtered by switch.
But actually what happens is at the first time itself the frame is discarded at interface E1 of switch. Wilma then reply back to Fred via port P1 of Hub, saying I received the frame.Even before this reply from Wilma the switch decides to filter the frame because it received the frame on port E0, and it knows that Wilma’s MAC is also located out E0.
So what is confusing me is how switch intelligently comes to know Wilma is also on E0 interface. Because mac address table is empty in the beginning.[Guys please dont assume that its because of the reply message from Wilma to port P1 of Hub which is going to be forwarded to E0 of switch 1 and mac table is updated. Because I verified the same on cisco packet tracer, frame at E1 is discarded even before reply from Wilma].
Sorry in advance for being so lengthy.Its just for easy understanding for readers. Consider only the first diagram in the website.Geeks pls clarify my doubt......
Comments
-
Clevernamehere Member Posts: 34 ■■■□□□□□□□If I'm understanding your question right the switch wouldn't forward the frame because the destination came through on E0. When the packet hits the hub, the hub blasts it out all other ports. The switch gets this frame destined for E0 on the E0 interface. Because it knows this frame destined for E0 is coming over the E0 interface it doesn't need to forward the frame to anyone connected to interface E1 so it drops (or filters) the frame. Someone please correct me if I got that wrong.
-
subi09 Registered Users Posts: 2 ■□□□□□□□□□hey that is what i asked how come switch come to know that destination is on the E0 interface as the MAC table is empty???