Patent ID: 8520597

Claim:
A method for processing data in an ad-hoc network, comprising: receiving, by a data processing apparatus of a first node, a received data; determining, by the data processing apparatus of the first node, whether the received data is a first data or a second data having a priority lower than the first data; measuring, by the data processing apparatus of the first node, a measured mode value related to a driving of the first node by deciding whether the measured mode value is a first mode or a second mode by considering whether the measured mode value coincides with a predetermined first data processing criterion or a second mode which does not coincide with the first data processing criterion; and processing, by the data processing apparatus of the first node, the received data, wherein when the received data is a first data and the measured mode value is the first mode, the processing includes judging whether a destination node of the first data or a source node of the first data has a priority higher than or equal to a mode setup node which formerly forced the first node into the first mode; when at least one of the destination node and the source node has a priority higher than or equal to the mode setup node, designating the node having the higher priority between the destination node and the source node as a new mode setup node replacing the mode setup node, and changing, by the designation of the new mode setup node, a first mode maintaining timer value of the first node, and when at least one of the destination node and the source node has a priority lower than the mode setup node, discarding the first data judging whether the first node is the destination node which will finally receive the first data; when the first node is the destination node, providing, by the first node, the first data to the user and when the first node is not the destination node, judging whether the first node is a relay node which relays the first data; and when the first node is the relay node, transmitting, by the first node, the first data to a second node and when the first node is not the relay node, discarding the first data.