Efficient routing method in p2p systems based upon training knowledge