smux icon indicating copy to clipboard operation
smux copied to clipboard

smux multiplexes multiple TCP connections?

Open caleb-letsgo opened this issue 5 years ago • 1 comments

As I understand, smux uses a single TCP connection to simulate the effect of multiple virtual TCP connections. But kcptun says smux is designed to host multiple TCP links on the same connection. If you have multiple TCP connections, you have the same source and destination addresses, but different ports. So the user needs to maintain which TCP connection a stream represents. Do I understand that correctly? Can you recommend git projects that use smux?

caleb-letsgo avatar May 06 '20 07:05 caleb-letsgo

As I understand, smux uses a single TCP connection to simulate the effect of multiple virtual TCP connections. But kcptun says smux is designed to host multiple TCP links on the same connection. If you have multiple TCP connections, you have the same source and destination addresses, but different ports. So the user needs to maintain which TCP connection a stream represents. Do I understand that correctly? Can you recommend git projects that use smux?

sing-box use smux for tcp mux

xiaorong61 avatar Dec 08 '24 16:12 xiaorong61