A method of a mesh network, wherein the mesh network comprises a source node, at least one relay node and a destination node the method comprising: generating by the source node a random token to be comprised in a query packet comprising a query for the destination node; transmitting by the source node the query packet comprising the random token, a source ID and the query to the destination node through a relay node; said method being characterized by the following steps: determining by the relay node if the random token is stored along with the source ID in a memory of the relay node; discarding the query packet by the relay node and refraining from forwarding the query packet to the source node if it is determined by the relay node that the random token and the source ID comprised in the query packet is stored in the memory; wherein if it is determined that the random token and the source ID is not stored in the memory of the relay node, the method comprises: adding by the relay node the random token and Source ID to the memory of the relay node; forwarding by the relay node the query packet to the destination node; receiving by the destination node the query packet; adding, by the destination node, the random token, Source ID, Message Authentication Code and a response to a response packet for the source node; and transmitting by the destination node the response packet comprising the random token to the source node through the relay node, wherein upon receiving (311, 501) by the relay node the response packet comprising the random token, source ID and response to the source node, the method comprises: determining, by the relay node if the random token and source ID comprised in the response packet is stored in the memory of the relay node, and if so de-activating by the relay node the random token; and relaying by the relay node the response packet to the source node; and if not, refraining by the relay node from relaying the response packet to the source node. generating by the source node a random token to be comprised in a query packet comprising a query for the destination node; transmitting by the source node the query packet comprising the random token, a source ID and the query to the destination node through a relay node; determining by the relay node if the random token is stored along with the source ID in a memory of the relay node; discarding the query packet by the relay node and refraining from forwarding the query packet to the source node if it is determined by the relay node that the random token and the source ID comprised in the query packet is stored in the memory; wherein if it is determined that the random token and the source ID is not stored in the memory of the relay node, the method comprises: adding by the relay node the random token and Source ID to the memory of the relay node; forwarding by the relay node the query packet to the destination node; receiving by the destination node the query packet; adding, by the destination node, the random token, Source ID, Message Authentication Code and a response to a response packet for the source node; and transmitting by the destination node the response packet comprising the random token to the source node through the relay node, wherein upon receiving (311, 501) by the relay node the response packet comprising the random token, source ID and response to the source node, the method comprises: determining, by the relay node if the random token and source ID comprised in the response packet is stored in the memory of the relay node, and if so de-activating by the relay node the random token; and relaying by the relay node the response packet to the source node; and if not, adding by the relay node the random token and Source ID to the memory of the relay node; forwarding by the relay node the query packet to the destination node; receiving by the destination node the query packet; adding, by the destination node, the random token, Source ID, Message Authentication Code and a response to a response packet for the source node; and transmitting by the destination node the response packet comprising the random token to the source node through the relay node, wherein upon receiving (311, 501) by the relay node the response packet comprising the random token, source ID and response to the source node, the method comprises: determining, by the relay node if the random token and source ID comprised in the response packet is stored in the memory of the relay node, and if so de-activating by the relay node the random token; and relaying by the relay node the response packet to the source node; and if not, determining, by the relay node if the random token and source ID comprised in the response packet is stored in the memory of the relay node, and if so de-activating by the relay node the random token; and relaying by the relay node the response packet to the source node; and if not, refraining by the relay node from relaying the response packet to the source node.