Monday, July 11, 2011

Expected Transmission Time (ETT) Metric

ETX tends to find robust routes. However, ETX does not consider links' data rates. Implementation of ETX has revealed two demerits i.e. broadcasts usually are performed at the network basic rate, and probes are smaller than typical data packets. Thus, unless the network is operating at low rates, the performance of ETX becomes low because it neither distinguishes links with different bandwidths nor considers data-packets sizes. To deal with this problem ETT was proposed. ETT is the time a data packet requires to be transmitted successfully to each neighbor. ETT amends ETX to different PHY rates and data-packet sizes.

 ETT is the product between ETX and the average time a single data packet requires to be delivered. Let S be the size of the probing packet and B be the measured bandwidth of a link, then the ETT of this link is defined as follows:

ETT = ETX * S/B

Expected Transmission Count (ETX) Metric

ETX probably was the first metrics explicitly designed for MANETs. Hop count is not optimal for wireless networks thus ETX was proposed. ETX gives the expected number of transmissions (including retransmissions) required to send a packet successfully. The route with minimum hop count may not be the best route so to overcome this problem, OLSRd (OLSR daemon) is extended with ETX quality metric as a means for accounting for packet loss. Similar to the hop count metric, with ETX metric also the path with minimum ETX value is selected.

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





HOP Count Metric

OLSR is a pro-active, table-driven, link-state routing protocol for mobile and multi-hop networks. It is defined in RFC 3626 that it uses hop count metric for computing shortest path. Routing metric is a variable that is used for the selection of better route. With the hop count metric packet is route through the path with minimum hop count. Thus when hop metric is used the link quality is not considered. Route with minimum hop count may have high packet loss but if hop count metric is used then that very route can be choose for packet delivery. This may lead to poor performance. Despite of this demerit of hop count metric it is the default metric in OLSR. It is the simplest metric so it is unbeatable in its simplicity.