SlideShare a Scribd company logo
Abstract
==========================================================================
This document describes the OLSRd link quality extension that utilizes
linux NL80211 to apply wireless link information in the link quality
calculation.

Design
==========================================================================
Each second the latest information is gathered from linux NL80211. This
data contains the MAC addresses of the neighbor stations. To match this
MAC address with the neighbors IP, the linux ARP cache is queried.

Implementation
==========================================================================
The extension adds an external dependency to build the code namely libnl.
This library is used to simplify the IPC communication with linux kernel.

The files src/linux/nl80211_link_info.* are doing the actual wireless link
status gathering. A modified link ffeth quality plugin will use the new
link status information for link quality calculations. This link quality
plugin is using #ifdef LINUX_NL80211 statements as much as possible to
make it easy to merge the code back into the original ffeth plugin. The
benefit of merging those link quality plugins will be less duplicate code
and less code to maintain.

Cost calculation
==========================================================================
A penalty is added to the old cost from the ffeth plugin, depending on the
signal strength and the link bandwidth. Both penalties can have a maximum
value of 1.0.

Costs = EXT + BandwidthPenalty + SignalPenalty

BandwidthPenalty = 1 - ( ActualBandwidth / ReferenceBandwidth)

SignalPenalty = LookupSignalPenaltyTable(SignalStrenghtOfNeighbor)

Both penalties are added into the two unused bytes of LQ_HELLO messages.
Currently the nodes won't use this value when received from their neighbor
and only use their own NL80211 information.

Considerations
==========================================================================
It is designed mainly for IPv4, but should work with minimal effort on
IPv6 as well. Majority of that work will be actually testing it on IPv6.

The netlink code is blocking, this shouldn't cause major problems but a
more ideal design would be non-blocking.

Current version does not use the NL80211 data received from it's neighbors.
A discussion is needed to find out if this is required or not.

Currently both penalties have a maximum of 1.0, which might not be enough.
If that's the case, a configurable multiplier for both penalties might be
interesting to add.

The value for ReferenceBandwidth is hardcoded to 54 MBit.
The values in the signal strength penalty table are hardcoded.
It's desirable to have them configurable through the configuration file.

Add configuration option to completely disable the use of NL80211 data, in
case the plugin is merged with the existing ff_eth link quality plugin.

More Related Content

PDF
Training Slides: 202 - Monitoring & Troubleshooting
PPT
Seattle Cassandra Meetup - Cassandra 1.2 - Eddie Satterly
PDF
Riattivazionecarriera
PDF
Spectrum wall chart_aug2011
PDF
Dj68 00518 c
PDF
Spectrum use summary_master-06212010
PDF
Document
PDF
Lf who writes_linux_2012
Training Slides: 202 - Monitoring & Troubleshooting
Seattle Cassandra Meetup - Cassandra 1.2 - Eddie Satterly
Riattivazionecarriera
Spectrum wall chart_aug2011
Dj68 00518 c
Spectrum use summary_master-06212010
Document
Lf who writes_linux_2012

Similar to Olsrd linux nl80211_extension (20)

PDF
Ccna 4 v5 practice skills assessment – packet tracer
PPTX
Troubleshooting Common Network Related Issues with NetScaler
PPTX
PPTX
Grokking Techtalk #40: Consistency and Availability tradeoff in database cluster
PDF
Think of oracle and mysql bind value
PDF
Anatomy of neutron from the eagle eyes of troubelshoorters
PDF
mikrotik router two wan load-balancing.pdf
PDF
ROUTERCONFIGURATION BOARD................
PDF
给11g r2 rac添加listener监听器并静态注册
PDF
Create your oracle_apps_r12_lab_with_less_than_us1000
PDF
Ccnav5.org ccna 4-v5_practice_skills_assessment__packet_tracer
PDF
designandimplementanetwork
PDF
Make container without_docker_7
PDF
Ip basics
PPT
A distributed virtual architecture for data centers
PPTX
Software Load Balancer for OpenFlow Complaint SDN architecture
PDF
Network simulator 2 a simulation tool for linux
PPTX
Mikrotik link redundancy solution
PDF
(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...
PDF
The Apache Cassandra ecosystem
Ccna 4 v5 practice skills assessment – packet tracer
Troubleshooting Common Network Related Issues with NetScaler
Grokking Techtalk #40: Consistency and Availability tradeoff in database cluster
Think of oracle and mysql bind value
Anatomy of neutron from the eagle eyes of troubelshoorters
mikrotik router two wan load-balancing.pdf
ROUTERCONFIGURATION BOARD................
给11g r2 rac添加listener监听器并静态注册
Create your oracle_apps_r12_lab_with_less_than_us1000
Ccnav5.org ccna 4-v5_practice_skills_assessment__packet_tracer
designandimplementanetwork
Make container without_docker_7
Ip basics
A distributed virtual architecture for data centers
Software Load Balancer for OpenFlow Complaint SDN architecture
Network simulator 2 a simulation tool for linux
Mikrotik link redundancy solution
(2) documents e books_cisco_networking_books_training_materials_cnap_-_ont_v5...
The Apache Cassandra ecosystem
Ad

Olsrd linux nl80211_extension

  • 1. Abstract ========================================================================== This document describes the OLSRd link quality extension that utilizes linux NL80211 to apply wireless link information in the link quality calculation. Design ========================================================================== Each second the latest information is gathered from linux NL80211. This data contains the MAC addresses of the neighbor stations. To match this MAC address with the neighbors IP, the linux ARP cache is queried. Implementation ========================================================================== The extension adds an external dependency to build the code namely libnl. This library is used to simplify the IPC communication with linux kernel. The files src/linux/nl80211_link_info.* are doing the actual wireless link status gathering. A modified link ffeth quality plugin will use the new link status information for link quality calculations. This link quality plugin is using #ifdef LINUX_NL80211 statements as much as possible to make it easy to merge the code back into the original ffeth plugin. The benefit of merging those link quality plugins will be less duplicate code and less code to maintain. Cost calculation ========================================================================== A penalty is added to the old cost from the ffeth plugin, depending on the signal strength and the link bandwidth. Both penalties can have a maximum value of 1.0. Costs = EXT + BandwidthPenalty + SignalPenalty BandwidthPenalty = 1 - ( ActualBandwidth / ReferenceBandwidth) SignalPenalty = LookupSignalPenaltyTable(SignalStrenghtOfNeighbor) Both penalties are added into the two unused bytes of LQ_HELLO messages. Currently the nodes won't use this value when received from their neighbor and only use their own NL80211 information. Considerations ========================================================================== It is designed mainly for IPv4, but should work with minimal effort on IPv6 as well. Majority of that work will be actually testing it on IPv6. The netlink code is blocking, this shouldn't cause major problems but a more ideal design would be non-blocking. Current version does not use the NL80211 data received from it's neighbors. A discussion is needed to find out if this is required or not. Currently both penalties have a maximum of 1.0, which might not be enough. If that's the case, a configurable multiplier for both penalties might be interesting to add. The value for ReferenceBandwidth is hardcoded to 54 MBit. The values in the signal strength penalty table are hardcoded. It's desirable to have them configurable through the configuration file. Add configuration option to completely disable the use of NL80211 data, in case the plugin is merged with the existing ff_eth link quality plugin.