Tip

This is the documentation for the 20.10 version. Looking for the documentation of the latest version? Have a look here.

NAT

Commands in this section configure dataplane NAT behavior.

dataplane nat dslite-ce

Enables DS-Lite CE mode.

dataplane nat max-translations-per-thread <n>

Defines the number of NAT translation entries to allow per worker thread. The default value is 10240. This option is available in Endpoint Dependent and Simple NAT mode.

dataplane nat max-translations-per-user <n>

Defines the number of NAT translation entries to allow for each IP address. The default value is 10240, but it can be set to any integer value between 1-262144. The ideal value depends entirely on the environment and number of sessions per IP address involved in NAT. This includes traffic sourced from TNSR itself address as well, not only internal source IP addresses. This option is only available in Simple NAT mode.

dataplane nat max-users-per-thread <n>

Defines the number of unique IP addresses in NAT sessions to allow in each worker thread. Default value is 1024. This option is only available in Simple NAT mode.

dataplane nat mode (endpoint-dependent|simple)

Configures the operating NAT mode. See Dataplane NAT Modes.

dataplane nat mode-options simple (out2in-dpo|static-mapping-only)

Configures options for Simple NAT mode. See Dataplane NAT Modes.

NAT Memory

On current versions of TNSR, the dataplane automatically tunes the size of the hashes which control memory available for NAT functions. The automatic calculations are based on the size of max-translations-per-thread and max-users-per-thread from the previous section.

In most cases adjustments are not necessary, but commands are provided in case the automatically calculated default values are insufficient.

The following parameters are available:

dataplane nat user hash memory <size>

Memory size of NAT user lookup hash table. This hash tracks data on users, which are unique “inside” addresses.

The value can be from 1-4294967295. This option is available in Endpoint Dependent and Simple NAT mode.

dataplane nat translation hash memory <size>

Memory size of session lookup hash tables. This hash tracks data on sessions, which are unique connections passing through TNSR which have NAT applied.

The value can be from 1-4294967295. This option is available in Endpoint Dependent and Simple NAT mode.