ndn: Add NLSR experiments
Change-Id: I0b86b121a5c8bf6a6e6e8df5027fe49561a9283b
diff --git a/ndn/experiments/pingall_experiment.py b/ndn/experiments/pingall_experiment.py
new file mode 100644
index 0000000..3bbfc1f
--- /dev/null
+++ b/ndn/experiments/pingall_experiment.py
@@ -0,0 +1,19 @@
+#!/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)