mpExperienceDITG: packets of 1428 bytes

This commit is contained in:
Quentin De Coninck 2016-06-09 11:02:10 +02:00
parent 7c6d22e38b
commit d7e3307348
2 changed files with 6 additions and 1 deletions

View File

@ -40,6 +40,7 @@ class MpExperienceDITG(MpExperience):
todo : param LD_PRELOAD ??
"""
self.kbytes = self.xpParam.getParam(MpParamXp.DITGKBYTES)
self.constant_packet_size = self.xpParam.getParam(MpParamXp.DITGCONSTANTPACKETSIZE)
self.mean_poisson_packets_sec = self.xpParam.getParam(MpParamXp.DITGMEANPOISSONPACKETSSEC)
self.constant_packets_sec = self.xpParam.getParam(MpParamXp.DITGCONSTANTPACKETSSEC)
self.bursts_on_packets_sec = self.xpParam.getParam(MpParamXp.DITGBURSTSONPACKETSSEC)
@ -55,7 +56,9 @@ class MpExperienceDITG(MpExperience):
s = MpExperienceDITG.ITGSEND_BIN + " -a " + self.mpConfig.getServerIP() + \
" -T TCP -k " + self.kbytes + " -l " + MpExperienceDITG.DITG_TEMP_LOG
if self.mean_poisson_packets_sec != "0":
if self.constant_packet_size != "0":
s += " -c " + self.constant_packet_size
elif self.mean_poisson_packets_sec != "0":
s += " -O " + self.mean_poisson_packets_sec
elif self.constant_packets_sec != "0":
s += " -C " + self.constant_packets_sec

View File

@ -51,6 +51,7 @@ class MpParamXp(MpParam):
VLCFILE = "vlcFile"
VLCTIME = "vlcTime"
DITGKBYTES = "ditgKBytes"
DITGCONSTANTPACKETSIZE = "ditgConstantPacketSize"
DITGMEANPOISSONPACKETSSEC = "ditgMeanPoissonPacketsSec"
DITGCONSTANTPACKETSSEC = "ditgConstantPacketsSec"
DITGBURSTSONPACKETSSEC = "ditgBurstsOnPacketsSec"
@ -135,6 +136,7 @@ class MpParamXp(MpParam):
defaultValue[VLCFILE] = "bunny_ibmff_360.mpd"
defaultValue[VLCTIME] = "0"
defaultValue[DITGKBYTES] = "10000"
defaultValue[DITGCONSTANTPACKETSIZE] = "1428"
defaultValue[DITGMEANPOISSONPACKETSSEC] = "0"
defaultValue[DITGCONSTANTPACKETSSEC] = "0"
defaultValue[DITGBURSTSONPACKETSSEC] = "0"