Performance Evaluation of Lookup Mechanisms in Structured and Unstructured P2P Networks under the Impacts of Churn