This patchset adds the network wide multi interface optimization as
proposed in our wiki [1] for BATMAN IV. The main purpose is to do
interface alternating and bonding by considering multi interface
capabilities globally and not just for the (next) link, otherwise
non-optimal links may be chosen.

This patchset needs to change a lot of core data structures and
routing, please review it carefully. A local development branch
exists on the public git repo [2].

Changes from RFCv1 in May are:
 * rebase on current master including routing abstraction
 * use routing abstraction and change some of the API calls for the
   new multi interface usage
 * check bonding candidates using the new API
 * changed wifi penalty to use the double hop penalty, default hop
   penalty changed to 15 to make no effective change in single station
   networks
 * fixed seqno protection window troubles (changed to protection window
   per interface for OGMs)
 * various smaller changes, including locking and NULL checking

I've tested the patchset in my VMs to confirm that bonding and alternating
works as expected.

As always, any comments are appreciated!

Thanks,
        Simon

[1] 
http://www.open-mesh.org/projects/batman-adv/wiki/network-wide-multi-link-optimization
[2] 
http://git.open-mesh.org/batman-adv.git/shortlog/refs/heads/simon/network-wide-multiif

Simon Wunderlich (6):
  batman-adv: remove bonding and interface alternating
  batman-adv: split tq information in neigh_node struct
  batman-adv: split out router from orig_node
  batman-adv: add WiFi penalty
  batman-adv: consider outgoing interface in OGM sending
  batman-adv: add bonding again

 bat_iv_ogm.c            |  732 +++++++++++++++++++++++++++++++----------------
 distributed-arp-table.c |    3 +-
 gateway_client.c        |   79 ++++-
 hard-interface.c        |    2 +-
 hard-interface.h        |    1 +
 icmp_socket.c           |    2 +-
 main.c                  |    2 +-
 network-coding.c        |    9 +-
 originator.c            |  304 +++++++++++++++++---
 originator.h            |   14 +-
 routing.c               |  432 +++++++++-------------------
 routing.h               |   12 +-
 send.c                  |   13 +-
 soft-interface.c        |    2 +-
 translation-table.c     |    5 +-
 types.h                 |  110 ++++---
 16 files changed, 1073 insertions(+), 649 deletions(-)

-- 
1.7.10.4

Reply via email to