In the course of my master thesis I am currently trying to rebuild a simplified version of the selection algorithm from Tor. During my research, I found the following selection algorithm in some papers and in the Tor code itself:
In the simulation, I only consider the Guard and Exit flags, i.e. other factors are not included in the node selection process. I weight all nodes according to the position to be filled and their flags with the weights published in the consensus.
Now my current understanding is that nodes are selected with a probability proportional to their bandwidth in order to better distribute the traffic. However, if I select the nodes in my simulation with the above algorithm after they were weighted, the following picture of the bandwidth distribution emerges.
Since the specifications do not help at this point, here is the question of whether anyone can explain how the increased selection of nodes with higher bandwidth is achieved. Thanks in advance!