-
Notifications
You must be signed in to change notification settings - Fork 6
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
Investigate Delay Time Between TUN Pings #64
Comments
Using an FTDI USB to serial converter dongle with a physical wire which I'm pretty sure is a Test ConfigurationThe serial port has been left setup in the standard Single Ping TestRight off-the-bat I send a single ping and the following packets are shown on This is a pure loopback so Now, I would expect maybe it takes a little time to read the ping packet it. While I'm not sure it's completely parallel or completely 2x the time, let's assume it's 2x the time (5.82ms to send, 5.83ms to receive) over the serial port. This still leaves the TUN 988.3ms to operate. What's going on? |
Using simple
Well the elephant in the room is |
All
I wonder if this changes drastically with the size of the Checking
|
@kb1lqc , can you attach (or send me) your PCAP file of this? |
OK come to find out, the speed of the
This shows that the timeouts are causing initial delays and if I send data at the wrong moment of each check it could take up to 2 seconds over an RF link... |
@montag451 is there a timeout for a TUN read call in your TUN/TAP module? |
Oh boy haha @hdkmike I set a 1 second timeout on the TUN with a timeout decorator.. https://github.com/FaradayRF/faradayio/blob/develop/faradayio/faraday.py#L162 I remember this now, |
@hdkmike here's a PCAP of several normal pings (I believe 68 bytes, but could be 84 or so on the wire?) with a |
@kb1lqc , that'll do it! I've run across this before doing basic "socket pumps" (i.e. send data from one socket to another). This is definitely the right track. |
Also, thanks for the PCAP. |
Asynchronous is always better. 😄 |
👆 Agreed! |
@hdkmike @reillyeon OK looks like I'll be working on #65 |
I believe that the observed 1 second or so of delay when using
ping
with thefaradayio-cli
module (which usesfaradayio
) might be coming fromfaradayio
. Investigate, document, and possibly fix what's going on. This is a bug because 1 second ping times is pretty unacceptable.The text was updated successfully, but these errors were encountered: