iot-lab / aggregation-tools

Tools to aggregate iot-lab nodes tcp outputs.
Other
3 stars 7 forks source link

Duplicate packets as many as the number of nodes with the sniffer profile attached #21

Closed fkerem closed 3 years ago

fkerem commented 3 years ago

Hi,

Even though the destination or source address in a packet does not belong to all of the nodes that I experiment with, the pcap contains its duplicates as many as the number of nodes with the sniffer profile attached.

Example:

I use sniffers for 27 nodes and get the UDP packets below exactly 27 times:

image

The issue can be observed with other types of packets as well:

image

What can be the reason or issue?

Best,

fsaintma commented 3 years ago

Hi @fkerem I don't understand your question. If you have 27 nodes with a sniffer profile attached it could be normal to see 27 times a packet. Indeed all sniffer nodes capture the radio traffic independently and probably they capture the same packet. So in sniffer aggregator you see the packet for each sniffer. I may not have understood anything :)

fkerem commented 3 years ago

Hi @fsaintma I think, you got my question. However, here, the packet addresses just belong to 2 nodes (the source and destination), why the others capture it even though the packet was not sent or received by them? Best,

fsaintma commented 3 years ago

@fkerem because a sniffer capture ALL radio traffic by default. It does not take into account the source and destination. So it is not necessary to have one sniffer per node to capture the radio traffic of a sensors network. It can be useful to have several sniffers if the nodes are not in the same radio neighborhood.

fkerem commented 3 years ago

I got it @fsaintma , thank you very much for the info. I'll try to handle it by preprocessing the data somehow then.

fkerem commented 3 years ago

Hi @fsaintma

I would like to ask whether the sniffers are also affected by other experiments of mine or other users when I run the aggregator targeted at a specific experiment? Is there a filtering mechanism there?

Best,

fsaintma commented 3 years ago

Hi, Yes you are affected by other experiments which do radio traffic on the same channel. So it could be a problem even more of TSCH with the use of several channels. On Grenoble site you can book a lot of nodes (building wing) to ensure that a set of your nodes can't communicate with other experiments nodes. But be careful I didn't resolve the problem of malformed packets sended by an unknown source. Best

fkerem commented 3 years ago

OK then, I'll first try to preprocess the pcap files to ensure the captured traffic belongs to the nodes in my experiment. If I need, I'll try what you have suggested in Grenoble site. Thank you so much @fsaintma.