A wireless terminal capable of quickly searching for the best route
required for communication in a local network such as an ad hoc network
is provided. Each of wireless terminals in the local network sets a bit
error rates and a data transfer rate with neighboring wireless terminals
and, based on the calculated values, calculates the route weight value of
a link to each of the neighboring terminals. To set a route for
communication between a wireless terminal and another wireless terminal,
the wireless terminal issues a route search command based on the route
weight value and sends the route weight value to neighboring terminals.
The neighboring terminals also send the route search command sequentially
to the next terminal while adding up the route weight value. A wireless
terminal at the other end decides the best route from the added up route
weight value and sends a response back to the starting point.