Hi Santiago,
On Friday 16 October 2015 12:26:48 Santiago Álvarez Álvarez wrote:
Hi everybody, Im an engineer working in a R&D Project using batman-adv protocol. Were trying to develop a mesh network using linux devices with the objective of transmitting video in streaming. Video is being generated with gstreamer using UDP. The application works relatively fine with 2 devices, but efficiency heavily decreases when introducing a new node in the mesh network (information need two jumps to arrive to destination). Introducing more jumps in the network is exponentially worst. We have been expecting a better behavior of this protocol, since level 2 routing should be transparent (just increasing delay when increasing the number of nodes).
Did you consider the effects of the half-duplex nature? Your intemediate hop will have to listen to the sender and and send each packet also to the receiver. This means it has to send and receive each packet twice, so needs double amount of airtime and therefore the throughput will be halved. Adding more repeaters is even worse. This is a well known effect in mesh networks and is not limited to Layer2/3. Usually your first hop drops to 50%, second to 33% and so on.
The only way to resolve that would be to use multiradio access points on different frequencies.
We are using batman version 2015.0, over wifi interfaces, and our streaming applications is working only point-to-point (not multicast or broadcast). The nodes in between server and client are working just as wireless repeaters using batman-adv. We also discovered that worst case happens when changes in batman routing tables are happening (sometimes, client is able to reach server in just one jump, but with low quality, and chooses that option instead of jumping through the repeater node, with better quality). When that happens, we're droping lots of packets.
Another thing you should consider is rates: your wifi card has a rate control algorithm implemented which will choose the best rate, which can be anything between 1 Mbit/s and 450 MBit/s (depending on your hardware of course). Choosing a low throughput rate also results into losses if your video stream needs more throughput than the channel can give you.
Any of you haver tried batman-adv for video streaming? Which was the maximum number of jumps between batman nodes that you can manage maintaining a good video quality?
I've seen for some cases. It can work over multiple hops, but it heavily depends on your video stream. There are also WiFi parameters you might tune.
Can you recommend any specific configuration for improving batman behavior?
First, I would suggest to use a higher multicast rate (WiFi configuration). Another thing to consider, if this is a setup which should only send video streams, is to limit the WiFi rates to some high rates like 18 Mbit/s and up.
Cheers, Simon