mpExperience: added openBup xp param
Allows to specify if backup subflows should be opened or not directly
This commit is contained in:
parent
bf6802b57b
commit
c3d1f41615
@ -33,6 +33,7 @@ class MpExperience:
|
|||||||
self.runUserspacePM()
|
self.runUserspacePM()
|
||||||
self.mpConfig.configureNetwork()
|
self.mpConfig.configureNetwork()
|
||||||
self.changeMetric()
|
self.changeMetric()
|
||||||
|
self.changeOpenBup()
|
||||||
self.putPriorityOnPaths()
|
self.putPriorityOnPaths()
|
||||||
self.runTcpDump()
|
self.runTcpDump()
|
||||||
self.runNetemAt()
|
self.runNetemAt()
|
||||||
@ -43,6 +44,11 @@ class MpExperience:
|
|||||||
if int(metric) >= 0:
|
if int(metric) >= 0:
|
||||||
self.mpTopo.notNSCommand("echo " + metric + " > /sys/module/mptcp_sched_metric/parameters/metric")
|
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):
|
def putPriorityOnPaths(self):
|
||||||
# Only meaningful if mpTopo is instance of MpMultiInterfaceTopo
|
# Only meaningful if mpTopo is instance of MpMultiInterfaceTopo
|
||||||
if isinstance(self.mpTopo, MpMultiInterfaceTopo):
|
if isinstance(self.mpTopo, MpMultiInterfaceTopo):
|
||||||
|
@ -63,6 +63,7 @@ class MpParamXp(MpParam):
|
|||||||
EXPIRATION = "expiration"
|
EXPIRATION = "expiration"
|
||||||
BUFFERAUTOTUNING = "bufferAutotuning"
|
BUFFERAUTOTUNING = "bufferAutotuning"
|
||||||
METRIC = "metric"
|
METRIC = "metric"
|
||||||
|
OPENBUP = "openBup"
|
||||||
|
|
||||||
|
|
||||||
# global sysctl
|
# global sysctl
|
||||||
@ -101,6 +102,7 @@ class MpParamXp(MpParam):
|
|||||||
defaultValue[EXPIRATION] = "300"
|
defaultValue[EXPIRATION] = "300"
|
||||||
defaultValue[BUFFERAUTOTUNING] = "1"
|
defaultValue[BUFFERAUTOTUNING] = "1"
|
||||||
defaultValue[METRIC] = "-1"
|
defaultValue[METRIC] = "-1"
|
||||||
|
defaultValue[OPENBUP] = "-1"
|
||||||
|
|
||||||
defaultValue[CLIENTPCAP] = "no"
|
defaultValue[CLIENTPCAP] = "no"
|
||||||
defaultValue[SERVERPCAP] = "no"
|
defaultValue[SERVERPCAP] = "no"
|
||||||
|
Loading…
Reference in New Issue
Block a user