
September 22nd, 2008
|
 | Draketo, small dragon. | | Join Date: May 31st, 2002 Location: Heidelberg, Germany
Posts: 1,881
| |
Good to know
Thanks!
I think I can code a part of the policy myself - do you see any direct weaknesses in it (means: is it ready to go into code)?
What I don't yet know is how to efficiently get the mean drop ratio and the mean send queue (I don't want to iterate over all hosts everytime I need to check it).
A possible way would be a simple attribute of the NetworkHostContainer. It could be updated by adding ((host.dropRatio - networkHostsContainer.overallDropRatio) / number_of_hosts) to it for every host (doing it for all hosts once before doing any checks and then inside the checks to keep it up to date). |