1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How can I find which PC is using all of my bandwidth?

Discussion in 'Tomato Firmware' started by sofakng, Sep 24, 2009.

  1. sofakng

    sofakng Network Guru Member

    I have a handful of computers and devices on my network but for some reason Tomato's real-time bandwidth monitor is showing I'm downloading at max connection speed (3 Mbps) but I don't know what machine (or device) is doing this.

    Is there a way I can get a breakdown on my connections (or machines) and see what bandwidth each of them is using?

    Even better would be to see what specific TCP/IP connections are using all of the bandwidth...
  2. Planiwa

    Planiwa LI Guru Member

    1. You can use Iptables to collect and awk to track and report, but this may be too much effort for your needs.

    2. You can use QoS as follows:

    -- give each PC its own class (A-E).
    -- look at the QoS chart, the BOTTOM part, to see the bandwith allocation per class in real time.

    (do not look at the top part -- it contains a conceptual flaw)

    3. To get traffic by connection is easy with a current Netfilter/Iptables system which containes connbytes. Unfortunately Tomato's (apparently) does not.

    It can still be done, but that would require considerable conceptual effort. :)
  3. sofakng

    sofakng Network Guru Member

    Thanks for the information!

    I'm actually software developer with a large interest in learning more about TCP/IP and networking (last week I was reading about TCP/IP windows and how they work) so experimenting with netfilter and iptables sounds like something fun.

    However, Tomato's version of netfilter and iptables doesn't contain "connbytes" which is needed for this type of tracking? :(
  4. sofakng

    sofakng Network Guru Member

    # iptables -m connbytes
    iptables v1.3.7: Couldn't load match `connbytes':File not found

    Doh :(

    EDIT: How do I use iptables to list the traffic for my machines? It seems to only list traffic on the router itself. (eg. my SSH connection, etc)
  5. SoftCoder

    SoftCoder Addicted to LI Member

Share This Page