[OPNFLWPLUG-645] Ipv4 L3ArbitraryBitMask works on OVS but not other switches Created: 19/Mar/16  Updated: 27/Sep/21  Resolved: 27/Nov/17

Status: Resolved
Project: OpenFlowPlugin
Component/s: General
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Sai MarapaReddy Assignee: Sai MarapaReddy
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 5562

 Description   

Ipv4 L3ArbitraryBitMask works on OVS but not not other switches



 Comments   
Comment by Sai MarapaReddy [ 21/Mar/16 ]

*OVS (Mininet) & other switches (which are not based on OVS) responds differently when tried with arbitrary Mask *

Example :-

Input :-
<ipv4-destination-address-no-mask>7.7.7.0</ipv4-destination-address-no-mask>
<ipv4-destination-arbitrary-bitmask>255.0.241.0</ipv4-destination-arbitrary-bitmask>

Output on OVS (Mininet) :-
mininet> sh ovs-ofctl dump-flows s1 -O OpenFlow13
OFPST_FLOW reply (OF1.3) (xid=0x2):
cookie=0x0, duration=105.595s, table=0, n_packets=0, n_bytes=0, priority=7,ip,nw_dst=7.0.1.0/255.0.241.0 actions=dec_ttl

Output on Other switches (which are not based on OVS):-
Flow ID: 75 Priority: 7 Status: Active
Rule:
In Port: generic
Ether type: 0x00000800
Destination IP: 7.7.7.0 Subnet IP: 255.0.241.0
Idle Timeout : 0 secs
Hard Timeout : 0 secs

Comments:-
OVS automatically converts the arbitrary bit mask and shows output with 7.0.1.0/255.0.241.0 but where as some switches didn't yet process but gives raw IP 7.7.7.0/255.0.241.0

Request to make it compatible with both OVS & for other switches (which are not developed on OVS)

Comment by Jozef Bacigal [ 20/Jun/17 ]

Plugin can't change any information send to device. The switch should do it fo it self, or the flow sent should be normalized. And the same plugin can't change the information gain from switch when storing to operational DS. Plugin normalizes ipv4arbitrary but only for matching the flows. This was made in the latest code. So even if the switch stores the IP wrong plugin matches the flow.

Comment by Abhijit Kumbhare [ 27/Nov/17 ]

Any thoughts/updates Sai? Should we close this?

Comment by Sai MarapaReddy [ 27/Nov/17 ]

I think this should fix the issue. https://git.opendaylight.org/gerrit/#/c/36471/

I haven't checked recently. We can close it for now. 

Generated at Wed Feb 07 20:33:01 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.