What are the files need to be modified to implement COAP congestion control mechanism in cooja simulator?


Congestion control is a network layer issue, when there is more data in the network than can be sent with reasonable packet delays, no lost packets, etc.The CoAP designed by the (IETF) for (IoT) devices. Due to the limited radio channel capacities and hardware resources of such devices, congestion can be a serious problem..

   Open the necessary files at
following location: Home/ contiki/
examples/ er-rest-example



Home/ contiki/ apps/ er-coap



  Open a file to modification

er-coap-transactions.c file
above mentioned location.

  Here inside the file coap_
send_transaction function handling
the basic CoAP congestion control.

   Just use these following
codes inside the function.


t->retrans_timer.timer.interval =
+ (random_rand()



   Create new simulation in cooja
network simulator.

   Connect the server with router.now
start the simulation and observe the
outputs in motes output terminal.

Leave Comment

Your email address will not be published. Required fields are marked *

clear formSubmit