In the past we use hubs now we use switches. Why ?
All the ports in a hub operates in one COLLISION DOMAIN, but in a switch each port is its own collision domain. How ?
In a collision domain collision occurs and slows down the network, just like a single way traffic.
No collision in different collision domains, like the different ports in a switch: that means a two way traffic, therefore faster traffic.
Also, when you have a 10 MB internet connection going through a 10 port hub, the 10MB will be splited into 10 that is each port can have 1MB internet connection. But a switch have a way of amplifying the internet connection so that each port
will have times 2 of what is coming in.
I am yet to come across a hub that filters base on frames that is destination and sources mac address. In my place I use a brouter to filter base on frames.