NS3 power trigger function