-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Low on the list of priorities, but it would be nice to allow users to write down policies of their own so that they don't just need to mix and match from a limited menu of policies.
I am totally comfortable with this roll-your-own-policy mechanism being ergonomically gross/unwieldy! It's sorta the "advanced mode" choice that a user could make. In effect the user is directly writing the scheduling policy for a particular node.
We may need to set up some state for the node, and then this scheduling policy may need to maintain that state and assign ranks to packets. Yet another advanced move would be supporting NWC algorithms. And in the end, the user-created policies would be intermixable with the other "library" policies that we provide.
I suggest we start quite small and then ramp up. I imagine we'll want some kinda of meta DSL that is just used for policy-definition. Let's see if we can write really simple things like FIFO or RR using that meta language; the benefit is that we can compare the two implementations to see if we got it right. Then we can get into WC algorithms that are not strictly from the library, and finally we can explore NWC algorithms.