Skip to content

Commit

Permalink
IperfFlowMeasurement.py: Add mptcp options to iperf
Browse files Browse the repository at this point in the history
Added code to support setting the `--multipath` flag in iperf3

Note: This requires a special build of iperf:
esnet/iperf#1166
  • Loading branch information
pgagne committed Aug 4, 2021
1 parent 75368ba commit 212f026
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lnst/RecipeCommon/Perf/Measurements/IperfFlowMeasurement.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ def _prepare_client(self, flow):
client_params["udp"] = True
elif flow.type == "sctp_stream":
client_params["sctp"] = True
elif flow.type == "mptcp_stream":
client_params["mptcp"] = True
else:
raise RecipeError("Unsupported flow type '{}'".format(flow.type))

Expand Down
3 changes: 3 additions & 0 deletions lnst/Tests/Iperf.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class IperfClient(IperfBase):
duration = IntParam(default=10)
udp = BoolParam(default=False)
sctp = BoolParam(default=False)
mptcp = BoolParam(default=False)
port = IntParam()
blksize = IntParam()
mss = IntParam()
Expand Down Expand Up @@ -137,6 +138,8 @@ def _compose_cmd(self):
test = "--udp"
elif self.params.sctp:
test = "--sctp"
elif self.params.mptcp:
test = "--multipath"
else:
test = ""

Expand Down

0 comments on commit 212f026

Please sign in to comment.