Does anybody known of hardware that I could slap on to my ONT (one of its ports, just prior to my network traffic leaving the premises) that can gauge TX/RX speeds and amounts? I know I could probably do it with an SBC, but I'm worried about overhead from any OS that I'd deploy.

The purpose is silly. Just for fun.

you are viewing a single comment's thread
view the rest of the comments
[–] [S] 2 points 4 days ago (3 children)

I think all your traffic would appear as RX, since everything would be received by the NIC.

Damn, that's right... Oh well, I'll see what it does soon enough.

In the meantime, I reached out to my ISP and they gave me the IP of the switch so that I don't have to decouple my whole network. They even allowed me to set that IP as the switch's static address, which is otherwise in the range of their rotating dynamic ones. And they adjusted my subscription prices (I have more than one) to the new, slightly cheaper ones. This is a good day, haha.

Thanks for the help! 😊

  • source
  • parent
  • hideshow 3 child comments
  • [–] 2 points 4 days ago (2 children)

    Oh wow, that sounds like a cool ISP! The switch might also support SNMP, so you could get the byte count (to calculate the speed) and other stats off it directly too.

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 2 points 3 days ago (1 child)

    Here's a joke to conclude the matter.

    I connect to one of the switch's ports with my smartphone using a USB-Ethernet dongle. I enter the switch's web UI using the address I got from my ISP. I disable DHCP and set the IP manually to static. I setup the port mirroring and fire up bmon on my terminal emulator (Termux). It turns out either bmon or Android or the USB dongle doesn't have the capabilities to read real-time bandwidth of mirrored traffic. That's not even the joke. Hold on.

    Suddenly, the web UI freezes. I've seen this before... I do a sudo ip a to check my phone's IP address and THEY JUST ROTATED THE DAMN THING. 😂 Threw my phone out of the switch's range. (Was in 176.x.x.x, ended up in 155.x.x.x) I try setting the phone's address manually to a static one within the same range as the switch is set to, to no avail... (The Android prompt required both a default gateway and a DNS server, and I don't know either. Tried the traditional 176.x.0.1 and the likes...) My switch is just out of reach 🤣😭

    At least I managed to setup the port mirroring before the lease renewal/new address handout. I won't be able to actually use it until I move the switch into my LAN to change the address again though, but I'm done with this for the moment. 😅😮‍💨

  • source
  • parent
  • hideshow 1 child comment
  • [–] 2 points 3 days ago

    It turns out either bmon or Android or the USB dongle doesn't have the capabilities to read real-time bandwidth of mirrored traffic.

    Yeah you need promiscuous mode, I highly doubt that's possible on Android without root, and no idea how to do it with root.

    THEY JUST ROTATED THE DAMN THING

    Haha that sucks. If a device is on the same subnet, you won't need a gateway and DNS server. Like if your switch is 176.1.2.3/24 and your phone is 176.1.2.4/24, then that won't require a gateway. Although they could be doing some L3 switching or something which could break that.

  • source
  • parent