This article describes how to load balance a Trivial File Transfer Protocol (TFTP) server using Reverse Network Address Translation (RNAT) and Use Source IP (USIP).
TFTP is simple file transport protocol. It uses User Datagram Protocol (UDP) port 69 as a transport protocol and is typically implemented on private networks. After a connection is established, data transfer occurs over a separate data connection initiated by the server back to the client.
To overcome the challenges presented with load balancing, TFTP servers, RNAT and USIP modes can be implemented. These modes allow the server to which the initial connection was made, to connect to the client with the new data connection using the Virtual IP (VIP) as the Source IP.
Enable USIP by running the following command:
#>enable ns mode USIP
Create a service and virtual server as protocol: ANY, Port *.
Enable USIP on the service:
#> set service <serviceName> -usip Yes
Set up RNAT to NAT to the VIP:
#>set ns rnat <Host/ Subnet IP> <Host/Subnet Mask> -natip <VIP IP>
Because USIP is in use, ensure that the TFTP server default gateways are the MIP/SNIP of the NetScaler appliance.