# Advanced TCP Settings Source: https://documentation-external.onezero.com:4434/Hub_help_9_0/Content/HubReferences/Settings/TakerAdapterSettings/Taker_AdapterSettings_AdvTCP.htm Advanced TCP Settings Advanced settings relating to TCP Transmission Control Protocol. Notes: In the OZFIX Taker Adapter, Advanced TCP Settings are located in the Default Connections setting. In the Native Taker Adapter Adapter, these settings have their own section. Warning: Many of these settings should not be changed before consulting oneZero support, as doing so may negatively affect the performance of your entire network. Setting Description Receive Buffer Size Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so can have adverse impacts on performance. Sets the Network Stack's SO_SNDBUF value in bytes. When a value of -1 is used, the option is left at its default value. Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so can have adverse impacts on performance. Sets the Network Stack's SO_SNDBUF value in bytes. When a value of -1 is used, the option is left at its default value. Internal Receive Buffer Size Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so can have adverse impacts on performance. Sets the size (in bytes) of the internal buffer that the Hub copies data into from the TCP stack. During periods of heavy network congestion, decreasing this value can potentially help reduce latency periods. However, this comes at the cost of increased CPU usage during normal operation. Guideline: Valid input range of 128 to 2,147,483,647 specified in bytes. Note: This setting currently only applies to FIX connections. Internal Receive Buffer Size Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so can have adverse impacts on performance. Sets the size (in bytes) of the internal buffer that the Hub copies data into from the TCP stack. During periods of heavy network congestion, decreasing this value can potentially help reduce latency periods. However, this comes at the cost of increased CPU usage during normal operation. Guideline: Valid input range of 128 to 2,147,483,647 specified in bytes. Note: This setting currently only applies to FIX connections. Send Buffer Size Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so can have adverse impacts on performance. This sets the Network Stack's SO_SNDBUF value in bytes. When a value of -1 is used, the option is left at its default value. Send Buffer Size Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so can have adverse impacts on performance. This sets the Network Stack's SO_SNDBUF value in bytes. When a value of -1 is used, the option is left at its default value. Internal Send Buffer Size Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so can have adverse impacts on performance. Sets the size (in bytes) of the internal buffer that the Hub copies data into before the data is passed to the TCP Stack. Tuning this value can be useful in a few circumstances: Reduces CPU overhead during normal operation by batching messages together and reducing the number of asynchronous TCP Send calls dispatched. Enables some level of buffering even when TCPNoDelay is enabled. Sizes the data fed into the TCP Stack to match frame sizes for optimal throughput. Guidelines: During periods of heavy network congestion, decreasing this value can potentially help reduce latency periods. However, this comes at the cost of increased CPU usage during normal operation. A value of -1 enables real time mode. Messages are sent to the TCP stack immediately, without any attempt to buffer them internally. These messages may still be buffered in the TCP Stack, depending on the TCPNoDelay setting. This setting currently only applies to FIX connections. Internal Send Buffer Size Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so can have adverse impacts on performance. Sets the size (in bytes) of the internal buffer that the Hub copies data into before the data is passed to the TCP Stack. Tuning this value can be useful in a few circumstances: Reduces CPU overhead during normal operation by batching messages together and reducing the number of asynchronous TCP Send calls dispatched. Enables some level of buffering even when TCPNoDelay is enabled. Sizes the data fed into the TCP Stack to match frame sizes for optimal throughput. Guidelines: During periods of heavy network congestion, decreasing this value can potentially help reduce latency periods. However, this comes at the cost of increased CPU usage during normal operation. A value of -1 enables real time mode. Messages are sent to the TCP stack immediately, without any attempt to buffer them internally. These messages may still be buffered in the TCP Stack, depending on the TCPNoDelay setting. This setting currently only applies to FIX connections. Inactivity Timeout Period of inactivity over TCP before Hub forces a disconnect from the Taker. Guideline: Measured in seconds. Period of inactivity over TCP before Hub forces a disconnect from the Taker. Guideline: Measured in seconds. Max Queue Size Before Forced Disconnect Number of FIX messages allowed to build up in the queue before Hub forces a disconnect from the Taker. Max Queue Size Before Forced Disconnect Max Individual Message Size Determines an incoming message size above which the connection is forced to disconnect. Guidelines: This setting is specified in bytes. Valid input range is 0 to 2,147,483,647. Note: This setting is used to protect the application from running out of memory in the event that erroneous data is sent. Max Individual Message Size Determines an incoming message size above which the connection is forced to disconnect. Guidelines: This setting is specified in bytes. Valid input range is 0 to 2,147,483,647. Note: This setting is used to protect the application from running out of memory in the event that erroneous data is sent. Max Receive Message Queue Size Determines a maximum total message size allowed in the message queue. Incoming messages are pre-fetched into this message queue before being processed. Guidelines: This setting is specified in bytes. Valid input range is 128 to 2,147,483,647. Determines a maximum total message size allowed in the message queue. Incoming messages are pre-fetched into this message queue before being processed. Guidelines: This setting is specified in bytes. Valid input range is 128 to 2,147,483,647. TCP No Delay Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so may negatively affect the performance of your network. If enabled, TCP messages are sent as quickly as possible, instead of packing multiple messages together to minimize network traffic. This can reduce latency but may increase network congestion. If disabled, network congestion may be reduced in extremely high-traffic situations, but at the cost of added latency on some messages (in some cases, 100 or more milliseconds of extra latency). Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so may negatively affect the performance of your network. If enabled, TCP messages are sent as quickly as possible, instead of packing multiple messages together to minimize network traffic. This can reduce latency but may increase network congestion. If disabled, network congestion may be reduced in extremely high-traffic situations, but at the cost of added latency on some messages (in some cases, 100 or more milliseconds of extra latency). Use Socket Push Immediate Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so may negatively affect the performance of your network. If enabled, TCP does not hold the receive/read request on partially filled pending messages, and instead completes the messages immediately. This setting can be useful in cases where receiving and processing partial data immediately helps decrease processing latency. Warning: Do not change this setting without consulting oneZero Support support@onezero.com, as doing so may negatively affect the performance of your network. If enabled, TCP does not hold the receive/read request on partially filled pending messages, and instead completes the messages immediately. This setting can be useful in cases where receiving and processing partial data immediately helps decrease processing latency.