A smart routing scheme for named data networks