0

I know that modem provides internet access owing to modulation-demodulation. Router provides connection between networks as a gateway.(e.g. between LAN and ISP) Switch provides a local area network(LAN). Router and switch can share internet by means of modem. But why do we use router and switch together? Both of them can distribute the internet to devices in LAN in home usage. That is, they do same thing in home usage. What is the reason of using these devices together? In home usage, Are either router or switch redundant? The second thing I wonder is that many ISP companies give us single device which is 2 in 1. This device contains modem and router. Why do we need router to access internet? I know that router cannot go to internet without modem. So we need just modem to access internet. Why do they give both of them as a single device. I want to understand all of these. If anyone help me, I will be grateful. Thanks in advance.

4
  • My understanding is that a "switch" can isolate traffic based in destination MAC address, where as a router can target based on IP address. In other words, the router works on a higher level.
    – Daniel
    Dec 14, 2014 at 17:34
  • Yes, I know that, but in home usage, are either router or switch redundant? Because, both of them share internet to the devices in local area network. That is, both of them do same thing.
    – Hasan
    Dec 14, 2014 at 17:38
  • My guess is that you're not really getting a "router" for home usage, that its really a switch+modem.
    – Daniel
    Dec 14, 2014 at 17:40
  • i doubt that this question and platform doesnt resembles
    – A.B
    Dec 14, 2014 at 18:24

2 Answers 2

1

Are either router or switch redundant?

The kind of router you use at home has some consumer-friendly features that make it a little different from a "true" enterprise router, and I think that may be the cause of your confusion. If you look at the back of your home router, you will probably see four ports labeled "LAN" where you can connect your devices via Ethernet cable. Those four "LAN" ports, technically speaking, are a switch built right into the router. In other words, home routers are not really just routers, but a router and switch put together. This makes things more consumer friendly because if you have only four wired devices to connect, then you don't need to purchase a switch. In this case, it is true that purchasing a switch would be redundant.

In an enterprise router, however, there is a good chance the router will NOT have a built-in switch, so it may have only two ports: one for your internet connection, and one for your LAN. In that case, you would have to connect a separate switch to the LAN port.

The second thing I wonder is that many ISP companies give us single device which is 2 in 1. This device contains modem and router. Why do we need router to access internet? I know that router cannot go to internet without modem. So we need just modem to access internet.

You are correct: All you really need is a modem to access the Internet. In fact, you could go to the store and purchase just a modem right now, plug it in, activate the modem with your ISP, connect a computer straight to the modem, and browse the Internet just fine without a router at all. In fact, this was the norm about a decade ago.

However, there are some problems with this setup. First, most internet service providers these days only give one public IP address to each customer, so you can only connect one computer to the modem. Consumer routers perform a function known as NAT (Network Address Translation), so that multiple devices can share a single public IP address.

Also, when you directly connect a computer to the modem, you no longer have a private LAN - instead, you are connected directly to the LAN of your Internet service provider which is connected to the Internet. This directly exposes your computer to all the hackers, port scanners, vulnerability-scanning bots, and other not-so-nice stuff on the Internet, with only Windows Firewall to protect you. Consumer routers typically have built-in firewalls which will block almost all incoming connections, so that your computer doesn't have to deal with the bulk of the malicious traffic out there. For these reasons, it is very rare to not use a router.

4
  • Well, can we share the internet with just "modem" and "hub"? I learned from you that ISP gives us just one public IP, and I can connect only one computer to the modem. But this combination looks like perfect for accessing the internet. Is this combination possible?
    – Hasan
    Dec 15, 2014 at 6:40
  • @Hasan In a true modem, you cannot just connect a switch or hub to the modem to share the Internet connection. This is because your ISP's router is probably programmed to give you only one IP address, and if you connect multiple computers via a switch, all of them will try to request an IP address (which your ISP will not allow). A router, on the other hand, will take the one IP address you are provided and use it to make requests on behalf of the computers behind it. This is something a modem+switch combo is not capable of doing.
    – tlng05
    Dec 15, 2014 at 17:57
  • That said, these days many hardware makers are putting router software into their modems, effectively turning the modem into a basic router so that you can connect a switch to a modem to share the Internet connection. Again, it's to make things more consumer-friendly. However, a true, "pure" modem will not allow you to do this.
    – tlng05
    Dec 15, 2014 at 18:03
  • I understand. Thank you so much for your explanation.
    – Hasan
    Dec 15, 2014 at 19:48
0

You want a router at home that you can configure to your own preferences. With a router you can provide internal DHCP leasing, assign IP addresses, create a wireless network with a strong password, filter traffic, and other things. I've never had a "2 in 1" device that provides routing and a modem (I have a modem only at home, with my own router behind it). If I did have one, I would make sure that it's set up the way I want it set up, not doing what the ISP wants it to do - I wouldn't trust them to necessarily be trying to protect your network (as noted above, it could be just a modem + switch, not really a modem + router). Also,you probably do not need any switches in a home network unless you have a wired network with a lot of pcs and need more ethernet ports to plug into.

In short, I think of a router as a line of defense between my network and a direct connection to the internet -- one of the main things it will do is only forward traffic into your network that is meant to go there. A switch will do this too, but less intelligently.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .