From 8cc6b6dd69cee050c16a1c871c986ed933141866 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 24 Jul 2014 23:35:20 +0200 Subject: Completely log simulations --- examples/babel_test.mmss | 75 +++++++++++++++++++++++++++++++++++------------- 1 file changed, 55 insertions(+), 20 deletions(-) (limited to 'examples') diff --git a/examples/babel_test.mmss b/examples/babel_test.mmss index fad6f0a..7002fb1 100644 --- a/examples/babel_test.mmss +++ b/examples/babel_test.mmss @@ -1,28 +1,63 @@ protocol "babel" load "./libmmss_proto_babel.so" default; -network "net0" { - etx min 1.0 max 5.0 sine period 15 m; -} +/* topology: -network "net1" { - etx min 1.0 max 5.0 sine period 15 m phase 5 m; -} + C - D + / \ +A - B G - H + \ / + E - F -network "net2" { - etx min 1.0 max 5.0 sine period 15 m phase 10 m; -} +*/ -node "node1" { - interface "mmss1.0" network "net0" address 00:00:00:00:00:00:00:10; - interface "mmss1.1" network "net1" address 00:00:00:00:00:00:00:11; -} -node "node2" { - interface "mmss2.1" network "net1" address 00:00:00:00:00:00:00:21; - interface "mmss2.2" network "net2" address 00:00:00:00:00:00:00:22; -} +network "net_A_B"; +network "net_B_C"; +network "net_B_E"; +network "net_C_D" { etx min 1.0 max 5.0 sine period 20 m; } +network "net_D_G"; +network "net_E_F" { etx min 1.0 max 5.0 sine period 20 m phase 10 m; } +network "net_F_G"; +network "net_G_H"; + + +#network "net1" { +# etx min 1.0 max 5.0 sine period 15 m phase 5 m; +#} + +#network "net2" { +# etx min 1.0 max 5.0 sine period 15 m phase 10 m; +#} -node "node3" { - interface "mmss3.2" network "net2" address 00:00:00:00:00:00:00:32; - interface "mmss3.0" network "net0" address 00:00:00:00:00:00:00:30; +node "A" { + interface "mmss_A_B" network "net_A_B" address 00:00:00:00:00:00:01:02; +} +node "B" { + interface "mmss_B_A" network "net_A_B" address 00:00:00:00:00:00:02:01; + interface "mmss_B_C" network "net_B_C" address 00:00:00:00:00:00:02:03; + interface "mmss_B_E" network "net_B_E" address 00:00:00:00:00:00:02:05; +} +node "C" { + interface "mmss_C_B" network "net_B_C" address 00:00:00:00:00:00:03:02; + interface "mmss_C_D" network "net_C_D" address 00:00:00:00:00:00:03:04; +} +node "D" { + interface "mmss_D_C" network "net_C_D" address 00:00:00:00:00:00:04:03; + interface "mmss_D_G" network "net_D_G" address 00:00:00:00:00:00:04:07; +} +node "E" { + interface "mmss_E_B" network "net_B_E" address 00:00:00:00:00:00:05:02; + interface "mmss_E_F" network "net_E_F" address 00:00:00:00:00:00:05:06; +} +node "F" { + interface "mmss_F_E" network "net_E_F" address 00:00:00:00:00:00:06:05; + interface "mmss_F_G" network "net_F_G" address 00:00:00:00:00:00:06:07; +} +node "G" { + interface "mmss_G_D" network "net_D_G" address 00:00:00:00:00:00:07:04; + interface "mmss_G_F" network "net_F_G" address 00:00:00:00:00:00:07:06; + interface "mmss_G_H" network "net_G_H" address 00:00:00:00:00:00:07:08; +} +node "H" { + interface "mmss_H_G" network "net_G_H" address 00:00:00:00:00:00:08:07; } -- cgit v1.2.3