blob: 3bbfc1f1d6caa9787e4f36d9f4970bd9f0ae9630 [file] [log] [blame]
#!/usr/bin/python
from ndn.experiments.experiment import Experiment
import time
class PingallExperiment(Experiment):
def __init__(self, net, nodes, convergenceTime, nPings, strategy):
Experiment.__init__(self, net, nodes, convergenceTime, nPings, strategy)
self.COLLECTION_PERIOD_BUFFER = 10
def run(self):
self.startPings()
# For pingall experiment sleep for the number of pings + some offset
time.sleep(self.nPings + self.COLLECTION_PERIOD_BUFFER)