adjacentlink / emane

Distributed wireless network emulation framework
Other
129 stars 37 forks source link

Packet Unicast Address Filtering #174

Open hideogump opened 4 years ago

hideogump commented 4 years ago

I want to be able to send a packet to the emane0 TAP interface that represents an aggregate of a bunch of smaller packets. I am currently using the RF Pipe Model. Notionally, I believe EMANE uses the IP addressing in the downstream packet to assign both source and destination NEM IDs, so there is some form of translation. For broadcast destination MAC addresses, the broadcast NEM would be used. I believe the EMANE PHY on the upstream will drop unicast packets for which there is no matching destination NEM. This is my general understanding, and I could be wrong.

So I want this unicast packet to flow out of each NEM on the upstream, and not be dropped by the PHY.

I am considering adding a spoofed header to this aggregate bundle to allow that to happen.

Is my understanding of how EMANE translates/maps unicast packets to NEM ids, and filters on the receive side correct?

sgalgano commented 4 years ago

The TDMA model does aggregation and fragmentation. In that model, a downstream packet generated by the radio model may contain a whole, part, or multiple whole and parts of one or more downstream packets that have been enqueued from the transport.

The model logic will use the broadcast NEM address as the destination if the aggregated pieces have different destinations.