Mobile Information Systems / 2016 / Article / Alg 1

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

We are committed to sharing findings related to COVID-19 as quickly and safely as possible. Any author submitting a COVID-19 paper should notify us at help@hindawi.com to ensure their research is fast-tracked and made available on a preprint server as soon as possible. We will be providing unlimited waivers of publication charges for accepted articles related to COVID-19. Sign up here as a reviewer to help fast-track new submissions.