faucetsdn / ryu

Ryu component-based software defined networking framework
https://ryu-sdn.org
Apache License 2.0
1.52k stars 1.16k forks source link

Flooding becomes drop #172

Closed sahmerdandx closed 2 years ago

sahmerdandx commented 2 years ago

I have a mininet environment on Ubuntu VPS and I also installed Ryu and curl. I'm trying to test flooding between hosts but when I add flow entry, it becomes actions=drop. My mininet code:

sudo mn --controller=remote,ip=127.0.0.1 --mac --switch=ovsk,protocol=OpenFlow13 --topo=single,3

After starting up Ryu Controller

ryu-manager ryu.app.ofctl_rest

hub_flow.json code:

{
    "dpid": 1,
    "table_id": 0,
    "idle_timeout": 0,
    "hard_timeout": 0,
    "priority": 100,
    "match":{
    },
    "actions":[
        {
            "type":"OUTPUT",
            "port": 4294967291
        }
    ]
}

Adding flow entry via curl:

curl -X POST http://localhost:8080/stats/flowentry/add -d '@hub_flow.json'

Normally I should see this on dump flow:

cookie=0x0, duration=9.837s, table=0, n_packets=0, n_bytes=0, priority=100 actions=flood But It shows:

cookie=0x0, duration=9.837s, table=0, n_packets=0, n_bytes=0, priority=100 actions=drop

So, there is no flooding, only drop. What causes this? Is it about Ryu Controller or mininet environment?

sahmerdandx commented 2 years ago

I made a horrible mistake. I had written my first code as "--switch=ovsk,protocol=OpenFlow13". But it should be "protocols=OpenFlow13". One char makes difference. Apologize for this.