Network transfer timing differences

DannyBackx
Posts: 33
Joined: Wed Sep 19, 2018 7:17 pm

Network transfer timing differences

Postby DannyBackx » Mon Dec 31, 2018 1:17 pm

Hi,

I'm experiencing big difference in time to transfer a 5KB image between ESP32 nodes.
The piece of log below shows times ranging from 600ms to 9s.
The server time always shows 2ms.

How can this be explained and fixed ? (See https://svn.code.sf.net/p/espalarm/svnc ... /Peers.cpp )

The connect failures are also a mystery, the listen queue is long enough for the number of nodes.

Thanks,

Danny

Server :
I (1212683) ImageTaskLoop: Client for icon image : 192.168.0.156
I (1212683) ImageTaskLoop: Wrote icon image, 5000 bytes, duration 2 ms
Client :
I (323044) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
I (323234) Peers: ImageFromPeerBinaryAsync until connect : 195 ms
I (323754) Peers: ImageFromPeerBinaryAsync xfer complete : 709 ms (2018-12-31 12:57:30)
I (323754) Peers: ImageFromPeerBinaryAsync : duration 710 ms
I (376804) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
I (376994) Peers: ImageFromPeerBinaryAsync until connect : 188 ms
I (377514) Peers: ImageFromPeerBinaryAsync xfer complete : 708 ms (2018-12-31 12:58:24)
I (377514) Peers: ImageFromPeerBinaryAsync : duration 709 ms
I (437734) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
I (437924) Peers: ImageFromPeerBinaryAsync until connect : 193 ms
I (438334) Peers: ImageFromPeerBinaryAsync xfer complete : 603 ms (2018-12-31 12:59:25)
I (438334) Peers: ImageFromPeerBinaryAsync : duration 604 ms
I (498764) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
I (498954) Peers: ImageFromPeerBinaryAsync until connect : 193 ms
I (499364) Peers: ImageFromPeerBinaryAsync xfer complete : 598 ms (2018-12-31 13:00:26)
I (499364) Peers: ImageFromPeerBinaryAsync : duration 600 ms
I (559794) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
I (559984) Peers: ImageFromPeerBinaryAsync until connect : 195 ms
I (562344) Peers: ImageFromPeerBinaryAsync xfer complete : 2550 ms (2018-12-31 13:01:27)
I (562344) Peers: ImageFromPeerBinaryAsync : duration 2551 ms
I (683684) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
I (683884) Peers: ImageFromPeerBinaryAsync until connect : 194 ms
I (689004) Peers: ImageFromPeerBinaryAsync xfer complete : 5313 ms (2018-12-31 13:03:31)
I (689004) Peers: ImageFromPeerBinaryAsync : duration 5314 ms
I (742784) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
I (746764) Peers: ImageFromPeerBinaryAsync until connect : 3987 ms
I (747184) Peers: ImageFromPeerBinaryAsync xfer complete : 4397 ms (2018-12-31 13:04:30)
I (747184) Peers: ImageFromPeerBinaryAsync : duration 4399 ms
I (818584) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
E (836084) Peers: Can't connect to 192.168.0.199:23457, error 113 Software caused connection abort
I (851084) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
E (868664) Peers: Can't connect to 192.168.0.199:23457, error 113 Software caused connection abort
I (883664) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
E (901194) Peers: Can't connect to 192.168.0.199:23457, error 113 Software caused connection abort
I (901194) Peers static: Still alive
I (916194) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
I (924834) Peers: ImageFromPeerBinaryAsync until connect : 8640 ms
I (925244) Peers: ImageFromPeerBinaryAsync xfer complete : 9049 ms (2018-12-31 13:07:23)
I (925244) Peers: ImageFromPeerBinaryAsync : duration 9051 ms
I (925244) Peers static: Still alive
I (986804) Peers: ImageFromPeerBinaryAsync 192.168.0.199 23457
I (986994) Peers: ImageFromPeerBinaryAsync until connect : 190 ms
I (987404) Peers: ImageFromPeerBinaryAsync xfer complete : 601 ms (2018-12-31 13:08:34)
I (987414) Peers: ImageFromPeerBinaryAsync : duration 602 ms

Who is online

Users browsing this forum: No registered users and 52 guests