IBM Support

TCP R2 Retransmission Count (TCPR2CNT) - CHGTCPA Information

Troubleshooting


Problem

This document describes the TCP R2 retransmission function within the IBM i Change TCP Attributes (CHGTCPA) command.

Resolving The Problem

TCP retransmissions are based on TCP/IP communications, where packets are sent to a host, and those packets failing to be acknowledged by the remote host. When the system is forced to send that data again, it is known as a TCP retransmit or TCP retransmission packet. The IBM i controls TCP/IP retransmissions using the Change TCP Attributes (CHGTCPA) command, with the parameter TCP R2 retransmission count (TCPR2CNT)

By default, this value is set to 16. This indicates the System i will retransmit a packet up to 16 times before the connection will expire and ultimately terminate. The underlying timing mechanism of a TCP retransmit is based on a calculation of the round trip time between the client and the host. The common timing referred to is based on the initial retransmit occurring 250ms (.250 seconds) after the initial packet goes unacknowledged. The timer is then exponentially backed off. For example, using the 250ms base timer, this is how the corresponding retransmits are timed:

R2#IntervalTotal Time
10.25 0.25
20.50 0.75
31.01.75
42.03.75
54.07.75
68.015.75
71631.75
83263.75
964128
10128256
11128384
12128512
13128640
14128768
15128896
161281024 = ~17 minutes

Notice at retransmit (R2#) 11, we maintain the 128-second interval versus backing off further to 256 seconds. This is an intentional design to keep the retransmits to a maximum delay of approximately 2 minutes. The total duration of a connection going through full retransmissions would be roughly 17 minutes in the example above. The numbers above are a general example of the timing mechanism; however, these are very close to real world times used in client environments.

[{"Product":{"code":"SWG60","label":"IBM i"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"Communications-TCP","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"Version Independent","Edition":"","Line of Business":{"code":"LOB57","label":"Power"}}]

Historical Number

564994179

Document Information

Modified date:
18 December 2019

UID

nas8N1012183