We now dicuss methods to obtain higher performance in slow speed environments. Note that disabling the modem compression renders comparable the throughput of encrypted vs non-encrypted sessions. The existing order of operations is suboptimal. One solution would be to compress prior to encryption, in klogin itself. So rather than encrypting the data within klogin, and then letting lower layers compress, we compress the data first, and then encrypt:
To obtain a higher throughput the application should compress bulk information before encrypting it:
As noted above, some cases will not be amenable to performance improvements, such as applications that communicate using only very short packets that are not compressible. We focus instead on areas where improvement is possible, that is, where we have large enough blocks of data that compression will provide a net benefit.