Try TT Now

TTM Network Administration

Compressing Data

Overview

By default, TTM Remote Clients and Remote Host Daemons compress data when sending via TCP/IP. To disable data compression, set the compression_level to false in the Remote Host Daemon’s ttmd.cfg file. To enable data compression, set compression_level to true.

Tip

The Remote Host Daemon automatically detects whether a Remote Client is set to compress data or not and will adjust its own behavior appropriately: the Remote Host Daemon compresses its data for all Remote Clients that have compression enabled, but sends uncompressed data to Remote Clients with compression disabled.

Configuring Remote Client Compression

You use the Daemon Setup dialog box to configure whether Remote Client machines compress data before sending it to the Remote Host Daemon. By default, Remote Clients are set to compress their data.

To configure whether TTM on a Remote Client compresses data:

  1. To open Guardian, double-click the TT icon in the system tray.
  2. On the Config menu, click Daemon Setup.

    The Daemon Setup dialog box appears.

  3. In the Remote Proxy Daemon section, click to select whether the Remote Client compresses its data:
    • If you want the client machine to compress its data, click to select Enable Compression.
    • If you do not want the client machine to compress its data, click to remove the checkmark from Enable Compression.
  4. To save your change and exit the Daemon Setup dialog box, click OK.

    A Guardian prompt appears stating that for your changes to take effect, you must shutdown and then restart all TT processes.

  5. Click Yes.

Configuring Remote Host Daemon Compression

To configure compression on the Remote Host Daemon, you use the compression_level parameter in the ttmd.cfg file. Remote Host Daemon compression works only on TCP/IP links maintained by the Remote Host Daemon with its Remote Clients. You cannot configure TTM on the Remote Host Daemon to compress multicast data that it sends over the local network segment.

Note

If the compression_level parameter is omitted, compression is enabled and set to true.

To configure compression on Remote Host Daemons:

  1. Using Notepad, open the ttmd.cfg file located in <root drive>:ttconfig.
  2. In the <General> section, locate compression_level.
  3. If you do not see compression_level, add this parameter to a unique line in the <General> section.
  4. To disable compression, set the compression_level to false. To enable compression, set the compression_level parameter to true. TT recommends that the Remote Clients are also set to true, however:
    • If a Remote Client is not configured for compression, the Remote Host Daemon does not compress its data when sending to that Remote Client.
    • If you set the Remote Host Daemon to a value other than the Remote Client setting (the default is true), TTM writes a Information message to its log file.
  5. Save and then close out of ttmd.cfg.
  6. Stop and restart TTM.

    The following is an example of a configured ttmd.cfg file.

    Example ttmd.cfg file

    #

    # TTM Communication Daemon Configuration file

    # Copyright(C) 2009 Trading Technologies International Inc., all

    # rights reserved

    #############################################################

    <TTMConfiguration>

    <General>

    # Logging type StdErr, File, both, none

    LoggingType = StdErr

    # tracing level normal, trace1, trace2, trace3, trace4

    TracingLevel = normal

    # Number of days log files will be kept for

    LogFileHistory = 10

    # Request Port

    RequestPort = 10200

    # If true, only local communications (on the same box) allowed

    local = true

    compression_level = true

    </General>

    <MulticastGroups>

    > = 239.255.241.41

    </MulticastGroups>

    </TTMConfiguration>

Compression Parameter

Compression Parameter
ParameterDescription

compression_level

Sets whether the Remote Host Daemon compresses its data before sending to its Remote Clients. To disable compression, set this value to false. To enable compression, set the value to true.

  • If a Remote Client is not configured for compression, the Remote Host Daemon does not compress its data when sending to that Remote Client.
  • If you set the Remote Host Daemon to a value other than the Remote Client setting, TTM writes an Info message to its log file.

Note: By default compression is enabled.

Compression Level Mismatches

TTM continues to function normally but logs a Info entry to its log file if either of the following setup scenarios occur:

  • The Remote Client and Remote Host Daemon use different values for the compression_level setting.
  • One machine is set to compress and the other machine is set to not compress.

In either of these cases, TTM records the following line entry to its log file, where X is the compression setting of the Remote Host Daemon and Y is the compression setting of the TTM Remote Client:

Syntax:

INFO: Connection Stream Compression parameters mismatch. Daemon Compression Level: X, Client Compression Level: Y. Compression disabled.

If either machine is set to 0, neither machine compresses their data (no compression occurs) when they communicate directly with one another. Though if the Remote Host Daemon is set to compress, and communicates with additional Remote Clients that are set to compress, the Remote Host Daemon continues to compress its data when sending data to those other Remote Clients.