Research Article

EmuStack: An OpenStack-Based DTN Network Emulation Platform (Extended Version)

Algorithm 1

Synchronous control on Neutron-Netem agent.
(1) INIT protocol software
(2) WHILE current_time < starting_time
(3)     sleep SLEEP_TIME miliseconds
(4) END WHILE
(5)
(6) INIT topology control
(7) INIT link characteristics control
(8) START state collection
(9)
(10) SET counter to 0
(11) WHILE counter < CONTROL_PERIOD
(12)  increment counter
(13)  next_time = start_time +  
        LOOP_CYCLE counter
(14)  control topology
(15)  control link characteristics
(16)  control protocol software
(17)  IF current_time – next_time > THRESHOLD
(18)   collect error log
(19)  END IF
(20)  WHILE current_time < next_time
(21)   sleep SLEEP_TIME miliseconds
(22)  END WHILE
(23) END WHILE
(22) KILL all experiment processes