Okay, I’ve been watching lots of YouTube videos about switches and I’ve just made myself more confused. Managed versus unmanaged seems to be having a GUI versus not having a GUI, but why would anyone want a GUI on a switch? Shouldn’t your router do that? Also, a switch is like a tube station for local traffic, essentially an extension lead, so why do some have fans?

  • sabreW4K3@lazysoci.alOP
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    2 months ago

    Thank you. So based on this, shouldn’t things like OpenWRT and OPNSense be made for switches rather than routers? Since the switch seems to be doing all the heavy lifting.

    • chiisana@lemmy.chiisana.net
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 months ago

      If you use everything from the same vendor, you could manage them in one place (see Ubiquiti’s UniFi stack as example), but at the end of the day, they serve different purposes and target different parts of your network.

    • survivalmachine@beehaw.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      2 months ago

      Switches are Layer-2 devices (data link layer). They operate on FRAMES and use MAC addresses to send data around between devices on the SAME NETWORK.

      Routers are Layer-3 devices (network layer). They operate on PACKETS (which is basically a wrapper around FRAMES) and IP addresses to send traffic between DIFFERENT NETWORKS.

      Switches may have some smart capabilities, such as creating separate logical networks (VLANs), or providing power to PoE devices, or prioritizing layer-2 traffic within a lan (CoS - class of service) and they do all the “heavy lifting” of slinging frames around to the right device on your LAN.

      Routers tend to do all the “heavy lifting” of routing packets BETWEEN NETWORKS. They sit at the perimeter of networks (between your LAN and the internet, for example, or between your LAN and another DMZ LAN in your house, or maybe a GUEST LAN). They are often paired with firewall features to inspect the traffic and only allow certain types of traffic through one direction or the other, or they may simply route packets. They can also prioritize layer-3 traffic (QoS - quality of service).

      A lot of things can get really confusing between the two because many routers have built-in switches, so they do some layer-2 stuff. And more expensive switches can even have some routing features to allow traffic to hop from one VLAN to another without going all the way out to a router (called layer-3 switches, though you typically don’t see these in homes outside the computer enthusiast community – they’re more of an enterprise thing).

      I think the reason you don’t see OpenWRT or OPNSense for switches is because simple networks don’t need the advanced switching capabilities that such a product would provide, and highly complex networks often need the speed of hardware-based switching and don’t want to slow it down with a software layer.

      • sabreW4K3@lazysoci.alOP
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 months ago

        I don’t know if anyone has told you this today, but you’re awesome! Thank you for writing that out.