As the number of Internet of Things (IoT) applications increases, an efficient transmitting of the data generated by these applications to a centralized cloud server can be a challenging issue. This paper aims to facilitate transmission by utilizing fog computing (FC) and software defined networking (SDN) technologies. To this end, it proposes two novel content based forwarding (CBF) models for IoT networks. The first model takes advantage of FC to reduce transmission and computational delay. Based on the first model, the second model makes use of the prioritization concept to address the timely delivery of critical data while ensuring the data rate and delay requirements. Extensive simulations are conducted to evaluate the proposed models and uncover their impact on throughput, delay, and loss rate metrics. According to the results, the proposed models ensure efficient transmission and low computational delay. In addition, the second model has the ability to transmit critical data more effectively.