Real-Time Considerations
The following table specifies the optimized buffer sizes that may be used in this release with send, sendto, recv, and recvfrom.
Optimized buffer sizes
Socket Type | Optimized Buffer Size (bytes) |
---|---|
SOCK_STREAM |
1460 |
SOCK_DGRAM |
1472 |
TCP/IP Default Parameters
- The default interval between TCP keep-alive probes is 75 seconds. The default maximum number of retransmissions without responses from the remote is 12.
- For a non-established connection, since there is no computed round trip time yet, the connection times out after 75 seconds or when 12x the default network round trip time has elapsed, whichever occurs first.
To change the Hal timer period using the Control Panel:
NOTE: Use caution when setting the HAL timer period below 20 microseconds. If the HAL timer period is set too low it can inversely impact performance or cause your system to hang. Fully test the timer period you set with your real-time application on all systems on which you will deploy to verify that the hardware can accomplish the compilations required in the period set.
- Open the control panel.
- Click Configure the RTSS Subsystem > Change internal system behavior.
- Select a period from the HAL timer period (microseconds) drop-down menu. The available values are:
- 1000, 500, 200, 100 (default), 50, 20, 10, 5, 2, 1
If you have configured a custom HAL timer period not listed in the drop down menu, you can type it in.
- Restart RTX64 for your changes to take effect. If you plan to make additional changes that require a restart of the Subsystem, make all of the changes first and then restart RTX64 when you are finished.