1.3.3.1.2 Connection Setup Phase
The connection setup phase consists of three operations:
The RDG client sends the CONNECT_PKT Structure (section 2.2.11.3) packet to the RDG server for a predetermined number of times until the client receives the CONNECT_PKT_RESP Structure (section 2.2.11.4) packet from the RDG server.
The RDG server authenticates the RDG client using the cookie sent in the CONNECT_PKT Structure packet. If the cookie validation is successful, the RDG client establishes the UDP connection to the target server using the IP address specified in the cookie.
The RDG server stores the result of the connection establishment in the CONNECT_PKT_RESP Structure packet and sends the packet back to the RDG client.

Figure 10: Message sequence between RDG client and RDG server during connection setup phase