533 views
0 votes
0 votes

In link-layer switches ,switch performs the filtering function to discards the frame which is to be redirected to same interface from which it came.

If a frame destined for station 712B13456142 arrives at port 1, the switch consults its table to find the departing port. According to its table, frames for 7l2B13456142 leave through port 1; therefore, there is no need for forwarding, and the frame is dropped.This means that the frame has already been broadcast on
the LAN segment that contains the destination.

My doubt is

1) why does a node broadcast a frame when it has destination's IP and MAC address?

2) Is it necessary for a frame to pass through switch if both source and destination node are on same LAN and source node has destination's IP and MAC address?


 

1 Answer

1 votes
1 votes

Let suppose according to your question OE want to communicate with OF. both are in same LAN. OE sends the frame to Hub and as we know Hub broadcast(except source port) so in that way frame will reach OF and switch. Now as the frame reach switch , switch will first decapsulate frame received and know the source and destination MAC address and now it'll see it's MAC table , to know whether it know those MAC addresses.

If there is entry for source MAC address fine o/w switch will update it's MAC table and add this MAC to port Fa9. after this work it will check whether i have entry for  destination MAC or not. If switch don't have entry for destination MAC address then it will broadcast the frame (except source port) and when the destination device response it like , Hey i'm the one , you are seeking for , know where i 'm..and now switch will add this entry and then unicast the frame to this port.

That's a general process but in your question source and destination belongs to same LAN so in that case when switch see like ohh the destination belongs to same LAN (port Fa9)and thus i can't do anything (switch doesn't forward frame to same port from where frame came)so it discards the frame.

But through your Hub frame already reached destination OF as HUb broadcasted it.

1) Nod don't don anything it's Hub that is broadcasting ..and it broadcast because Hub is  a mindless device , don't contain any entries , don't know any MAC,IP (it's physical layer device)

2) It's absurd question , not getting your actual confusion. Switch works on the bases of physical address. they identify nodes by their physical address while router works on the bases on IP address.If source and destination belongs to same LAN , how router will take decision.. To deliver data in LAN we uses Switch as they works on the bases of MAC address... When source MAC and destination MAC are on same port in switch , it can't help then..to deliver data in LAN we can use hub but as it everytime broadcast , so security is in danger and it increases network congestion (it's quite cheap so we use it).Switches are smart devices so we prefer to use those in LANs.

Related questions

4 votes
4 votes
2 answers
4
Xylene asked Aug 12, 2017
13,248 views
Here what are the number of context switches ? Is it 5 or 6? Do we consider context switch before P1 (i.e during the start) ?