Modelling, Verification, and Comparative Performance Analysis of the B.A.T.M.A.N. Protocol

Kaylash Chaudhary,Ansgar Fehnker,Vinay Mehta
DOI: https://doi.org/10.4204/EPTCS.244.3
2017-03-20
Abstract:This paper considers on a network routing protocol known as Better Approach to Mobile Ad hoc Networks (B.A.T.M.A.N.). The protocol serves two aims: first, to discover all bidirectional links, and second, to identify the best-next-hop for every other node in the network. A key element is that each node will flood the network at regular intervals with so-called originator messages. This paper describes in detail a formalisation of the B.A.T.M.A.N. protocol. This exercise revealed several ambiguities and inconsistencies in the RFC. We developed two models. The first implements, if possible, a literal reading of the RFC, while the second model tries to be closer to the underlying concepts. The alternative model is in some places less restrictive, and rebroadcasts more often when it helps route discovery, and will on the other hand drop more messages that might interfere with the process. We verify for a basic untimed model that both interpretations ensure loop-freedom, bidirectional link discovery, and route-discovery. We use simulation of a timed model to compare the performance and found that both models are comparable when it comes to the time and number of messages needed for discovering routes. However, the alternative model identifies a significantly lower number of suboptimal routes, and thus improves on the literal interpretation of the RFC.
Logic in Computer Science,Networking and Internet Architecture,Software Engineering
What problem does this paper attempt to address?
The paper attempts to address the issues related to the formal modeling, verification, and performance analysis of the B.A.T.M.A.N. (Better Approach to Mobile Ad hoc Networks) protocol. Specifically: 1. **Formal Modeling**: The authors conducted a detailed formal modeling of the B.A.T.M.A.N. protocol. During this process, they discovered several ambiguities and inconsistencies in the RFC (Request for Comments) document. 2. **Verification of Basic Properties**: The authors developed two models to verify the basic properties of the B.A.T.M.A.N. protocol, including loop-freeness, bidirectional link discovery, and route discovery. The first model is as faithful as possible to the literal description of the RFC, while the second model attempts to be closer to the core concepts of the protocol, correcting some inconsistencies. 3. **Performance Comparison**: By simulating a timed model, the authors compared the performance of these two models in terms of route discovery time and the number of messages. The results show that although the two models perform similarly in these aspects, the alternative model significantly reduces the number of suboptimal routes, thereby improving upon the literal interpretation of the RFC. Overall, the paper aims to reveal potential issues of the B.A.T.M.A.N. protocol through formal modeling and verification, and propose improvements to enhance its performance and reliability in practical applications.