Open chenxiang2019 opened 4 years ago
Each core write into own pcap file, which is open one time, close one time if enough.
Support dump the first snaplen bytes of each packet.
if pcap file is lager than savelen bytes, it will be closed and next file was dumped into.
[pcap] enable = 0 snaplen= 16777216 savelen= 16777216
[port0] addr=10.0.0.26 netmask=255.255.255.0 broadcast=10.0.0.255 gateway=10.0.0.254
Try to modify
enable = 0
to enable = 1
in [pcap]` section.gateway=10.0.0.254
to gateway=10.0.0.25
in [port0]
section.Thank you for your response. I have tried the methods you mentioned, but the problem still exists. Are there any examples that illustrate the testing of F-Stack? Thanks!
Thank you for your response. I have tried the methods you mentioned, but the problem still exists. Are there any examples that illustrate the testing of F-Stack? Thanks!
这个问题解决了吗?我也遇到同样的问题了
Hi all,
I tried to implement a simple TCP server based on the socket-like APIs provided by f-stack. However, the TCP server cannot normally process SYN packets sent by a client.
Here is the detailed information:
1. Testbed
I established the following testbed, which consists of two servers, S1 and S2. S1 and S2 are directly connected. Each server has a two-port 40 Gbps Intel NIC and runs Ubuntu 16.04 system. The two NIC ports are binded to DPDK
igb_uio
drivers.The server uses 10.0.0.26 and 23456 as its IP address and port, respectively.
2. Server
I wrote the following code with respect to the example given by this repository.
I use the following
config.ini
when starting the server:3. Client
I wrote a simple client based on Python to inject requests to the server:
4. Running
First, I start the server in S2, which prints the following logs:
Next, I execute the client program in S1. I found that the client continuously sends SYN requests to the server. What I expected is that the server accepts the connection requests issued by the client and responses data to the client.
However, the server seems to never capture any events from NIC drivers. Thus, it neither accepts the connection requests or produces "ports.pcap" file in the target directory.
This is weird and I have no idea about this situation. Could you help me with this problem? Any suggestions or comments will be appreciated.