Hello,

As far as I remember, ECN field is a part of 8-bit ToS (two 
least-significant bits). Therefore the value of ECN would be:
ecn_value = tos_value & 0x03.

Regards,

---
Michał Rzepka

W dniu 2016-10-04 12:29, Pynbiang Hadem napisał(a):
> Dear All,
> 
> I have set values to the ECN field of IPv4 packet Header at the
> INGRESS SWITCH using the SET_FIELD action in Ryu. At the
> controller(using PACKET_IN FROM EGRESS SWITCH), I want to read the ECN
> field. However reading the packet header using RYU library
> (RYU.LIB.PACKET IMPORT IPV4), only the TOS field is recognised for
> reading.
> 
> Kindly suggest how to read only the ECN field that was set at the
> ingress switch.
> 
> Thanks
> Hadem.
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to