I have one compressed SSH tunnel with one tunnel and multiple connections over it. Data in every connection tunneled is rather homogeneous, but compressing an interleaved stream will obviously make the compression worse. How does SSH compress data with several connections:
- On TCP connection level (i.e. one compressed stream, one zlib compression state)?
- Or on logical in-tunnel connection level (multiple logical streams over one TCP connection, zlib state for each one)?
Implementation is OpenSSH.