MAC and Network Layer Issues and Challenges for IoT