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

[Feature Request] Allow parallel protocol discovery #874

Open
jmanteau opened this issue Dec 17, 2023 · 2 comments
Open

[Feature Request] Allow parallel protocol discovery #874

jmanteau opened this issue Dec 17, 2023 · 2 comments
Labels

Comments

@jmanteau
Copy link

Today, trippy allow the usage of icmp, udp or tcp for the path discovery.
I would suggest a mode "all" to launch the discovery in parallel to have faster output.
I use this tool today to achieve this : flyingroutes

@fujiapple852
Copy link
Owner

Hi @jmanteau

to launch the discovery in parallel to have faster output.

Can provide more colour on the motivation here? I'm not sure how running these in parallel would improve performance. Trippy operates in rounds with a default min/max round time of 1s, but you can reduce this if you wish to trace at a faster rate.

For example, to trace with 250ms round times (50ms grace period):

trip -i 250ms -g 50ms -T 250ms example.com

Running ICMP, UDP and TCP tracing in parallel has a challenge in that the latter two provide no simple way to associated the ICMP responses with the motivating packet (this is why Trippy currently only allows multiple tracing for ICMP tracing). I suppose it would work if you limit it to exactly 1x UDP and 1x TCP trace along with the 1x ICMP trace. I haven't studied the project you linked, how do they resolve this issue?

@jmanteau
Copy link
Author

I was too short in my use case description indeed. The interest was mainly in a corporate environment where you may need to switch protocols depending on how the network/firewall is configured. It requires in this case to see which protocol is "working".
Reading the code, the project asynchronously send the differents UDP/TCP/ICMP packets and aggregate the ICMP answers to create the answer graph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants