From c3d1f41615e4a79f49f72550319520c2c1866a74 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Tue, 13 Sep 2016 13:10:19 +0200 Subject: [PATCH] mpExperience: added openBup xp param Allows to specify if backup subflows should be opened or not directly --- src/mpExperience.py | 6 ++++++ src/mpParamXp.py | 2 ++ 2 files changed, 8 insertions(+) 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"