Pricing communication networks: optimality and incentives