Although Internet of Things (IoT) is an evolving paradigm which allows everyday physical objects, devices and appliances to connect to the internet, and to communicate with each other, there are several essential challenges that should be addressed. One of them is big data generated by physical objects. It is quite challenging to manage and control such enormous amount of data. In this paper, we propose an IoT architecture originated from Software Defined Networking (SDN) to overcome big data problem. Instead of evaluating the sensor values in the application layer, we analyze them in lower layers, especially in gateway layer, before being sent to the internet. By the proposed architecture, to the best of our knowledge, big data problem is handled because only useful and helpful packets are sent to the internet.