# Link Quality

# Link Quality

This module includes configuration variables for the Link Quality service.

## Summary

| ### Macros ||
|---|---|
| `https://openthread.io/reference/config/group/config-link-quality#group__config-link-quality_1gac81cbe6ed7507d2b6095ba88315f0c3c 512` | OpenThread's MAC implementation maintains the average failure rate of CCA (Clear Channel Assessment) operation on frame transmissions. |
| `https://openthread.io/reference/config/group/config-link-quality#group__config-link-quality_1gab3fa078dfe1b6fad4bd1566b006f5c86 128` | OpenThread's MAC implementation maintains the average error rate of MAC frame transmissions per neighbor. |
| `https://openthread.io/reference/config/group/config-link-quality#group__config-link-quality_1gaf167f36464e0c77f5dfed55a7b18a8a6 128` | OpenThread maintains the average error rate of IPv6 messages per neighbor. |

## Macros

### OPENTHREAD_CONFIG_CCA_FAILURE_RATE_AVERAGING_WINDOW

```
 OPENTHREAD_CONFIG_CCA_FAILURE_RATE_AVERAGING_WINDOW 512
```
OpenThread's MAC implementation maintains the average failure rate of CCA (Clear Channel Assessment) operation on frame transmissions.

This value specifies the window (in terms of number of transmissions or samples) over which the average rate is maintained. Practically, the average value can be considered as the percentage of CCA failures in (approximately) last AVERAGING_WINDOW frame transmissions.

### OPENTHREAD_CONFIG_FRAME_TX_ERR_RATE_AVERAGING_WINDOW

```
 OPENTHREAD_CONFIG_FRAME_TX_ERR_RATE_AVERAGING_WINDOW 128
```
OpenThread's MAC implementation maintains the average error rate of MAC frame transmissions per neighbor.

This parameter specifies the window (in terms of number of frames/sample) over which the average error rate is maintained. Practically, the average value can be considered as the percentage of failed (no ack) MAC frame transmissions over (approximately) last AVERAGING_WINDOW frame transmission attempts to a specific neighbor.

### OPENTHREAD_CONFIG_IPV6_TX_ERR_RATE_AVERAGING_WINDOW

```
 OPENTHREAD_CONFIG_IPV6_TX_ERR_RATE_AVERAGING_WINDOW 128
```
OpenThread maintains the average error rate of IPv6 messages per neighbor.

This parameter specifies the window (in terms of number of messages) over which the average error rate is maintained. Practically, the average value can be considered as the percentage of failed (no ack) messages over (approximately) last AVERAGING_WINDOW IPv6 messages sent to a specific neighbor.

## Resources

OpenThread API Reference topics originate from the source code, available
on [GitHub](https://github.com/openthread/openthread/tree/main/include/openthread).
For more information, or to contribute to our documentation, refer to
[Resources](https://openthread.io/resources).