Research of routing algorithm in wireless communications