Traffic Balancing
n NS 2 Implementation (based on DSR)
Ø Two parameters and one counter:
§ the medium usage threshold
§ the measurement time period
§ overThresholdCounter
Ø Functions:
§ For the router: Upon receiving a route request, check medium usage
in past measurement period. If over medium usage threshold,
increase the overThresholdCounter by one.
§ For the sender: Upon receiving the route replies, the sender chooses
the route with the smallest overThresholdCounter. If more than one
path has the same smallest overThresholdCounter, the one with fewer
hops is chosen. If more than one path has the same
overThresholdCounter and the same number of hops, the sender
randomly chooses one.