named-data / YaNFD

Yet another Named Data Networking Forwarding Daemon
https://pkg.go.dev/github.com/named-data/YaNFD
MIT License
12 stars 10 forks source link

fw: don't send Interest back to inFace #20

Closed yoursunny closed 2 years ago

yoursunny commented 2 years ago

Currently, if the forwarder receives an Interest on a face that happens to be a FIB nexthop, the multicast strategy would send this Interest back to where it came from, and the best-route strategy may send it back if the FIB nexthop happens to be the lowest cost route. This condition frequently occurs when the application is using a sync protocol. While this would not affect application operations in a correctly implemented library, those Interests are unnecessary overhead.

This PR updates forwarding logic and strategies so that they do not send an Interest back to the incoming face, unless the face is labeled as ad hoc wireless.