Methods, apparatuses, and a system for compressing, filtering, and transmitting of protocol messages to be transmitted from a transmitting side via a protocol-aware intermediary node to a receiving side, the compressing method comprising the steps of: detecting a type of a protocol message to be compressed; and selectively compressing, based on the detected message type, certain predefined parts of the protocol message and leaving other predefined parts of the protocol message uncompressed; and the filtering method, if it is retrieved that the protocol message is not fully compressed, comprising the steps of: detecting a type of the protocol message to be filtered; scanning the message; and selectively processing, based on the detected message type and the scanning, certain predefined parts of the protocol message and leaving other predefined parts of the protocol message unprocessed.