I have a basic understanding of network devices. Switches operate on layer two of the osi model using a mac address table and routers operate on layer three using an ip table. What I fail to understand is when a local or home network connected to the internet would incorporate a switch? Also can a switch share the modem's connection to the web amongst devices on the local connection?