[ovs-discuss] Problem of setting ECN bits to packets through floodlight controller

Ben Pfaff blp at nicira.com
Sun Oct 18 19:54:06 UTC 2015

On Mon, Oct 19, 2015 at 01:07:51AM +0530, Manojkumar Sure wrote:
>   I am running floodlight with OpenFlow V1.3. I am trying to set the ECN
> bits of IPV4 packets. I am using mininet with the default topology(2 hosts,
> 1 switch) with OVS switch version 2.3 set to use OpenFlow V1.3.
> The mininet command I am using is
> sudo mn --controller remote,ip=,port=6653
> --switch=ovsk,protocols=OpenFlow13  --mac
> I am running floodlight at the default port(which is set to 6653).
> I was trying to set ECN bits using the following command
> curl -d '{"switch": "00:00:00:00:00:00:00:01", "name":"rule-1",
> "cookie":"0", "priority":"300",
> "ingress-port":"1","eth_type":"0x0800","ip_proto":"0x06","active":"true",
> "instruction_apply_actions":"output=2",
> "instruction_write_actions":"set_field=ip_ecn->3"}'
> I was able to see that this rule got added to the switch and the packets
> are getting matched to this rule in the switch through the flood light web
> interface.

How does the rule appear when OVS prints it, with "ovs-ofctl

More information about the discuss mailing list