Project

General

Profile

Feature #3967

Updated by Junxiao Shi over 7 years ago

Introduce a static property to `nfd::Face` which indicates whether a packet received on this face is expected to have been received by all other nodes on the same link. 

 * point-to-point face: it is the only receiver on a link, so a received packet is received by all nodes. 
 * multi-access face connected to wired Ethernet: a received packet is almost always received by all nodes on the same broadcast domain. 
 * multi-access face connected to ad hoc WiFi: a received packet is only received by nodes within a certain range from the transmitter, but not all nodes in the same ad hoc network 

 This property is queried by forwarding to determine whether an Interest received on a face can be forwarded out of the same face. 

 This issue involves: 

 * Add `LINK_TYPE_AD_HOC` value into `LinkType`. Decide a name for this property. 
 * Add `face_system.ether.mcast_ad_hoc` and `face_system.udp.mcast_ad_hoc` config options. If the option is set to "yes", created multicast faces Implement this property on `Face`, but not necessarily on `Transport`. 
 * For point-to-point face, this property should always report their LinkType as `LINK_TYPE_AD_HOC` instead of `LINK_TYPE_MULTI_ACCESS`. "received by all nodes". For multi-access face, the return value shall be controlled by a global config option.

Back