Internet of things (IoT) is the paradigm for internetworking devices for data exchange and control. One of the important problems facing the IoT networks is the congestion; many researchers have discussed this problem. In this research, a comparison between two congestion control mechanisms used for internet of things the (CoAP and CoCoA) is presented. The cooja simulator was used for simulating different topologies and scenarios and the packets transmitted was captured using wireshak utility program. The captured packets were analyzed using MATLAB tools. The analysis showed that the CoCoA outperform CoAP in terms of goodput, number of dropped packets and bandwidth utilization.