Thursday 18 April 2013

How to avoid Hidden Terminal Problem in NS2

Hidden Terminal Problem


Consider a scenario of 3 nodes A,B,C . A and C are in the same transmission medium and they are hidden to each other due to the presence of B in between them.

A want to send some data to B. B is free and it accepts the data from A mean while C wants to send data to B. C does not  that A is already sending some data to B. Whenever C starts sending data to B, the data packets from both A and C get collide at B which results in data loss.

                                                      A ---> B <---C

One  Solution for above scenario

It can be solved using CTS(clear to send) /RTS(request to send)  but the load will be high as number of packets increase in the network.

                 A send RTS request packet  to B for  data transmission. once B receives it , it will send CTS to all  nodes in its transmission range. C came to know that B is receiving some data from some one and it  sleep for some time and try to send RTS to B for transmission of data.


Other Possible Solutions To avoid Hidden Terminal Problem in NS2

1) Increase the Transmission power in ut tcl file.    set Rx_ "value" increase this power value.
2) Move the nodes in ur environment setup. moving nodes can sense the carriers easily  there by reduce the problem
3) Use Omni Directional Antenna instead of Directional in ur tcl fine under antenna set up.

No comments:

Post a Comment