Stanford OpenFlow Forums: Table_id=0 - Stanford OpenFlow Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Table_id=0 Rate Topic: -----

#1 User is offline   c00L41R 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 21-March 17

Posted 22 March 2017 - 12:28 AM

Hi Guys

I create topo like this :
sudo mn --topo tree,2,3 --switch ovsk  --mac --controller remote

And i use Pox Controller to control :

sudo ~/pox/pox.py forwarding.l2_learning info.packet_dump samples.pretty_log log.level 


And test pingall
I collect Flow stats from S2 :
sudo ovs-ofctl dump-flows s2 

the output is :

cookie=0x0, duration=27.488s, table=0, n_packets=4, n_bytes=392, idle_timeout=1000, hard_timeout=3000, idle_age=24, priority=65535,icmp,in_port=1,vlan_tci=0x0000,dl_src=00:00:00:00:00:01,dl_dst=00:00:00:00:00:02,nw_src=10.0.0.1,nw_dst=10.0.0.2,nw_tos=0,icmp_type=8,icmp_code=0 actions=output:2
cookie=0x0, duration=27.482s, table=0, n_packets=4, n_bytes=392, idle_timeout=1000, hard_timeout=3000, idle_age=24, priority=65535,icmp,in_port=2,vlan_tci=0x0000,dl_src=00:00:00:00:00:02,dl_dst=00:00:00:00:00:01,nw_src=10.0.0.2,nw_dst=10.0.0.1,nw_tos=0,icmp_type=0,icmp_code=0 actions=output:1


Why Table_id =0 ??
How can i get Table_ID ?



i try to use
core.openflow.addListenerByName("TableStatsReceived",_handle_table)

and
n.connection.send(of.ofp_stats_request(body=of.ofp_table_stats()))


to collect Table_id , but Error

[openflow.of_01 ] [00-00-00-00-00-03 4] OpenFlow Error:
[00-00-00-00-00-03 4] Error: header:
[00-00-00-00-00-03 4] Error: version: 1
[00-00-00-00-00-03 4] Error: type: 1 (OFPT_ERROR)
[00-00-00-00-00-03 4] Error: length: 76
[00-00-00-00-00-03 4] Error: xid: 68
[00-00-00-00-00-03 4] Error: type: OFPET_BAD_REQUEST (1)
[00-00-00-00-00-03 4] Error: code: OFPBRC_BAD_LEN (6)
[00-00-00-00-00-03 4] Error: datalen: 64
[00-00-00-00-00-03 4] Error: 0000: 01 10 00 4c 00 00 00 44 00 03 00 00 00 00 00 00 |...L...D........|
[00-00-00-00-00-03 4] Error: 0010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
[00-00-00-00-00-03 4] Error: 0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
[00-00-00-00-00-03 4] Error: 0030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|



Do you have any suggestion ? Thanks you
0

#2 User is offline   USA Travel 

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 03-October 17

Posted 03 October 2017 - 06:04 AM

dont have any idea
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users