1

[Hello guys firstly this question I myself have migrated from stack exchange to here as networking related questions are not supposed to be asked there. So please don't mark as duplicate. I am the owner of both.]

In the below diagram (click on the url below.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 don't 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 this 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.[SWITCH FILTERING DECISION]: http://www.ciscotests.org/ccna.php?part=3&page=2

  • If there is a duplicate on the other site, perhaps you could flag it and have it migrated. – user273580 Jun 28 '13 at 11:18
  • Could you inline the diagram into the question please – user273580 Jun 28 '13 at 11:18
  • @axrwkr>I have added link in the end of the question.Pasting the link again here.ciscotests.org/ccna.php?part=3&page=2 – Poorvi Jun 28 '13 at 11:26
  • It doesn't know. It just pushes the packets to the whole range for everybody to know. – Piotr Kula Jun 28 '13 at 11:35
  • @ppumkin>so even you are agreeing to my understanding that for the first time it will flood and next time onwards,it starts filtering..am i right?But in the actual scenario,even for the 1st time ,it just filtersout.I tried the topology in packet tracer and got to know this. – Poorvi Jun 28 '13 at 11:45
0

The explanation I can come up with is that the switch will be recording the MAC addresses of all frames that pass through it, per interface, not just those it delivers traffic successfully to.

The first time Fred talks to Wilma, since it's also flooded out to E0 due to the hub, at that point the switch puts that MAC in its CAM. So it knows at that point that Wilma's MAC is "behind" E0.

|improve this answer|||||
  • >i agree .but at the point when frame reaches E0 of the switch,Wilma has not send any reply to Fred(ack-saying that i received the frame) via port P1 of Hub.So there is no way of getting mac address of wilma for the switch to update its mac table.Then how come it filters? – Poorvi Jun 28 '13 at 13:01
  • Good point. Maybe port security or such is enabled on E1 and it is only allowing specific MAC's through? Maybe E1 is shutdown? – LawrenceC Jun 28 '13 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.