Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofsoftswitch13 crashed. #15

Closed
k-sasagawa opened this issue Feb 21, 2013 · 5 comments
Closed

ofsoftswitch13 crashed. #15

k-sasagawa opened this issue Feb 21, 2013 · 5 comments

Comments

@k-sasagawa
Copy link

Hi All

The switch crashed after it received following flow mod.
[version=0x04,flow mod(DELETE,match:inport=1,no instructions),
length=0x40,xid=0xf]
0x0000: 040e0040 0000000f 00000000 00000000
0x0010: 00000000 00000000 ff030000 00000000
0x0020: 00000000 ffffffff 00000000 00000000
0x0030: 0001000c 80000004 00000001 00000000

Could you check?

@k-sasagawa
Copy link
Author

By the way,in the case of DELETE,match:inport=any and no instructions,
no problems occur.

@k-sasagawa
Copy link
Author

A mistake was found.
By the way,in the case of DELETE,match:inport=any and no instructions,(mistake)
By the way,in the case of DELETE,match:all any and no instructions, (correct)
no problems occur.

@ederlf
Copy link
Collaborator

ederlf commented Feb 21, 2013

I couldn't reproduce the error. Here's is the switch log when it receives
the flow

Feb 21 08:51:31|01907|dp_ctrl|DBG|received control msg:
flow_mod{table="all", cmd="del", cookie="0x0", mask="0x0", idle="0",
hard="0", prio="32768", buf="none", port="any", group="any", flags="0x0",
match=oxm{in_port="1"}, insts=[]}

I'm sending the rule via dpctl. Are you using a controller? Could you give
us more background on that error?
Thank you.

On Thu, Feb 21, 2013 at 12:30 AM, k-sasagawa notifications@github.comwrote:

A mistake was found.

  • By the way,in the case of DELETE,match:inport=any and no
    instructions, +By the way,in the case of DELETE,match:all any and no
    instructions, no problems occur.


    Reply to this email directly or view it on GitHubhttps://github.com/ofsoftswitch13 crashed.  #15#issuecomment-13871122.

Eder Leão Fernandes, Jr Researcher
Converged Networks Business Unit
CPqD - Center for Research and Development in Telecommunications
Tel.:+55 19-3705-5932 / Cel.: +55 19-8300-6776

@k-sasagawa
Copy link
Author

Please see following log.

root@ubuntu02:~/git/ofsoftswitch13# dpctl tcp:localhost:1000 flow-mod cmd=add,table=0 apply:output=2

SENDING:
flow_mod{table="0", cmd="add", cookie="0x0", mask="0x0", idle="0", hard="0", prio="32768", buf="none", port="any", group="any",
flags="0x0", match=oxm{all match}, insts=[apply{acts=[out{port="2"}]}]}

OK.

root@ubuntu02:~/git/ofsoftswitch13# dpctl tcp:localhost:1000 stats-flow

SENDING:
stat_req{type="flow", flags="0x0", table="all", oport="any", ogrp="any", cookie=0x0", mask=0x0", match=oxm{all match}}

RECEIVED:
stat_repl{type="flow", flags="0x0", stats=[{table="0", match="oxm{all match}", dur_s="1", dur_ns="656000", prio="32768",
idle_to="0", hard_to="0", cookie="0x0", pkt_cnt="4", byte_cnt="240", insts=[apply{acts=[out{port="2"}]}]}]}

root@ubuntu02:~/git/ofsoftswitch13# dpctl tcp:localhost:1000 flow-mod cmd=del in_port=3 apply:output=2

SENDING:
flow_mod{table="all", cmd="del", cookie="0x0", mask="0x0", idle="0", hard="0", prio="32768", buf="none", port="any", group="any",
flags="0x0", match=oxm{in_port="3"}, insts=[apply{acts=[out{port="2"}]}]}

dpctl: Error during transaction.

@ederlf
Copy link
Collaborator

ederlf commented Feb 22, 2013

I found the problem, it was due to non strict matching all oxm flows.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants