rakelimit icon indicating copy to clipboard operation
rakelimit copied to clipboard

Question about tools

Open kckeiks opened this issue 3 years ago • 4 comments

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.

kckeiks avatar Jan 05 '22 18:01 kckeiks

@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.

lmb avatar Jan 11 '22 16:01 lmb

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

kckeiks avatar Jan 22 '22 20:01 kckeiks

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.

sauercrowd avatar Jan 23 '22 13:01 sauercrowd

what profiling tool are you using?

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

lmb avatar Jan 24 '22 10:01 lmb