Coder Social home page Coder Social logo

Comments (2)

rchac avatar rchac commented on June 21, 2024

the devices connected to the same customer should have same Min/Max download/upload bandwidth.

They will, provided the CircuitID is set to be the same for all devices for that customer.

Is there any differences between defining several device for a customer and defining one device with several IP addresses?

Not in terms of shaping, no. It's the same result. It may render on the Web UI differently. Let's say you defined 10 devices for one customer. You have 20 IP filters in XDP all pointing at a single TC CAKE qdisc representing that customer. So if a customer pulls 50Mbps for device A and 50 Mbps for device B, the customer's qdisc will show 100Mbps throughput. Because every customer device points to the same qdisc, you don't have to worry about multiple devices for one customer impacting host fairness.

Is it OK to directly define the BW in the device and not define any customer as the parent of the device? PS: in this way, we would have a flat architecture where all the devices directly connect to the root.

There's an HTB per CPU core, so there is no "root" qdisc you can attach customers/devices to (the mq qdisc is the true root but spans out to HTBs per core). You can pack all your clients onto one HTB root, but that then limits everything to one CPU core and 1-8Gbps depending on that CPU's speed.

There's no real performance drawback to using customers in the hierarchy. If you want to be able to rate limit LibreQoS throughput at the edge with one big shaper (to prevent packet loss when exceeding your upstream ISP connection's rate), the best bet is to use a system with a very high single-thread Passmark rating and few CPU cores, assigning every customer/circuit to the same Node (which will run on CPU 0). That way whatever rate you set for that Node will be the true ceil for all customers. That only works up to about 8Gbps though. Another way would be to divvy up traffic per CPU core (4X top nodes using 250M each when you have 1Gbps upstream). That way it's not possible to exceed the upstream rate.

from libreqos.

jaber-the-great avatar jaber-the-great commented on June 21, 2024

Thanks for you explanation.

from libreqos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.