[ndnSIM] NFD read out IP header fields

Junxiao Shi shijunxiao at email.arizona.EDU
Wed Jan 27 11:53:03 PST 2016


Hi Klaus

In NFD 0.4.0, IP header is unavailable to strategy.
In order to properly implement this feature, you may look at:

   1. In UnicastUdpTransport or TcpTransport, obtain ECN flags from the
   socket (which is managed by Boost.Asio).
   2. In Transport::Packet struct, add a field to store the ECN flag, so it
   becomes available to the LinkService.
   3. In LinkService, copy the above field into a packet Tag (look at
   ndn-cxx tag.hpp).
   4. Then, forwarding and strategy can inspect ECN flag by reading the tag.


In ndnSIM 2.1, all faces are directly over Ethernet, not over IP. So ECN
flags aren't applicable to ndnSIM.
#2371 <http://redmine.named-data.net/issues/2371> will add IP overlay
simulation to ndnSIM. After that, the procedure mentioned above can be
applied to bring ECN flags into forwarding.

Yours, Junxiao

On Wed, Jan 27, 2016 at 12:41 PM, Klaus Schneider <klaus at cs.arizona.edu>
wrote:

> Hi Junxiao, Alex,
>
> is there a way to read out IP header fields inside NFD?
>
> More specifically, I want to check the ECN flags inside the
> afterReceiveInterest() and beforeSatisfyInterest() methods of the
> forwarding strategy.
>
> I'm not asking for a feature extension, just some ideas for a quick and
> dirty hack that I can do myself.
>
> It would be good if it also worked in ndnSIM.
>
> Best regards,
> Klaus
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20160127/d90e91b7/attachment.html>


More information about the ndnSIM mailing list