Hi, I am using LINC switch with OpenFlow 1.3 and modified version of Ryu controller program l2_switch_v1_3.py to forward icmp messages.
In the LINC console I am able to see the flow_mod messages with eth_type,
ip_pro, ipv4_src and ipv4_dst values but if I use
"linc_us4_flow:get_flow_table(0,0)." to see the flow table entries it shows
only the basic values eth_src and eth_dst. I have attached the ryu program
and pasted the LINC console output.
00:45:44.985 [info] Connected to controller localhost:6633/0 using OFP v4
00:45:44.986 [debug] Received message from the controller:
{ofp_message,4,features_request,1564942078,{ofp_features_request}}
00:45:44.988 [debug] Received message from the controller:
{ofp_message,4,set_config,1564942079,{ofp_set_config,[],128}}
00:45:45.028 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942080,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,0,65535,any,any,[],{ofp_match,[]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,controller,65535}]}]}}
00:45:45.029 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942081,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,0,65535,any,any,[],{ofp_match,[]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,controller,65535}]}]}}
00:45:50.951 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942082,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,2>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:50.952 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942083,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,2,65535}]}]}}
00:45:51.956 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942084,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,2>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:51.957 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942085,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,2,65535}]}]}}
00:45:52.955 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942086,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,2>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:52.956 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942087,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,2,65535}]}]}}
00:45:53.956 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942088,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,2>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:53.957 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942089,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,2,65535}]}]}}
00:45:54.956 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942090,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,2>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:54.957 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942091,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,2,65535}]}]}}
00:45:55.957 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942092,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,123,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,in_port,false,<<0,0,0,2>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:55.996 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942093,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,123,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,2,65535}]}]}}
00:45:55.997 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942094,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,2>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:55.998 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942095,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,20>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,40,221,38>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,2,65535}]}]}}
00:45:56.360 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942096,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,3>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,30>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,48,168,137>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:56.361 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942097,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,30>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,48,168,137>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,3,65535}]}]}}
00:45:57.363 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942098,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,3>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,30>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,48,168,137>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:57.364 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942099,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,30>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,48,168,137>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,3,65535}]}]}}
00:45:58.363 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942100,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,3>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,30>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,48,168,137>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:58.364 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942101,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,30>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,48,168,137>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,3,65535}]}]}}
00:45:59.363 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942102,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,3>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,30>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,48,168,137>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
00:45:59.364 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942103,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,1,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ipv4_dst,false,<<192,168,1,30>>,undefined},{ofp_field,openflow_basic,eth_dst,false,<<0,22,62,48,168,137>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,3,65535}]}]}}
00:46:00.362 [debug] Received message from the controller:
{ofp_message,4,flow_mod,1564942104,{ofp_flow_mod,<<0,0,0,0,0,0,0,0>>,<<0,0,0,0,0,0,0,0>>,0,add,0,0,126,65535,any,any,[],{ofp_match,[{ofp_field,openflow_basic,ip_proto,false,<<1>>,undefined},{ofp_field,openflow_basic,eth_type,false,<<8,0>>,undefined},{ofp_field,openflow_basic,in_port,false,<<0,0,0,3>>,undefined},{ofp_field,openflow_basic,ipv4_src,false,<<192,168,1,30>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<0,22,62,48,168,137>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
(linc@roadrunner)1> linc_us4_flow:get_flow_table(0,0).
[{flow_entry,{123,#Ref<0.0.0.1174>},
123,
{ofp_match,[{ofp_field,openflow_basic,in_port,false,
<<0,0,0,1>>,
undefined},
{ofp_field,openflow_basic,eth_src,false,
<<104,148,35,128,15,58>>,
undefined}]},
<<0,0,0,0,0,0,0,0>>,
[],
{1370,843164,454664},
{infinity,0,0},
{infinity,0,0},
[{ofp_instruction_goto_table,6,1}]},
{flow_entry,{123,#Ref<0.0.0.1149>},
123,
{ofp_match,[{ofp_field,openflow_basic,in_port,false,
<<0,0,0,3>>,
undefined},
{ofp_field,openflow_basic,eth_src,false,
<<0,22,62,48,168,137>>,
undefined}]},
<<0,0,0,0,0,0,0,0>>,
[],
{1370,843161,365740},
{infinity,0,0},
{infinity,0,0},
[{ofp_instruction_goto_table,6,1}]},
{flow_entry,{123,#Ref<0.0.0.1086>},
123,
{ofp_match,[{ofp_field,openflow_basic,in_port,false,
<<0,0,0,2>>,
undefined},
{ofp_field,openflow_basic,eth_src,false,
<<0,22,62,40,221,38>>,
undefined}]},
<<0,0,0,0,0,0,0,0>>,
[],
{1370,843155,958311},
{infinity,0,0},
{infinity,0,0},
[{ofp_instruction_goto_table,6,1}]},
{flow_entry,{0,#Ref<0.0.0.1027>},
0,
{ofp_match,[]},
<<0,0,0,0,0,0,0,0>>,
[],
{1370,843145,28918},
{infinity,0,0},
{infinity,0,0},
[{ofp_instruction_write_actions,4,
[{ofp_action_output,16,controller,65535}]}]}]
(linc@roadrunner)2> linc_us4_flow:get_flow_table(0,1).
[{flow_entry,{123,#Ref<0.0.0.1177>},
123,
{ofp_match,[{ofp_field,openflow_basic,eth_dst,false,
<<104,148,35,128,15,58>>,
undefined}]},
<<0,0,0,0,0,0,0,0>>,
[],
{1370,843164,493096},
{infinity,0,0},
{infinity,0,0},
[{ofp_instruction_write_actions,4,
[{ofp_action_output,16,1,65535}]}]},
{flow_entry,{123,#Ref<0.0.0.1152>},
123,
{ofp_match,[{ofp_field,openflow_basic,eth_dst,false,
<<0,22,62,48,168,137>>,
undefined}]},
<<0,0,0,0,0,0,0,0>>,
[],
{1370,843161,405407},
{infinity,0,0},
{infinity,0,0},
[{ofp_instruction_write_actions,4,
[{ofp_action_output,16,3,65535}]}]},
{flow_entry,{123,#Ref<0.0.0.1089>},
123,
{ofp_match,[{ofp_field,openflow_basic,eth_dst,false,
<<0,22,62,40,221,38>>,
undefined}]},
<<0,0,0,0,0,0,0,0>>,
[],
{1370,843155,997326},
{infinity,0,0},
{infinity,0,0},
[{ofp_instruction_write_actions,4,
[{ofp_action_output,16,2,65535}]}]},
{flow_entry,{0,#Ref<0.0.0.1030>},
0,
{ofp_match,[]},
<<0,0,0,0,0,0,0,0>>,
[],
{1370,843145,29572},
{infinity,0,0},
{infinity,0,0},
[{ofp_instruction_write_actions,4,
[{ofp_action_output,16,controller,65535}]}]}]
(linc@roadrunner)3>
Could you please, tell me what should be done to update into the flowtable.
Thanks
Gandhi
l2_switch_v1_3icmp1.py
Description: Binary data
------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j
_______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
