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

benchmarking #634

Closed
asterwyx opened this issue Aug 25, 2021 · 6 comments
Closed

benchmarking #634

asterwyx opened this issue Aug 25, 2021 · 6 comments

Comments

@asterwyx
Copy link

Hi owners, this may be a question. I wonder if there is a professional tool to measure the throughput of usrsctp. I mean, it's better not to write any code on my own. I wonder how you do your benchmark on usrsctp, and what's the common performance. Can you give me a reference? Thanks!

@tuexen
Copy link
Member

tuexen commented Aug 25, 2021

I'm doing this normally only for the kernel stack using tsctp or uperf. We do have tsctp ported to the userland stack. So you could try that...

@asterwyx
Copy link
Author

I'm not sure about tsctp you've mentioned. I've searched just now in google. Is it an open-source project by nplab in Github? What about the tsctp ported to userland stack. Is it referring to the file "tsctp.c" under programs folder of usrsctp?

@tuexen
Copy link
Member

tuexen commented Aug 25, 2021

I'm not sure about tsctp you've mentioned. I've searched just now in google. Is it an open-source project by nplab in Github? What about the tsctp ported to userland stack. Is it referring to the file "tsctp.c" under

Correct. I wrote it years ago the be able to do testing. It was named after ttcp, just for SCTP. That is the reason for the name. It was mainly used to test throughput in dependency of streams, message size, and so on.

programs folder of usrsctp?

Yepp. That is the port to usrsctp I was referring to.

@asterwyx
Copy link
Author

I'm not sure about tsctp you've mentioned. I've searched just now in google. Is it an open-source project by nplab in Github? What about the tsctp ported to userland stack. Is it referring to the file "tsctp.c" under

Correct. I wrote it years ago the be able to do testing. It was named after ttcp, just for SCTP. That is the reason for the name. It was mainly used to test throughput in dependency of streams, message size, and so on.

programs folder of usrsctp?

Yepp. That is the port to usrsctp I was referring to.

I haven't found any user guide about these two programs. Is there any simple example? I just want to measure throughput between two nodes and will not use UDP encapsulation.

@tuexen
Copy link
Member

tuexen commented Aug 29, 2021

You can start the server by just running tsctp. The server is just receiving messages. The client can be started with tsctp remote-addres. It will send 1024 messages of 1024 byte. You can use -n number to change the number of messages, -l length to change the size of the messages. Instead of sending a specific number of messages, you can use -T time to specify the number seconds to send messages. You can use tsctp -h to get a list of supported parameters.

@asterwyx
Copy link
Author

You can start the server by just running tsctp. The server is just receiving messages. The client can be started with tsctp remote-addres. It will send 1024 messages of 1024 byte. You can use -n number to change the number of messages, -l length to change the size of the messages. Instead of sending a specific number of messages, you can use -T time to specify the number seconds to send messages. You can use tsctp -h to get a list of supported parameters.

Thanks!

@asterwyx asterwyx closed this as completed Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants