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

Question about tools #24

Open
kckeiks opened this issue Jan 5, 2022 · 4 comments
Open

Question about tools #24

kckeiks opened this issue Jan 5, 2022 · 4 comments

Comments

@kckeiks
Copy link

kckeiks commented Jan 5, 2022

What set of tools did you use to obtain the data for your graphs, like the one below? I haven't been able to get data for "traffic forwarded".

Screenshot from 2022-01-05 12-45-53

Also, what tool did you use to simulate this flood attack where the pps rate increases? I would like to run some tests, do some experiments and have data to compare.
Thank you for making your solution and code open source! It is very educational.

@lmb
Copy link
Contributor

lmb commented Jan 11, 2022

@sauercrowd produced these, maybe he still has the source code. Note that the implementation has evolved a lot since those graphs were made, so ymmv.

@kckeiks
Copy link
Author

kckeiks commented Jan 22, 2022

@lmb what profiling tool are you using? You mentioned here #20 that you could tell the % usage of bpf_ktime_get_ns.

@sauercrowd
Copy link
Contributor

sauercrowd commented Jan 23, 2022

Hey @kckeiks, for these tests we generated artifical packets and used pre-determined timestamps rather than relying bpf_ktime_get_ns() to have full control over the simulation. This might be a good reference.
On the userspace side we used ebpfs Test function to pass the artifical data into.

We generated the actual test-data ourselves without any additional tooling by adjusting packet timestamps appropriately to match our target pps.

@lmb
Copy link
Contributor

lmb commented Jan 24, 2022

what profiling tool are you using?

Nothing fancy, I just observed the run time when faking time vs when using bpf_ktime_get_ns.

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

3 participants