[OPNFLWPLUG-1016] OFP is sending wrong length for IPv6 Source Address Field Created: 01/Jun/18  Updated: 20/Aug/18  Resolved: 20/Aug/18

Status: Resolved
Project: OpenFlowPlugin
Component/s: openflowplugin
Affects Version/s: Oxygen, Fluorine
Fix Version/s: Fluorine

Type: Bug Priority: High
Reporter: Karthikeyan Krishnan Assignee: Somashekhar Javalagi
Resolution: Won't Do Votes: 0
Labels: openflow
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File Capture of the packet when flow is added directly in the switch.pcapng     Text File Config_Inventory_DS_Details.txt     HTML File Email_OpenflowPlugin_ Invalid length for IPv6 Address in OXM field - Reg.html     File IPv6_SourceMatch_Issue.pcap     PNG File OVS log output for the scenario when the flow is pushed through the rest.PNG     File Packet Capture of the flow pushed with CIDR value 64 from the rest.pcapng    

 Description   

OFP is sending wrong length for IPv6 Source Address Field when source address field is send with CIDR /64.

Working fine for /128 mask. Problem is other than /128 is sending wrong length value from Open Flow Plugin Side.

 
Below manual experimental was tried on OVS switch: 
 
Flow Added
sudo ovs-ofctl -O OpenFlow13 add-flow br-int "table=240, n_packets=0, n_bytes=0, priority=63010,icmp6,reg6=0x100/0xfffff00,icmp_type=134,icmp_code=0,ipv6_src=fe80:0:0:0:f816:3eff:fe18:bde2/64 actions=resubmit(,220)"
 
Programmed Flow:
cookie=0x0, duration=7.919s, table=240, n_packets=0, n_bytes=0, priority=63010,icmp6,reg6=0x100/0xfffff00,ipv6_src=fe80::/64,icmp_type=134,icmp_code=0 actions=resubmit(,220)
 
 
The above programmed flow only i am expecting to be programmed on OVS switch side when i am passing /64 CIDR value from application.But it is not working.
 
Please find attached email discussion with netvirt-dev and openflow-plugin-dev alias. Also please find required karaf logs ( https://drive.google.com/open?id=1Mk7qk26iWNC04lPL-TmXDLu-BiMT9FL2) and wireshark output for the /64 CIDR value.

 

NETVIRT DS Details: Config_Inventory_DS_Details.txt

 
Email_OpenflowPlugin_ Invalid length for IPv6 Address in OXM field - Reg.htmlIPv6_SourceMatch_Issue.pcap
 



 Comments   
Comment by Suja T [ 19/Jul/18 ]

I have analyzed this issue and uploaded few attachments.It requires little more analysis also.

Comment by Somashekhar Javalagi [ 16/Aug/18 ]

Hi Karthikeyan,

The ipv6 source address input should be added by aligning to the masking field, as unmasked bits are of no use. So while applications adding ipv6_src address, unused bits should be made zeros, before adding it to the config datastore.

 

Comment by Somashekhar Javalagi [ 20/Aug/18 ]

If we want to push a flow into config DS with an IPv6 address ipv6_src=fe80:0:0:0:f816:3eff:fe18:bde2 with 64 bits masked, then it should be specified by making rest 64 bits as zeros like  ipv6_src=fe80::/64

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