Look at a packet. I don't duplicate the web so here's one I used.
https://en.wikipedia.org/wiki/Ethernet_frame
Notice that at that step, it's not an IP Packet? A lot happens to get from IP packets to Ethernet packets. Once you get that layer under your belt, then you'll understand how the MAC address is used by the switch.
Also, google "What is the difference between a network hub and switch?" This is not a new question but one with many answers which you can choose the one that makes sense to you. I can't hold a class here to see which diagram that sinks in so let's use the power of the web here.
Hi
I have an academic question which i am unable to understand and thus unable to reply to students learnning ICT.
We have a small ICT computer lab with a windows server + switch + 9 computers + Modem / Router for internet + Cyberoam Firewall ... as a LAN set up. We teach ICT to students in grade 8-9-10.
Their textbook (of NETWORKING) mentions "A switch is a more ‘intelligent’ device than a hub: if it receives a message, it checks who it is addressed to, and only sends it to that specific computer. Because of this, networks that use switches are more secure than those that use hubs".
My confusion is during any LAN based working and LAN based data sharing or saving by students / teachers - they personally select the path and folders and Switch does not really do the selection process of which computer is the data to be shared / saved / copied from / pasted etc.
Even while using internet, the firewall checks the MAC ID and applies rules.
Best to my knowledge, the switch only works as routing of data - BUT - the textbook says it works intelligently and checks the recepient's MAC ID and sens data to that PC only.
Thus my question is :-
(1) In which real time activity does a Switch check MAC id of computer and routes data to that computer?
1a) Is it related to any broadcast messages where certain recepients are selected? But here again the software would do the selection and routing.
1b) Does this relate to any emails being downloaded? (But would not the email server do the routing?).
Can any network expert help me please for me to understand the above - practically - as to - in which activity does a switch 'receive' a message and checks who it is addressed to .....
Thanks in advance for all the help.
Pinesh Mehta

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic