rapiz1 / rathole

A lightweight and high-performance reverse proxy for NAT traversal, written in Rust. An alternative to frp and ngrok.
Apache License 2.0
9.86k stars 495 forks source link

TCP vs Websocket performance and bandwith usage #390

Open zerodwide opened 2 months ago

zerodwide commented 2 months ago

Feature Proposed Comparison between TCP & Websocket in performance and bandwidth usage

Use Case i used rathole for a middle tunnel for v2ray vpn service for a short period of time. my problem is bandwidth usage is not 1:1 for sending and receiving. sending is about 20% more than receive! as i am paying for bandwidth this is really my concern.

i am using gost ssh for tunneling, and usage is 1:1

so i was wondering is any enhancement i can do to bring usage close to 1:1 ? what if i use websocket? does it use less traffic?

thanks in advance.

xlfish233 commented 1 day ago

Infact ,using websocket may take more bandwidth