Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to test the performance of different packet size ? #1094

Closed
xujihao-fly opened this issue Dec 14, 2020 · 1 comment
Closed

how to test the performance of different packet size ? #1094

xujihao-fly opened this issue Dec 14, 2020 · 1 comment

Comments

@xujihao-fly
Copy link

How can I use iperf3 to test TCP performance of different packet size,for example: 64B、256B、512B、1024B、1400B,can use the -l parameter?

@bmah888
Copy link
Contributor

bmah888 commented Dec 17, 2020

The TCP protocol is bytestream-oriented...it doesn't preserve the size of messages sent. So if you use the -l parameter, that will control the size of messages sent by iperf3, but TCP might combine multiple sends into a larger packet or it might break a large send into multiple smaller packets. Usually TCP will try to send the largest packets it can on the network.

You can try using the -M flag to tell TCP not to send packets of larger than a given size, although some prior experience with this option has shown it to be unreliable. Another thing you could try (if you're aware) is to set the MTU of the network interface you're using (that's an operation outside of iperf3, and operating-system dependent).

@esnet esnet locked and limited conversation to collaborators Mar 17, 2022
@swlars swlars converted this issue into discussion #1294 Mar 17, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants