From 897b7ebf7f486427424dcd38b6a5fb6393175591 Mon Sep 17 00:00:00 2001 From: Quentin De Coninck Date: Wed, 27 Nov 2019 20:11:29 +0100 Subject: [PATCH] burst should not be confused with latency --- src/mpLinkCharacteristics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mpLinkCharacteristics.py b/src/mpLinkCharacteristics.py index 1d51063..05febf6 100644 --- a/src/mpLinkCharacteristics.py +++ b/src/mpLinkCharacteristics.py @@ -53,7 +53,7 @@ class MpLinkCharacteristics: for n in self.netemAt: cmd = cmd + "sleep " + str(n.delta) cmd = cmd + " && tc qdisc del dev " + ifname + " root " - cmd = cmd + " && tc qdisc add dev {} root handle 5:0 tbf rate {}mbit burst {} latency {}ms".format(ifname, self.bandwidth, 1500 * int(self.queueSize), self.queuingDelay) + cmd = cmd + " && tc qdisc add dev {} root handle 5:0 tbf rate {}mbit burst 15000 latency {}ms".format(ifname, self.bandwidth, self.queuingDelay) cmd = cmd + " && tc qdisc add dev {} handle ffff: ingress".format(ifname) cmd = cmd + " && tc filter add dev {} parent ffff: u32 match u32 0 0 police rate {}mbit burst {} drop".format(ifname, self.bandwidth, int(self.queueSize) * 1500)