kytos / flow_manager

MIT License
1 stars 16 forks source link

Flow consistency routine keeps removing and inserting mef_eline flows #107

Closed italovalcy closed 3 years ago

italovalcy commented 3 years ago

Hi Kytos team,

Not sure if this issue is related to flow_manager or mef_eline, but I opened here because it was trigger by a flow_manager change (I suppose) and the log entries are from flow_manager.

In summary, the mef_eline flows keep being inserted and removed every 1min due to the consistency check routine.

Testing scenario:

  1. Latest version of Kytos + mef_eline (docker run -d -p 8181:8181 --name k1 amlight/kytos:latest)
  2. Any mininet topology (sudo python vip-students-fall2020.py 172.17.0.2 -- from https://www.dropbox.com/s/glsy0tcjyv3hkiy/topology-vip-students-mirror.png?dl=0 and https://www.dropbox.com/s/pabgr1qqnwsdxwh/vip-students-mirror.py?dl=0 )

From the log entries:

Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:154:  Flows loaded.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:135:  A consistency problem was detected in switch 00:00:00:00:00:00:00:02.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:140:  Flow forwarded to switch 00:00:00:00:00:00:00:02 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:135:  A consistency problem was detected in switch 00:00:00:00:00:00:00:02.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:140:  Flow forwarded to switch 00:00:00:00:00:00:00:02 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:104:  A consistency problem was detected in switch 00:00:00:00:00:00:00:02.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:107:  Flow forwarded to switch 00:00:00:00:00:00:00:02 to be installed.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:104:  A consistency problem was detected in switch 00:00:00:00:00:00:00:02.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:107:  Flow forwarded to switch 00:00:00:00:00:00:00:02 to be installed.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:110:  A consistency problem was detected in switch 00:00:00:00:00:00:00:02.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:113:  Flow forwarded to switch 00:00:00:00:00:00:00:02 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:110:  A consistency problem was detected in switch 00:00:00:00:00:00:00:02.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:113:  Flow forwarded to switch 00:00:00:00:00:00:00:02 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:135:  A consistency problem was detected in switch 00:00:00:00:00:00:00:05.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:140:  Flow forwarded to switch 00:00:00:00:00:00:00:05 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:135:  A consistency problem was detected in switch 00:00:00:00:00:00:00:05.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:140:  Flow forwarded to switch 00:00:00:00:00:00:00:05 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:104:  A consistency problem was detected in switch 00:00:00:00:00:00:00:05.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:107:  Flow forwarded to switch 00:00:00:00:00:00:00:05 to be installed.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:104:  A consistency problem was detected in switch 00:00:00:00:00:00:00:05.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:107:  Flow forwarded to switch 00:00:00:00:00:00:00:05 to be installed.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:110:  A consistency problem was detected in switch 00:00:00:00:00:00:00:05.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:113:  Flow forwarded to switch 00:00:00:00:00:00:00:05 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:110:  A consistency problem was detected in switch 00:00:00:00:00:00:00:05.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:113:  Flow forwarded to switch 00:00:00:00:00:00:00:05 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:135:  A consistency problem was detected in switch 00:00:00:00:00:00:00:01.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:140:  Flow forwarded to switch 00:00:00:00:00:00:00:01 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:135:  A consistency problem was detected in switch 00:00:00:00:00:00:00:01.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:140:  Flow forwarded to switch 00:00:00:00:00:00:00:01 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:104:  A consistency problem was detected in switch 00:00:00:00:00:00:00:01.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:107:  Flow forwarded to switch 00:00:00:00:00:00:00:01 to be installed.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:104:  A consistency problem was detected in switch 00:00:00:00:00:00:00:01.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:107:  Flow forwarded to switch 00:00:00:00:00:00:00:01 to be installed.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:110:  A consistency problem was detected in switch 00:00:00:00:00:00:00:01.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:113:  Flow forwarded to switch 00:00:00:00:00:00:00:01 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:110:  A consistency problem was detected in switch 00:00:00:00:00:00:00:01.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:113:  Flow forwarded to switch 00:00:00:00:00:00:00:01 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:135:  A consistency problem was detected in switch 00:00:00:00:00:00:00:06.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:140:  Flow forwarded to switch 00:00:00:00:00:00:00:06 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:135:  A consistency problem was detected in switch 00:00:00:00:00:00:00:06.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:140:  Flow forwarded to switch 00:00:00:00:00:00:00:06 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:104:  A consistency problem was detected in switch 00:00:00:00:00:00:00:06.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:107:  Flow forwarded to switch 00:00:00:00:00:00:00:06 to be installed.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:104:  A consistency problem was detected in switch 00:00:00:00:00:00:00:06.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:107:  Flow forwarded to switch 00:00:00:00:00:00:00:06 to be installed.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:110:  A consistency problem was detected in switch 00:00:00:00:00:00:00:06.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:113:  Flow forwarded to switch 00:00:00:00:00:00:00:06 to be deleted.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:110:  A consistency problem was detected in switch 00:00:00:00:00:00:00:06.
Jan 21 20:10:40 b7388f0517e5 kytos.napps.kytos/flow_manager:INFO main:113:  Flow forwarded to switch 00:00:00:00:00:00:00:06 to be deleted.

As you can see, the flows are removed and inserted on each switch.

From the openvswitch output:

mininet> sh ovs-ofctl dump-flows scl1
 cookie=0xd49e2cfc113e4433, duration=2.705s, table=0, n_packets=0, n_bytes=0, in_port="scl1-eth1",dl_vlan=77 actions=mod_vlan_vid:77,mod_vlan_vid:1100,output:"scl1-eth2"
 cookie=0xd49e2cfc113e4433, duration=2.703s, table=0, n_packets=0, n_bytes=0, in_port="scl1-eth2",dl_vlan=1100 actions=strip_vlan,output:"scl1-eth1"
 cookie=0x0, duration=338.890s, table=0, n_packets=222, n_bytes=9324, priority=1000,dl_vlan=3799,dl_type=0x88cc actions=CONTROLLER:65535

Note the "durante" of the mef_eline flows which are much more newer than the of_lldp flow (even though they were created pretty near each other)