adjacentlink / emane

Distributed wireless network emulation framework
Other
127 stars 37 forks source link

EMANE topology changes using democtl-host script #195

Open szl0144 opened 3 years ago

szl0144 commented 3 years ago

Hi,

I am trying to create a multi-hop topology where the traffics goes from node-1 to node-2, then goes from node-2 to node-3. Can I use the democrats-host script in the demo-start file to let the emanenode0 bridge only connects with node 1 (pass the node number parameter 1 into the script). Then adding a static route from node-1 to node-2 in the routing table of node 1 as well as adding a static route from node-2 to node-3 in the routing table of node 2? I am not sure if node-1 and node-2 will forward packets if I just connect one node to the emanenode0. Can you please give me some suggestions? Thanks!

Best, Shaoyi

sgalgano commented 3 years ago

You can use pathloss events or locations events (when using freespace or 2ray) to change topology. You can use static routes or you can use a MANET routing protocol. The emane-tutorial uses olsr. The letce2-tutorial uses batman-adv by default.

szl0144 commented 3 years ago

Hi,

Thank you for your suggestions. I am using static routes method to change the topology. I notice the source of the traffic generated by MGEN is port 5001 without the IP address. Without a source IP, It seems MGEN generates traffic for all three nodes through the port. Can you please tell me how to only let node-1 send packets? I can set the DST address (10.100.0.3/5001) for node-3 in MGEN right now.

Thank you very much. Best,