摘要:
A communication device operating as a node constituting a multi-hop network in which a plurality of different networks are mixed, a method for detecting a hub, and a method for transmitting a packet are provided. The communication device includes: a hub detection unit configured to determine whether or not the communication device operates as a hub; a pheromone calculation unit configured to calculate a pheromone value according to whether or not the communication device is a hub; a transmission unit configured to broadcast the pheromone value to neighbor nodes; a reception unit configured to receive the pheromone value from each of the neighbor nodes; and a forwarding node selecting unit configured to compare the pheromone values of the neighbor nodes and select a neighbor node having the greatest pheromone value as a forwarding node to which a packet is to be transmitted.