Router – Which layer does modem operate and are they still used

mac addressosirouter

I was searching this for quite long time but I haven't found any satisfying result so my question is basically that, if I understand correctly how modems work and when they are used. I have some more questions so here is what I think I know

  1. They work on OSI layer 2 (MAC adresses) and they are connected directly to ISP since they don't know how to work with IP of some webpage which I am requesting (OSI layer 3) (Or they can somehow go up the OSI stack to third layer?)

  2. They are used only when you are accessing internet through telephone cable because they need to modulate/demodulate analog signal for a router or computer to which they are connected.

  3. If number 1 is right and they are connected directly to ISP, what is next? Are packets sent through routers and other networking devices like switches and so?

Best Answer

  1. The role of modems is to modulate and demodulate (hence the word modem) data so that it can flow over the phone line, effectively transforming the data from digital to analog and viceversa. For this reason, they can be considered Layer 1 devices. They cannot work on Layer 3 of the OSI model (routers and Layer 3 switches can do that).

  2. Correct, but they are not necessarily used only with telephone cables. They could also be used with a cable (CATV) line.

  3. Yes, the data flows in the wires to the next network devices. In summary, the next router in the nextwork will receive the stream, deencapsulate it until the layer 3 IP packet inside it is exposed, and will use this information to decide where to send the data. This is repeated until the data arrives at the destination.

And to answer the question in the title: yes, they are still used today. It's just that you don't see them most of they time because they are built-in the routers you buy in the shops.