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

TCP testing with -F doesn't work #221

Closed
sm1ly opened this issue Aug 9, 2023 · 1 comment
Closed

TCP testing with -F doesn't work #221

sm1ly opened this issue Aug 9, 2023 · 1 comment

Comments

@sm1ly
Copy link

sm1ly commented Aug 9, 2023

Hello!
I am attempting to test various I/O multiplexing (iomux) types using the TCP protocol.
I have a file containing a list of IP addresses and ports.
My intention is to initiate sockperf with the command sockperf sr --tcp -f list -F select/poll/epoll.
However, I encountered an error message:
"sockperf: --tcp conflicts with -f option."
While trying to understand the purpose of the "type" in the "type:ip:port" format within the file, I've been unable to find clarification.
Could you please explain the meaning of this "type" and how I can effectively test different TCP iomux types?

@igor-ivanov
Copy link
Collaborator

igor-ivanov commented Aug 22, 2023

-f option accepts file in special format as

T:1.1.1.0:17000
U:1.1.1.1:18000

T - TCP
U -UDP

so --tcp is not needed in command line

See man page: https://manpages.debian.org/bullseye/sockperf/sockperf.1.en.html


$sockperf server -f conf.file -F e
sockperf: == version #3.5-no.git ==
sockperf: [SERVER] listen on:
[ 0] IP = 5.2.1.3        PORT =  6671 # TCP
[ 1] IP = 5.2.1.3        PORT =  6672 # TCP
[ 2] IP = 5.2.1.3        PORT =  6673 # TCP
[ 3] IP = 5.2.1.3        PORT =  6674 # TCP
[ 4] IP = 5.2.1.3        PORT =  6675 # TCP
sockperf: Warmup stage (sending a few dummy messages)...
sockperf: [tid 4805] using epoll() to block on socket(s)
Every line in feed file should have following format as

where

[U|T] - UDP or TCP protocol;
address - Internet Protocol (IP) address;
port - Port number;

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