You can do the following things to optimize performance over a WAN.
IPX/SPX protocols have some significant performance limitations in a routed (wide-area) network, which is why Novell has been modifying them with "packet burst" and "SPX II" changes. TCP/IP is the protocol of choice for WAN implementations and is the main focus of this document.Set your timer values to an appropriately high level. Remember that the clIEnt and the server Exchange packets to test for liveness and to determine if the query is complete yet. The switches to consider are:
-tr for active request termination timeouts. The server will only wait so long for a request to be retransmitted from the clIEnt before it will timeout the request and the connection. Increase this value if this problem is occurring in your setup. This switch is no longer necessary in Adaptive Server Anywhere 6.0
-ts for default client retry timeouts. This tells the client how long to wait for a response from the server before it resends the request. Increasing this value will cause fewer resends from the client which should reduce the amount of information passing between the clIEnt and server. If you increase this,