OpenTP1 Version 7 TP1/Client User's Guide TP1/Client/W, TP1/Client/P

[Contents][Index][Back][Next]

2.3.14 Data compression

The data compression compresses the user data sent to the network by RPCs. Compression reduces the number of packets sent to the network, easing congestion in the network.

Organization of this subsection
(1) Specification method
(2) Scope
(3) Overview of the facility
(4) Effect of the data compression

(1) Specification method

Specify data compression using DCCLTDATACOMP in the client environment definition.

(2) Scope

The data compression can be used if the service-requested TP1/Server Base is version 03-03 or later.

(3) Overview of the facility

Using this facility, TP1/Client compresses the value of the input parameter (in) set by the dc_rpc_call_s function which is issued from the CUP and sends it to the network. For this inquiry, the value of the response (out) returned from the SPP is also compressed by TP1/Server and sent to the network. TP1/Client that receives the response decompresses the compressed data and passes it to the CUP.

The compression depends on the version of the service-requested TP1/Server Base as follows.

(a) Version 03-05 or earlier

When the input parameter value is not compressed, TP1/Server Base does not compress the response value even if compressing it will be effective.

(b) Version 03-06 or later

Even if the input parameter value is not compressed, TP1/Server Base compresses the response value if compressing it will be effective.

The following figure gives an overview of the data compression.

Figure 2-6 Overview of data compression

[Figure]

(4) Effect of the data compression

The effect of the data compression depends on the contents of the user data. The data compression is effective when the user data contains many consecutive identical characters. For some types of user data, it is hardly effective at all. When executing the dc_rpc_call_s function more than once from the same CUP, consider the effect of the data compression for each CUP.

Because compressing and decompressing data requires much overhead, consider the effect of the data compression and evaluate its performance before using it.