Skip to contentSkip to conversation

VIS server for batman-adv-kernelland

B.A.T.M.A.N. Christoph Pilka 4 participants 6 messages May 21, 2009 – May 23, 2009

lore
Share & tools
lore
#0 lore raw

Hi folks,

my goal is to visualize batman-adv-kernelland network topology. 'echo "server" > /proc/net/batman-adv/vis' activates vis server on the mesh node directly, right? Do the other nodes find the vis server autmagically? What happens, if I wanna use more than one vis server? And the last and most important question: is it possible to run a vis server outside the mesh running layer 2 batman-adv? The layer 3 vis runs fine but I have no clue how to get the visualization running on batman-adv nodes. How to tell the vis server on the mesh nodes to output their data to a dot-draw server (s3d) ? Lot of questions ;-)

For the German readers: I am documenting all the stuff on
http://debian.asconix.com/batman-advanced-openwrt-howto but I think, the way I'm describing in the vis chapter is the way to get vis running in layer3 batman, isn't it?

Greets,
Chris

Signature · 2 lines
"Privacy in residential applications is a desirable marketing
option." (ETSI EN 300 175-7 Ch. A6)
#1 lore raw

Hello Christoph,

Quoted 5 lines · Christoph Pilka

Hi folks,

my goal is to visualize batman-adv-kernelland network topology. 'echo "server" > /proc/net/batman-adv/vis' activates vis server on the mesh node directly, right?

Yes, that's right.

Quoted 2 lines

Do the other nodes find the vis server
autmagically?

Yup, they do.

Quoted 1 line

What happens, if I wanna use more than one vis server?

The running vis servers synchronize each other. You can set up multiple vis servers inside your mesh (this is different from L3 batman).

Quoted 3 lines

And
the last and most important question: is it possible to run a vis server outside the mesh running layer 2 batman-adv?

That's not possible. They only run within the batman-adv module, and you can only access the data locally on the node. One thing you can do is building a script with ssh, e.g.

ssh <yournode> 'cat /proc/net/batman-adv/vis'

which would give you the topology even on a remote node. What you can also do is building a vis server similar to the L3 one on the node by using netcat and a small shellscript which prints out /proc/net/batman-adv/vis in a loop.

Quoted 4 lines

The layer 3 vis runs fine
but I have no clue how to get the visualization running on batman-adv nodes. How to tell the vis server on the mesh nodes to output their data to a dot-draw server (s3d) ? Lot of questions ;-)

if you build a vis server with netcat and a shellscript this will be possible. Please note however that you might need to patch the s3d visualization program (olsrs3d or meshs3d) as it expects IP addresses, not MAC addresses. This is not hard to do ....

Quoted 6 lines

For the German readers: I am documenting all the stuff on
http://debian.asconix.com/batman-advanced-openwrt-howto but I think, the way I'm describing in the vis chapter is the way to get vis running in layer3 batman, isn't it?

Right, your description references to the layer 3 vis server. Layer 2 is a little bit different ...

Quoted 12 lines

Greets,
Chris

Signature · 7 lines
"Privacy in residential applications is a desirable marketing
option." (ETSI EN 300 175-7 Ch. A6)

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n
#2 lore raw

Hello Simon,

many thanks for all the infos and hints. The base install seems to work properly. I'll take a look at s3d this weekend cause I'm very interested in getting it running at ethernet frame level. By the way, the JSON output seems to be really nice feature but the code is only available for level3 batman ?

