<div dir="ltr">Hi Klaus<div><br></div><div>In NFD 0.4.0, IP header is unavailable to strategy.</div><div>In order to properly implement this feature, you may look at:<br></div><div><ol><li>In UnicastUdpTransport or TcpTransport, obtain ECN flags from the socket (which is managed by Boost.Asio).</li><li>In Transport::Packet struct, add a field to store the ECN flag, so it becomes available to the LinkService.</li><li>In LinkService, copy the above field into a packet Tag (look at ndn-cxx tag.hpp).</li><li>Then, forwarding and strategy can inspect ECN flag by reading the tag.</li></ol></div><div><br></div><div>In ndnSIM 2.1, all faces are directly over Ethernet, not over IP. So ECN flags aren't applicable to ndnSIM.</div><div>#<a href="http://redmine.named-data.net/issues/2371">2371</a> will add IP overlay simulation to ndnSIM. After that, the procedure mentioned above can be applied to bring ECN flags into forwarding.</div><div><br></div><div>Yours, Junxiao</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 27, 2016 at 12:41 PM, Klaus Schneider <span dir="ltr"><<a href="mailto:klaus@cs.arizona.edu" target="_blank">klaus@cs.arizona.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Junxiao, Alex,<br>
<br>
is there a way to read out IP header fields inside NFD?<br>
<br>
More specifically, I want to check the ECN flags inside the afterReceiveInterest() and beforeSatisfyInterest() methods of the forwarding strategy.<br>
<br>
I'm not asking for a feature extension, just some ideas for a quick and dirty hack that I can do myself.<br>
<br>
It would be good if it also worked in ndnSIM.<br>
<br>
Best regards,<br>
Klaus<br>
<br>
<br>
</blockquote></div><br></div>