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

[openfastpath] Help for TCP application #206

Open
sovu opened this issue May 22, 2018 · 2 comments
Open

[openfastpath] Help for TCP application #206

sovu opened this issue May 22, 2018 · 2 comments
Assignees

Comments

@sovu
Copy link
Contributor

sovu commented May 22, 2018

Dear OpenFastPath developpers,

We want to test OpenFastPath to improve a network application. Only UDP connections need to work with OFP, TCP connections can stay in Linux BSD API. I try to develop a code with your API for 3 weeks without success. My codes are based on the socket example code. I test them with an echo application on another machine (basic Linux Ubuntu, without OFP, 192.168.0.59) and run my application (192.168.0.41).

My UDP test (with OFP) works fine. But I can observe a lot of mmap failure in the beginning of the application.

I did a TCP test based on my UDP test but didn't work. In beginning, I try with OFP API. I have seen (on Github issues) that there are some problem with the “ofp_connect” function and after testing “ofp_select” I have decided to continue with BSD API. But I don't succeed to make this API working with fast path.
I can see with Wireshark (after capturing packet with tcpdump) that the TCP/SYN packet is sent and the echo server respond with the TCP/SYN-ACK packet but after I have a lot of retransmission packet and “connect” function never return (I don't change socket option, this function still blocking).

I don't know where the problem is (configure option ? Code structure ? API use ?) and I hope the .zip files I attach (client/server code/log and pcap file) will help you to help me.

Thank you in advance …

Kind Regards,

Guillaume BLOINO

@iufl
Copy link

iufl commented May 24, 2018

simple_tcp_com.zip

@iufl
Copy link

iufl commented May 24, 2018

I attached a functional example of the TCP client.

An example of running:
./simple_tcp_com -c 1 -i 0 -r 192.168.10.1 -p 12345 -f ofp.cli

-c - number of cores
-i - the interface that will be enabled, in this case the interface is used by DPDK and its id is 0
-r - the IP address of the server
-p - the port the server is listening on
-f - config file for OFP

ofp.cli contains the IP address that will be added on the interface:
ifconfig fp0 192.168.10.2/24

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