Hierarchical caches in content-centric networks: modeling and analysis