[OPNFLWPLUG-24] OF 1.0 statistics are reporting ethernet src/dst mac when none is present Created: 13/Jan/14 Updated: 27/Sep/21 Due: 22/Jan/14 Resolved: 22/Jan/14 |
|
| Status: | Resolved |
| Project: | OpenFlowPlugin |
| Component/s: | General |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | ||
| Reporter: | Ed Warnicke | Assignee: | Jyotsna Priya |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Mac OS |
||
| Attachments: |
|
| Description |
|
When running: sudo mn --topo tree,2 --controller 'remote,ip=10.0.2.2:6633' --switch ovsk,protocols=OpenFlow10 Against the new openflowplugin, and then running in mininet h1 ping h2 (which fails, different bug) In stats I see: http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/openflow:1/table/0 <?xml version="1.0" encoding="UTF-8" standalone="no"?> On the switch I see: vagrant@vagrant-ubuntu-trusty-64:~$ sudo ovs-ofctl -O OpenFlow10 dump-flows s1 And in the config I see: <?xml version="1.0" encoding="UTF-8" standalone="no"?> We are getting spurious eth src/dst matches reported in stats which we shouldn't. |
| Comments |
| Comment by Anil Vishnoi [ 13/Jan/14 ] |
|
Following values are passed from library to plugin <ipv4-source>0.0.0.0/0</ipv4-source> <ethernet-source> and plugin uses these values to create md-sal flow statistics object which statistics-manager augment in the data store. Library is converting all the zero bytes of mac/ip address to 00:00:00:00:00:00 and 0.0.0.0 respectively while decoding openflow 1.0 flow statistics message and pass it to the plugin. Ideally library should look at the wildcard byte and skip the values those were not set for the match. So if Ethernet src/dst are not set in wildcard, library should return null for both these values. Anil |
| Comment by Michal Polkorab [ 14/Jan/14 ] |
|
Hello, I think this is the logical point of view, which should be handled by Openflow Plugin. Because library does what it should do - translates received message. There might be more problems if the library passed nulls to plugin - reason might be unknown. I believe that the Openflow Plugin should take care of the addresses and check the wildcarded data. Please, feel free to discuss. Regards |
| Comment by Anil Vishnoi [ 19/Jan/14 ] |
|
Hi Ed, I fixed this issue and pushed code changes through following two commits openflowplugin - http://git.opendaylight.org/gerrit/4414 Can you please test it in your setup and confirm. I will close the bug afterwards. Thanks |
| Comment by Ed Warnicke [ 21/Jan/14 ] |
|
Please verify fixed. |
| Comment by Jyotsna Priya [ 22/Jan/14 ] |
|
Verified. The issue is resolved |
| Comment by Jyotsna Priya [ 22/Jan/14 ] |
|
Attachment Screenshot from 2014-01-22 15:59:18.png has been added with description: Reolved |