3.1.5.5 Receiving a FLOOD Message

Upon receiving a FLOOD message, a PNRP node MUST perform the following steps:

  1. Check whether the FLOOD message conforms to the syntax as specified in section 2.2.2.4, and drop the message if not. Otherwise, continue processing as follows.

  2. If the D flag is clear, reply with an ACK message to the sending node.

  3. If a ROUTE_ENTRY is supplied in the FLOOD message, begin validating the ROUTE_ENTRY as specified in Receiving a New ROUTE_ENTRY (section 3.1.5.11).

  4. If a Revoke CPA is supplied in the FLOOD message, validate the CPA (as specified in section 3.1.5.7) as a Revoke CPA and, if not valid, discard.

  5. Extract the ClassifierHash, BinaryAuthority, and ServiceLocation values from the CPA and use them to calculate the PNRP ID for the CPA by using the formulas for P2PID and PNRP ID in section 3.1.4.4.1.

  6. Remove the ROUTE_ENTRY (if any) for the PNRP ID of the Revoke CPA from the cache.