3.1.4.1 Opening a Cloud

When a higher-layer application or protocol asks DRT to open a cloud, the node MUST first check whether it already has an opened cloud. If so, it MUST return a failure to the application or higher-layer protocol.

The node MUST carry out the following procedures when initializing.

  1. Choose one port and a set of four IPv6 Addresses, or as many as the local system has, not exceeding four, that the node will use for DRT communication. The addresses MUST all be of the same scope and scope zone (as specified in [RFC4007] section 5). The same port number MUST be used for all addresses. If no addresses are available, the open attempt MUST report a failure. Otherwise, store the chosen addresses in the Local Endpoint List.

  2. Begin listening for incoming messages on the UDP port and IPv6 Addresses chosen.

  3. Initiate the cloud discovery process as specified in section 3.1.4.2.

  4. Start the Maintenance Timer for the cloud.