From b4e1b944f8529cae1f0e9f159266eaf38f9b1702 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Thu, 2 Jun 2016 19:00:08 +0200 Subject: [PATCH] mpExperienceDITG: burst now --- src/mpExperienceDITG.py | 4 +++- src/mpParamXp.py | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/mpExperienceDITG.py b/src/mpExperienceDITG.py index 665f769..df07d22 100644 --- a/src/mpExperienceDITG.py +++ b/src/mpExperienceDITG.py @@ -41,6 +41,8 @@ class MpExperienceDITG(MpExperience): """ self.kbytes = self.xpParam.getParam(MpParamXp.DITGKBYTES) self.mean_poisson_packets_sec = self.xpParam.getParam(MpParamXp.DITGMEANPOISSONPACKETSSEC) + self.bursts_on_packets_sec = self.xpParam.getParam(MpParamXp.BURSTSONPACKETSSEC) + self.bursts_off_packets_sec = self.xpParam.getParam(MpParamXp.BURSTSOFFPACKETSSEC) def prepare(self): MpExperience.prepare(self) @@ -50,7 +52,7 @@ class MpExperienceDITG(MpExperience): def getClientCmd(self): s = MpExperienceDITG.ITGSEND_BIN + " -a " + self.mpConfig.getServerIP() + \ - " -T TCP -k " + self.kbytes + " -O " + self.mean_poisson_packets_sec + " -l " + MpExperienceDITG.DITG_TEMP_LOG + " && " + \ + " -T TCP -k " + self.kbytes + " -l " + MpExperienceDITG.DITG_TEMP_LOG + " -B C " + self.bursts_on_packets_sec + " C " + self.bursts_off_packets_sec + " && " + \ MpExperienceDITG.ITGDEC_BIN + " " + MpExperienceDITG.DITG_TEMP_LOG + " &> " + MpExperienceDITG.DITG_LOG print(s) return s diff --git a/src/mpParamXp.py b/src/mpParamXp.py index 7bffd1f..2e739da 100644 --- a/src/mpParamXp.py +++ b/src/mpParamXp.py @@ -52,6 +52,8 @@ class MpParamXp(MpParam): VLCTIME = "vlcTime" DITGKBYTES = "ditgKBytes" DITGMEANPOISSONPACKETSSEC = "ditgMeanPoissonPacketsSec" + BURSTSONPACKETSSEC = "burstsOnPacketsSec" + BURSTSOFFPACKETSSEC = "burstsOffPacketsSec" PRIOPATH0 = "prioPath0" PRIOPATH1 = "prioPath1" EXPIRATION = "expiration" @@ -128,6 +130,8 @@ class MpParamXp(MpParam): defaultValue[VLCTIME] = "0" defaultValue[DITGKBYTES] = "10000" defaultValue[DITGMEANPOISSONPACKETSSEC] = "1500" + defaultValue[BURSTSONPACKETSSEC] = "2250" + defaultValue[BURSTSOFFPACKETSSEC] = "750" defaultValue[PRIOPATH0] = "0" defaultValue[PRIOPATH1] = "0"