The OLSRd obtains the ETX value through the use of hello messages, link qualities (LQ) and neighbor link qualities (NLQ).As each node sends out hello messages to find and detect their direct neighbors, LQs and NLQs can be calculated based on the fraction of packet loss, thus the probabilities of a successful transmission. So, LQ represents the quality of link in the direction from a node's neighbor to the node itself. Similarly, NLQ assesses how good a given link is in the direction from the node to the node's neighbor. These values can be communicated back and forth between the node and its neighbor through hello messages. Once, these direct neighbors are found, the ETX value for a node and its neighbor is calculated.
ETX = 1/(LQ * NLQ)
The ETX value is the same for both directions.
We can configure parameter "LinkQualityLevel" in olsrd.conf according to which metric we are using.
If LinkQualityLevel = 0, then disables the link quality extensions
If LinkQualityLevel = 1, then enables the link quality extensions and tells olsrd to select MPRs based on the link quality information
If LinkQualityLevel = 2, then not only selects MPRs based on link quality but also considers link quality information when calculating the routing table
No comments:
Post a Comment