Skip to content
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 perform a performance test of mmproxy-rs? #7

Closed
lootoos opened this issue Dec 20, 2022 · 6 comments
Closed

how to perform a performance test of mmproxy-rs? #7

lootoos opened this issue Dec 20, 2022 · 6 comments
Labels
question Further information is requested

Comments

@lootoos
Copy link

lootoos commented Dec 20, 2022

iperf server install on vds?
iperf client on home pc?
next, run iperf clinet - by specifying the address of the iperf server?
Are there any ways to test TCP mmproxy-rs?
What are the commands for testing TCP mmproxy-rs?

@brkp
Copy link
Collaborator

brkp commented Dec 20, 2022

  • Start an echo server in the same machine as mmproxy-rs is running and then point mmproxy-rs to it
  • Install tcpkali and run the following command on that same machine:
tcpkali -c 50 -T 10s -e1 'PROXY TCP4 127.0.0.1 127.0.0.1 \{connection.uid} $ECHOSERVERPORT\r\n' -m 'PING\r\n' 127.0.0.1:$MMPROXYPORT

Please note that we have an open issue (#4) that aims to improve the throughput of the TCP proxy by approximately 100%, but I have not yet had the time to fully work on it because of upcoming final exams.

@markus-wa markus-wa added the question Further information is requested label Dec 22, 2022
@lootoos
Copy link
Author

lootoos commented Dec 23, 2022

Start the echo server on the same machine running mmproxy-rs - how to start the echo server?

@brkp
Copy link
Collaborator

brkp commented Dec 23, 2022

One option for setting up an echo server is to use ncat. To do so, simply enter the command ncat -e /bin/cat -kl 1122 in the terminal. This will start an echo server on port 1122. Another option, which is faster but requires a bit more setup, is bpf-echo. If you want to use this option, you can follow the installation instructions on the GitHub page.

@lootoos
Copy link
Author

lootoos commented Dec 24, 2022

I run "ncat -e /bin/cat -kl 1122" which command should I enter next to check the performance?

@markus-wa
Copy link
Member

I think I will add more detailed benchmarking docs when I have some time

@lootoos
Copy link
Author

lootoos commented Dec 27, 2022

When should I wait ?

@brkp brkp closed this as completed May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants