Distributed and Centralized Path Computation Algorithms: Implementation in NS2 and Performance Comparison