diff --git a/src/mpExperience.py b/src/mpExperience.py index bbcfd0b..48bccb7 100644 --- a/src/mpExperience.py +++ b/src/mpExperience.py @@ -33,6 +33,7 @@ class MpExperience: self.runUserspacePM() self.mpConfig.configureNetwork() self.changeMetric() + self.changeOpenBup() self.putPriorityOnPaths() self.runTcpDump() self.runNetemAt() @@ -43,6 +44,11 @@ class MpExperience: if int(metric) >= 0: self.mpTopo.notNSCommand("echo " + metric + " > /sys/module/mptcp_sched_metric/parameters/metric") + def changeOpenBup(self): + openBup = self.xpParam.getParam(MpParamXp.OPENBUP) + if int(openBup) >= 0: + self.mpTopo.notNSCommand("echo" + openBup + " > /sys/module/mptcp_fullmesh/parameters/open_bup") + def putPriorityOnPaths(self): # Only meaningful if mpTopo is instance of MpMultiInterfaceTopo if isinstance(self.mpTopo, MpMultiInterfaceTopo): diff --git a/src/mpParamXp.py b/src/mpParamXp.py index 3b57039..f82efb5 100644 --- a/src/mpParamXp.py +++ b/src/mpParamXp.py @@ -63,6 +63,7 @@ class MpParamXp(MpParam): EXPIRATION = "expiration" BUFFERAUTOTUNING = "bufferAutotuning" METRIC = "metric" + OPENBUP = "openBup" # global sysctl @@ -101,6 +102,7 @@ class MpParamXp(MpParam): defaultValue[EXPIRATION] = "300" defaultValue[BUFFERAUTOTUNING] = "1" defaultValue[METRIC] = "-1" + defaultValue[OPENBUP] = "-1" defaultValue[CLIENTPCAP] = "no" defaultValue[SERVERPCAP] = "no"