mpExperienceIperf: add iperfParallel parameter
Allow to specify the number of parallel connections to make for an iperf test. Useful to model congestion in a network.
This commit is contained in:
parent
4750bf6d9a
commit
8476882cf2
@ -35,6 +35,7 @@ class MpExperienceIperf(MpExperience):
|
||||
todo : param LD_PRELOAD ??
|
||||
"""
|
||||
self.time = self.xpParam.getParam(MpParamXp.IPERFTIME)
|
||||
self.parallel = self.xpParam.getParam(MpParamXp.IPERFPARALLEL)
|
||||
|
||||
def prepare(self):
|
||||
MpExperience.prepare(self)
|
||||
@ -45,7 +46,7 @@ class MpExperienceIperf(MpExperience):
|
||||
|
||||
def getClientCmd(self):
|
||||
s = MpExperienceIperf.IPERF_BIN + " -c " + self.mpConfig.getServerIP() + \
|
||||
" -t " + self.time + " &>" + MpExperienceIperf.IPERF_LOG
|
||||
" -t " + self.time + " -P " + self.parallel + " &>" + MpExperienceIperf.IPERF_LOG
|
||||
print(s)
|
||||
return s
|
||||
|
||||
|
@ -57,6 +57,7 @@ class MpParamXp(MpParam):
|
||||
DITGBURSTSONPACKETSSEC = "ditgBurstsOnPacketsSec"
|
||||
DITGBURSTSOFFPACKETSSEC = "ditgBurstsOffPacketsSec"
|
||||
IPERFTIME = "iperfTime"
|
||||
IPERFPARALLEL = "iperfParallel"
|
||||
PRIOPATH0 = "prioPath0"
|
||||
PRIOPATH1 = "prioPath1"
|
||||
BACKUPPATH0 = "backupPath0"
|
||||
@ -143,6 +144,7 @@ class MpParamXp(MpParam):
|
||||
defaultValue[DITGBURSTSONPACKETSSEC] = "0"
|
||||
defaultValue[DITGBURSTSOFFPACKETSSEC] = "0"
|
||||
defaultValue[IPERFTIME] = "10"
|
||||
defaultValue[IPERFPARALLEL] = "1"
|
||||
defaultValue[PRIOPATH0] = "0"
|
||||
defaultValue[PRIOPATH1] = "0"
|
||||
defaultValue[BACKUPPATH0] = "0"
|
||||
|
Loading…
Reference in New Issue
Block a user