The IPv6 routing protocol for lossy and low power networks (RPL) was introduced in March 2012 by the Internet Engineering Task Force (IETF) as the standard routing protocol for the Internet of Things (IoT). Since that time, it has had various applications in IoT. Despite meeting the IoT network necessities by RPL, some unanswered issues have not been devised primarily for IoT usages. However, gathering a large amount of data from these networks with videos and images typically leads to traffic congestion in the network's central part. For providing a solution for this issue, the content-centric routing (CCR)based RPL is proposed in the present study, where the content specifies the routing pathways. It is possible to attain a larger data aggregation ratio by routing the relevant data to the middle relaying nodes for the process. Thus, effective traffic is generated in the network. Subsequently, latency is significantly reduced. Moreover, energy use is decreased on wireless communication. More integration was conducted between IETF RPL protocol and CCR, using the MATLAB platform. Finally, according to simulated and implemented results, the CCR-based RPL behavior based on the high packet transfer rates is improved, and the numbers of dead nodes are reduced. High energy efficiency and low delay rates are obtained in communication using the proposed routing method.