Greets.
Chris <°(((><

2009/5/22 Simon Wunderlich <[email protected]>

Quoted 80 lines

Hello Christoph,

Quoted 5 lines · Christoph Pilka

Hi folks,

my goal is to visualize batman-adv-kernelland network topology. 'echo "server" > /proc/net/batman-adv/vis' activates vis server on the mesh node directly, right?

Yes, that's right.

Quoted 2 lines

Do the other nodes find the vis server
autmagically?

Yup, they do.

Quoted 1 line

What happens, if I wanna use more than one vis server?

The running vis servers synchronize each other. You can set up multiple vis servers inside your mesh (this is different from L3 batman).

Quoted 3 lines

And
the last and most important question: is it possible to run a vis server outside the mesh running layer 2 batman-adv?

That's not possible. They only run within the batman-adv module, and you can only access the data locally on the node. One thing you can do is building a script with ssh, e.g.

ssh <yournode> 'cat /proc/net/batman-adv/vis'

which would give you the topology even on a remote node. What you can also do is building a vis server similar to the L3 one on the node by using netcat and a small shellscript which prints out /proc/net/batman-adv/vis in a loop.

Quoted 4 lines

The layer 3 vis runs fine
but I have no clue how to get the visualization running on batman-adv nodes. How to tell the vis server on the mesh nodes to output their data to a dot-draw server (s3d) ? Lot of questions ;-)

if you build a vis server with netcat and a shellscript this will be possible.
Please note however that you might need to patch the s3d visualization program
(olsrs3d or meshs3d) as it expects IP addresses, not MAC addresses. This is not
hard to do ....

Quoted 6 lines

For the German readers: I am documenting all the stuff on
http://debian.asconix.com/batman-advanced-openwrt-howto but I think, the way I'm describing in the vis chapter is the way to get vis running in layer3 batman, isn't it?

Right, your description references to the layer 3 vis server. Layer 2 is a little bit different ...

Quoted 12 lines

Greets,
Chris

--
"Privacy in residential applications is a desirable marketing option." (ETSI EN 300 175-7 Ch. A6)

_______________________________________________
B.A.T.M.A.N mailing list
[email protected]
https://lists.open-mesh.net/mm/listinfo/b.a.t.m.a.n

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkoWh6oACgkQrzg/fFk7axazzwCdEj0eeCi+lI10Fjo3IXevv78Q PWYAn01bptuXhZX+bo6rXE5Sm1n8N3jt
=ouCT
-----END PGP SIGNATURE-----

Signature · 2 lines
"Privacy in residential applications is a desirable marketing option." (ETSI
EN 300 175-7 Ch. A6)
#3 lore raw
Quoted 5 lines · On Friday 22 May 2009 19:51:20 Christoph Pilka wrote:

many thanks for all the infos and hints. The base install seems to work properly. I'll take a look at s3d this weekend cause I'm very interested in getting it running at ethernet frame level. By the way, the JSON output seems to be really nice feature but the code is only available for level3 batman ?

No, it is also available in the current svn version of batman-adv. See
https://www.open-mesh.org/changeset/1265 for more informations.

Best regards,
Sven

#4 lore raw
In reply to Christoph Pilka

Hi,

Quoted 4 lines

For the German readers: I am documenting all the stuff on
http://debian.asconix.com/batman-advanced-openwrt-howto but I think, the way I'm describing in the vis chapter is the way to get vis running in layer3 batman, isn't it?

its fantastic that you write such an extensive documentation. As soon as you feel ready I will add a link from our page to yours, so that people can find you.

I think there are 2 hidden misunderstandings in the howto:

* You are splitting up the VLANs and I did not quite get the reason. In the document you state the number of OGMs will be decreased. Whether it decreases or not heavily depends on the network attached to these VLANs. How does the topology look like ? May be I overlooked that section ?

* The vis-advanced daemon is not necessary here because the kernel module has the server built-in. All you need to do is activating a server (echo "server"

Quoted 1 line

/proc/net/batman-adv/vis) which allows you to retrieve the information via

cat /proc/net/batman-adv/vis. The vis-advanced daemon goes together with batman-adv-userspace which is the user space implementation of the layer 2 approach. Its a bit confusing - we have to think about how to clean it up ..

In case you are aware of all these facts just discard my mail. :-)

Regards,
Marek

#5 lore raw

Hi all,

Hi* You are splitting up the VLANs and I did not quite get the reason. In

Quoted 6 lines

the
document you state the number of OGMs will be decreased. Whether it decreases
or not heavily depends on the network attached to these VLANs. How does the topology look like ? May be I overlooked that section ?

Well, I didn't mention it, but the reason for splitting the lan ports into VLANs is an approach for using bat-adv on boxes in a partially wired environment (indoor installations with some ethernet wires). So, yepp, you're right, it depends on the network topology. In my case I am using some of the LAN connections to link the boxes among each other. So I think, it's a good approach to seperate the lan ports and to let bat-adv bridge the frames. Correct me, if it's wrong.

* The vis-advanced daemon is not necessary here because the kernel module

Quoted 10 lines

has
the server built-in. All you need to do is activating a server (echo "server"

Quoted 1 line

/proc/net/batman-adv/vis) which allows you to retrieve the information

via
cat /proc/net/batman-adv/vis. The vis-advanced daemon goes together with batman-adv-userspace which is the user space implementation of the layer 2 approach. Its a bit confusing - we have to think about how to clean it up ..

Yepp, you're right. I've documented the vis stuff beeing not sure if it's working this way on layer 2. Simon answered all of my questions so now it's time for me to write down the bat-adv-kernel way ;-) He gave me some very interesting hints to collect the data from outside the mesh like polling /proc/net/batman-adv/vis. I think it's a good challenge for me for this weekend to set up a nice solution to collect the data on a central box outside the mesh and visualize it. I have some experiences with JSON, so Iwould use it as exchange format. Well, patching s3d to accept MAC- instead of IP-addresses seems to be a nice solution too.

Regards,
Chris

Signature · 2 lines
"Privacy in residential applications is a desirable marketing option." (ETSI
EN 300 175-7 Ch. A6)