iperf3 is not able to read "--set-mss" parameter for TCP #1295
Replies: 4 comments
-
On my computer, the minimum MSS that can be set is 88 bytes, which means minimum 128 MTU. Did you try with larger values to see what is the minimum MSS that can be set on your machine? Also note that it may be that TCP will override the value you set. See TCP_MAXSEG description in https://man7.org/linux/man-pages/man7/tcp.7.html.
This is probably because of the window size system limit. In Linux maximum seems to be twice the size of rmem_max / wmem_max (to see the valuaes use |
Beta Was this translation helpful? Give feedback.
-
@davidBar-On I have enabled jumbo frames (MTU 9000) on my infrastructure. For window size, this is limit for read/write:
Is this value in bytes or some other unit? |
Beta Was this translation helpful? Give feedback.
-
@MuhammadMunir12 regarding:
I am not sure I understand what you mean. The issue was setting MSS to 64 bytes, so I am not sure how this is related to setting MTU to 1500 or 9000 bytes.
These values are in bytes (same values as on my computer). Probably meaning that you can set window size up to 212992*2=425986 bytes, which is less than 0.42M, and this is why setting window size to 2M didn't succeed. |
Beta Was this translation helpful? Give feedback.
-
If you really have a need for huge socket buffers, you'll have to set some of these kernel limits first, for example:
There's a bit of an assumption you know what you're doing...it's possible to get yourself in trouble by tweaking around with sysctl parameters (usually solvable by a reboot). |
Beta Was this translation helpful? Give feedback.
-
Context
I am running iperf3 for TCP and want to set packet size using flag "--set-mss or -M" but it's not piking up this argument.
The same issue if observed for window size parameter.
Version of iperf3:
iperf 3.5 (cJSON 1.5.2)
Hardware:
Dell R740xd
Operating system (and distribution, if any):
OS: RHEL 8.2 VM on OpenStack
Bug Report
Unable to set parameters for iperf3.
Expected Behavior
The window size and MTU should be set as specified in command parameters.
Actual Behavior
Steps to Reproduce
Don't know.
Beta Was this translation helpful? Give feedback.
All reactions