Today, in the morning, the ECN was deployed to Mininet at noon, and the loading process was simply recorded:
Search the entire network before loading, found a useful reference page: Https://groups.google.com/a/openflowhub.org/forum/#!topic/floodlight-dev/w4j351KntSo
According to the solution above, it is loaded.
The first is to find the virtual machine/etc/sysctl.conf this file, in the way of VI added this line:NET.IPV4.TCP_ECN = 1.
And then, because you think you can start the topology, the ECN also loads the boot, without having to call the Xterm Input Terminal command again, so add the statement in the script code of the topology:
H1.cmd ("sudo sysctl-p")//Let host H1 enable ECN
Net.addlink (S1,h1,cls=tclink, enable_ecn=true)//Allow the connection between S1,H1 to enable ECN
The above statement can be self-modifying according to your own topology.
At this point, the ECN loaded successfully, from the Wireshark can grab the package to see the ECN sign, happy ^_^
Mininet in-load ECN