1. Jing Wang
  2. imalse

Commits

Jing Conan Wang  committed 85af0aa

GUI add startgui.sh loadguiconfig.sh

  • Participants
  • Parent commits 8785758
  • Branches default

Comments (0)

Files changed (4)

File gui/imalse_config/net_settings.py

View file
  • Ignore whitespace
 ipv4_net_addr_base = '10.7.0.1/24'
 link_attr_default = ['2ms','5Mbps']
 link_to_ip_map = {
-	(2, 0):['10.0.0.20/24', '10.0.0.1/24'],
-	(3, 0):['10.0.1.20/24', '10.0.1.1/24'],
-	(0, 1):['10.0.2.1/24', '10.0.2.2/24'],
-	(4, 1):['10.0.3.20/24', '10.0.3.1/24'],
-	(5, 1):['10.0.4.20/24', '10.0.4.1/24'],
-	(2, 3):['10.0.5.10/24', '10.0.5.20/24'],
+	(1, 0):['10.0.0.10/24', '10.0.0.1/24'],
+	(0, 2):['10.0.1.1/24', '10.0.1.20/24'],
+	(0, 3):['10.0.2.1/24', '10.0.2.20/24'],
+	(0, 4):['10.0.3.1/24', '10.0.3.20/24'],
+	(0, 5):['10.0.4.1/24', '10.0.4.20/24'],
+	(2, 3):['10.0.5.20/24', '10.0.5.21/24'],
+	(1, 2):['10.0.6.10/24', '10.0.6.20/24'],
 }
 link_attr = {
-	(3, 0):['80 ms', '64.00 Kbps'],
+	(0, 5):['160 us', '10.00 Mbps'],
 }
-pcap_nodes = [ 0, 1, 2, 3, 4, 5 ]
-pcap_links = [ (2,0) ]
-botmaster_id_set = [ 3 ]
-client_id_set = [ 4, 5 ]
-server_id_set = [ 2 ]
-server_addr = [ "10.0.0.20/24" ]
+pcap_nodes = [ 1 ]
+pcap_links = [ (0,5) ]
+botmaster_id_set = [ 5 ]
+client_id_set = [ 2, 3, 4 ]
+server_id_set = [ 1 ]
+server_addr = [ "10.0.0.10/24" ]

File gui/imalse_config/topology.inet

View file
  • Ignore whitespace
 6 1
-0	257.0	216.0
-1	488.0	136.0
-2	92.0	350.0
-3	374.0	415.0
-4	502.0	430.0
-5	808.0	301.0
-2	0	1
-3	0	1
-0	1	1
-4	1	1
-5	1	1
+0	323.0	205.0
+1	305.0	133.0
+2	182.0	248.0
+3	423.0	285.0
+4	520.0	245.0
+5	591.0	174.0
+1	0	1
+0	2	1
+0	3	1
+0	4	1
+0	5	1
 2	3	1
+1	2	1

File gui/run.sh

View file
  • Ignore whitespace
 #!/usr/bin/env sh
 export LIBDIR=.
-wish core.tcl ./sample.imm
+wish core.tcl ./sample.imn
 # wish core.tcl
 # wish core.tcl ./configs/sample3-bgp.imn

File loadguiconfig.sh

View file
  • Ignore whitespace
 #!/usr/bin/env sh
-./sim -e ManualTopoExperiment --mode sim -s file_exfiltration -f gui/imalse_config/topology.inet --net_settings=gui/imalse_config/net_settings.py -t 100
+./sim -e ManualTopoExperiment --mode sim -s file_exfiltration -f \
+    gui/imalse_config/topology.inet \
+    --net_settings=gui/imalse_config/net_settings.py \
+    -t 100 --SimulatorImpl=Visual