Thanks for the response. Following is the console output when switch
connects to the controller:
(linc@mininet-vm)1> 22:44:34.642 [info] Connected to controller
localhost:6633/0 using OFP v4
22:44:34.651 [debug] Received message from the controller:
{ofp_message,4,features_request,3545670527,{ofp_features_request}}
22:44:34.653 [debug] Sent message to controller:
{ofp_message,4,features_request,3545670527,{ofp_features_reply,<<8,0,39,147,137,242>>,0,0,255,0,[flow_stats,table_stats,port_stats,group_stats,queue_stats]}}
22:44:34.688 [debug] Received message from the controller:
{ofp_message,4,set_config,3545670528,{ofp_set_config,[],128}}
22:44:34.750 [debug] Received message from the controller:
{ofp_message,4,multipart_request,3545670529,{ofp_port_desc_request,[]}}
22:44:34.753 [debug] Sent message to controller:
{ofp_message,4,multipart_request,3545670529,{ofp_port_desc_reply,[],[{ofp_port,1,<<166,178,228,5,58,112>>,[80,111,114,116,49],[],[live],['100mb_fd',copper,autoneg],[copper,autoneg],['100mb_fd',copper,autoneg],['100mb_fd',copper,autoneg],5000,5000},{ofp_port,2,<<46,11,128,189,208,112>>,[80,111,114,116,50],[],[live],['100mb_fd',copper,autoneg],[copper,autoneg],['100mb_fd',copper,autoneg],['100mb_fd',copper,autoneg],5000,5000}]}}
22:44:34.755 [debug] Received message from the controller:
{ofp_message,4,flow_mod,3545670530,{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,no_buffer}]}]}}
22:44:34.755 [debug] Received message from the controller:
{ofp_message,4,flow_mod,3545670531,{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,no_buffer}]}]}}
======================================================================
Console output when a ping is attempted from h1 to h2 (h1 ping -c 3 h2):
(linc@mininet-vm)1>
(linc@mininet-vm)1> 22:46:49.705 [debug] Received message from the
controller:
{ofp_message,4,flow_mod,3545670532,{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,1>>,undefined},{ofp_field,openflow_basic,eth_src,false,<<202,51,213,199,235,138>>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
22:46:49.745 [debug] Received message from the controller:
{ofp_message,4,flow_mod,3545670533,{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,<<202,51,213,199,235,138>>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,1,no_buffer}]}]}}
22:46:49.746 [debug] Received message from the controller:
{ofp_message,4,packet_out,3545670534,{ofp_packet_out,no_buffer,controller,[{ofp_action_output,16,all,no_buffer}],<<255,255,255,255,255,255,202,51,213,199,235,138,8,6,0,1,8,0,6,4,0,1,202,51,213,199,235,138,10,0,0,1,0,0,0,0,0,0,10,0,0,2>>}}
22:46:49.749 [debug] Received message from the controller:
{ofp_message,4,flow_mod,3545670535,{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,<<"òðcfZ'">>,undefined}]},[{ofp_instruction_goto_table,6,1}]}}
22:46:49.788 [debug] Received message from the controller:
{ofp_message,4,flow_mod,3545670536,{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,<<"òðcfZ'">>,undefined}]},[{ofp_instruction_write_actions,4,[{ofp_action_output,16,2,no_buffer}]}]}}
22:46:49.789 [debug] Received message from the controller:
{ofp_message,4,packet_out,3545670537,{ofp_packet_out,no_buffer,controller,[{ofp_action_output,16,all,no_buffer}],<<202,51,213,199,235,138,242,240,99,102,90,39,8,6,0,1,8,0,6,4,0,2,242,240,99,102,90,39,10,0,0,2,202,51,213,199,235,138,10,0,0,1>>}}
22:46:50.701 [debug] Received message from the controller:
{ofp_message,4,packet_out,3545670538,{ofp_packet_out,no_buffer,controller,[{ofp_action_output,16,all,no_buffer}],<<255,255,255,255,255,255,202,51,213,199,235,138,8,6,0,1,8,0,6,4,0,1,202,51,213,199,235,138,10,0,0,1,0,0,0,0,0,0,10,0,0,2>>}}
22:46:51.700 [debug] Received message from the controller:
{ofp_message,4,packet_out,3545670539,{ofp_packet_out,no_buffer,controller,[{ofp_action_output,16,all,no_buffer}],<<255,255,255,255,255,255,202,51,213,199,235,138,8,6,0,1,8,0,6,4,0,1,202,51,213,199,235,138,10,0,0,1,0,0,0,0,0,0,10,0,0,2>>}}
========================================================================================
Controller messages (in verbose mode):
mininet@mininet-vm:~/ryu/ryu$ PYTHONPATH=. ./bin/ryu-manager --verbose
ryu/app/switch_git_08oct.py
loading app ryu/app/switch_git_08oct.py
loading app ryu.controller.ofp_handler
instantiating app ryu.controller.ofp_handler
instantiating app ryu/app/switch_git_08oct.py
BRICK ofp_event
PROVIDES EventOFPPacketIn TO {'L2Switch': set(['main'])}
PROVIDES EventOFPSwitchFeatures TO {'L2Switch': set(['config'])}
CONSUMES EventOFPPortDescStatsReply
CONSUMES EventOFPEchoRequest
CONSUMES EventOFPSwitchFeatures
CONSUMES EventOFPHello
CONSUMES EventOFPErrorMsg
BRICK L2Switch
CONSUMES EventOFPPacketIn
CONSUMES EventOFPSwitchFeatures
connected socket:<eventlet.greenio.GreenSocket object at 0x3006ad0>
address:('127.0.0.1', 58372)
hello ev <ryu.controller.ofp_event.EventOFPHello object at 0x3006f10>
move onto config mode
EVENT ofp_event->L2Switch EventOFPSwitchFeatures
switch features ev version: 0x4 msg_type 0x6 xid 0xd356a37f
OFPSwitchFeatures(auxiliary_id=0,capabilities=79,datapath_id=8796757002738,n_buffers=0,n_tables=255)
move onto main mode
EVENT ofp_event->L2Switch EventOFPPacketIn
installing new source mac received from port 1
EVENT ofp_event->L2Switch EventOFPPacketIn
installing new source mac received from port 2
EVENT ofp_event->L2Switch EventOFPPacketIn
EVENT ofp_event->L2Switch EventOFPPacketIn
Thanks,
Kasyap
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel