主权项 |
1. A node in an ad-hoc network, the node comprising:
a memory configured to store a concatenated counter value composed of two counter values, the concatenated counter value including, as higher order digits, an erasure counter value indicating number of erasure sessions at the node and including, as lower order digits, a transmission counter value indicating number of transmission sessions from the node; and a processor configured to:
update by adding one to the transmission counter value of the concatenated counter value stored in the memory, when the node transmits data to another node in the ad-hoc network;transmit to the another node, the data and the concatenated counter value after updating;detect erasure of the concatenated counter value in the memory;distribute in the ad-hoc network and upon detecting the erasure, an acquisition request for the erasure counter value;receive from the ad-hoc network and consequent to distributing the acquisition request, the erasure counter value;generate the concatenated counter value to include, as the higher order digits, the received erasure counter value after an addition of one to the erasure counter value and to include, as the lower order digits, the transmission counter value after the erasure and indicating that the number of transmission sessions has become zero due to the erasure; andarchive to the memory, the generated concatenated counter value. |