Hello, It seems that your switch probably does not support the type of the message being sent. Looking by the second byte in the error message I can see that the message is of the type OFPT_BARRIER_REQUEST.
I know that HP Pro curve switch doesn't support Barrier requests on OpenFlow 0.9. http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c03170243/c03170243.pdf But I can't ensure if it's true for the switch OpenFlow 1.0 firmware. Regards, Eder. On 5 July 2013 16:52, Kavit Shah <kavit.sh...@gmail.com> wrote: > Command line with log, my code and screen shot of the wireshrak are > attached in the text and png files. > > I am using HP Pro curve switch, i think it supports OF 1.0 spec. > > > ##################################### > ##################################### > > Important part of my code in the attached file > > ##################################### > ##################################### > > Questions: > > 1) sendToDPID function is not working the way I expect it to work. > According to me if that function works I should see packet out in wireshark. > > 2) Am I extracting dpid of the switch correctly ? > > 3) What is the reason for getting an error while switch connects to the > POX controller ? > > ERROR:openflow.of_01:[00-16-b9-ce-2f-40|800 1] OpenFlow Error: > [00-16-b9-ce-2f-40|800 1] Error: header: > [00-16-b9-ce-2f-40|800 1] Error: version: 1 > [00-16-b9-ce-2f-40|800 1] Error: type: 1 (OFPT_ERROR) > [00-16-b9-ce-2f-40|800 1] Error: length: 20 > [00-16-b9-ce-2f-40|800 1] Error: xid: 7 > [00-16-b9-ce-2f-40|800 1] Error: type: OFPET_BAD_REQUEST (1) > [00-16-b9-ce-2f-40|800 1] Error: code: OFPBRC_BAD_TYPE (1) > [00-16-b9-ce-2f-40|800 1] Error: datalen: 8 > [00-16-b9-ce-2f-40|800 1] Error: 0000: 01 12 00 08 00 00 00 07 > ........ > > > > _______________________________________________ > openflow-discuss mailing list > openflow-disc...@lists.stanford.edu > https://mailman.stanford.edu/mailman/listinfo/openflow-discuss > > -- Eder Leão Fernandes Bacharel em Ciências de Computação Instituto de Ciências Matemáticas e de Computação Universidade de São Paulo