Genymobile / gnirehtet

Gnirehtet provides reverse tethering for Android
Apache License 2.0
6.29k stars 576 forks source link

increase speed or packet size? #520

Open captainscf opened 10 months ago

captainscf commented 10 months ago

Hi, first of all, thank you for scrcpy, I just realize they're from the same team.

I'm trying to get Moonlight to run smoothly on my tablet via USB-C from my PC. Connecting via Android tethering yielded 210Mbps to PC, 340Mbps from PC While using gnirehtet, I only got 80Mbps to PC, 130Mbps from PC I then try use gigabit ethernet for my tablet and it did reach 900Mbps to and from PC.

The reason I'm asking if the speed can be increased is because I wanted to maximize the USB-C 3.0 5Gbps bandwidth, I know 5Gbps is theoretical, but it should be able to communicate above 1Gbps, faster than gigabit ethernet. Using adb push pull some files, it reached average of 1116Mbps analyzed from Wireshark USBpcap, the packet sizes are 1048603 bytes with adb push/pull, with gnirehtet the packet sizes are only up to ~60000 bytes

Anything I should try to improve the bandwidth/speed? Thank you for the support.