Variety of Compression Formats . Recipient states supported formats Sender selects format . Sender decides whether to compress on a per-message basis . The BEEP Compression Feature Specification aims to improve efficiency of the transmission in a BEEP session. When used appropriately, compression can substantially reduce the size of individual messages, thus improving performance.
Compression is orthogonal to the messages.
One goal of this specification is to make compression a feature that is orthogonal to the various profiles in use. Designers and implementers of profiles need not be concerned with compression. The messages they support are what the sender and recipient peer work with, and the fact that these might be compressed enroute should not affect them. It only makes sense to use compression if this cost is outweighed by the two benefits of reduced network transmission volumes and the fact that as fewer frames are transferred, the completed message will reach the recipient peer faster. If the sender peer transmits the same message multiple times, it might be beneficial to compress it once and maintain it, and they transmit the compressed message directly many times.