chat works, throughput or latency does not
matti opened this issue · comments
running
$ weron chat --community mycommunity --password mypassword --key mykey --names user1,user2,user3 --channels one,two,three
on two servers works, but throughput or latency just "hangs":
mac $ weron utility throughput --raddr "wss://asdfasdf.fly.dev" --community mycommunity --password mypassword --key mykey --server
.wss://asdfasdf.fly.dev
{"level":"info","addr":"wss://asdfasdf.fly.dev","time":"2022-05-08T12:38:56+03:00","message":"Connecting to signaler"}
{"level":"info","id":"328100cc-6814-461f-b26b-b06e30eefb0f","time":"2022-05-08T12:38:56+03:00","message":"Connected to signaler"}
{"level":"info","id":"31deeab6-3281-4ec7-89bb-d3f7b243b863","time":"2022-05-08T12:39:00+03:00","message":"Connected to peer"}
linux $ weron utility throughput --raddr "wss://asdfasdf.fly.dev" --community mycommunity --password mypassword --key mykey
.wss://asdfasdf.fly.dev
{"level":"info","addr":"wss://asdfasdf.fly.dev","time":"2022-05-08T12:38:59+03:00","message":"Connecting to signaler"}
{"level":"info","id":"31deeab6-3281-4ec7-89bb-d3f7b243b863","time":"2022-05-08T12:39:00+03:00","message":"Connected to signaler"}
{"level":"info","id":"328100cc-6814-461f-b26b-b06e30eefb0f","time":"2022-05-08T12:39:00+03:00","message":"Connected to peer"}
another peer is mac with tailscale and other is linux with tailscale - does tailscale interfere?
oh, it works but is just slow - maybe the command should output something before 34s has elapsed?
1.459 MB/s (11.673 Mb/s) (50 MB read in 34.26586123s)
1.260 MB/s (10.078 Mb/s) (50 MB read in 39.691700195s)
1.354 MB/s (10.830 Mb/s) (50 MB read in 36.934796799s)
That could be a good idea! The slow speeds are probably bc. of a high latency between the peers, SCTP/WebRTC data channels still struggle with that: https://www.google.com/url?sa=t&source=web&rct=j&url=https://researchportal.helsinki.fi/files/167373638/Eskola_webrtc.pdf&ved=2ahUKEwjrxYWV18_3AhUYj4kEHRYpB-kQFnoECAgQAQ&sqi=2&usg=AOvVaw3PSbIeE4dt7iDowj_9tliW and https://groups.google.com/g/discuss-webrtc/c/0synE_0zeCQ
reopened then
@matti Thanks for you suggestion; I've added the following log messages on the Debug
level, which should show that the system is in fact doing something:
{"level":"debug","channelID":"weron/throughput/primary","peerID":"39e1cb10-6b0d-412e-8711-bce1112d89e9","time":"2022-05-15T17:07:12+02:00","message":"Started receiving data"}
{"level":"debug","channelID":"weron/throughput/primary","peerID":"39e1cb10-6b0d-412e-8711-bce1112d89e9","time":"2022-05-15T17:07:14+02:00","message":"Acknowledging received data"}
Be sure to set the verbosity level appropriately (--verbose 6
) and feel free to reopen if the solution isn't working appropriately.
awesome, thank you!