- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Re: Incorrect port stats reported by openflow
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2017 05:44 AM
04-16-2017 05:44 AM
Incorrect port stats reported by openflow
Hi,
I am using Aruba 2930F. I am trying to collect port stats using Openflow. I have an instance (in3) with 3 ports (6,7 and 9). The following is the output of
show openflow instance in3 port-statistics
Port 7: Up
Status
Admin. Status : Enabled Flood : NA
Receive : Enabled Forward : Enabled
Packet_in : Enabled
Statistics
Collisions : 0
Rx Packets : 4294967388 Tx Packets : 4294967393
Rx Bytes : 339302431332 Tx Bytes : 16927
Rx Dropped : 0 Tx Dropped : 0
Rx Errors : 0 Tx Errors : 0
Frame Errors : 0
CRC Errors : 0
Overrun Errors : 0
Port 8: Up
Status
Admin. Status : Enabled Flood : NA
Receive : Enabled Forward : Enabled
Packet_in : Enabled
Statistics
Collisions : 0
Rx Packets : 4294967386 Tx Packets : 4294967429
Rx Bytes : 14790 Tx Bytes : 19792
Rx Dropped : 0 Tx Dropped : 0
Rx Errors : 0 Tx Errors : 0
Frame Errors : 0
CRC Errors : 0
Overrun Errors : 0
Port 9: Up
Status
Admin. Status : Enabled Flood : NA
Receive : Enabled Forward : Enabled
Packet_in : Enabled
Statistics
Collisions : 0
Rx Packets : 4294967326 Tx Packets : 4294967428
Rx Bytes : 6540 Tx Bytes : 339302434828
Rx Dropped : 0 Tx Dropped : 0
Rx Errors : 0 Tx Errors : 0
Frame Errors : 0
CRC Errors : 0
Overrun Errors : 0
S1(config)# sh interface 9
Status and Counters - Port Counters for port 9
Name :
MAC Address : e0071b-c4c7f7
Link Status : Up
Port Enabled : Yes
Totals (Since boot or last clear) :
Bytes Rx : 6,982 Bytes Tx : 20,329
Unicast Rx : 0 Unicast Tx : 0
Bcast/Mcast Rx : 32 Bcast/Mcast Tx : 148
Errors (Since boot or last clear) :
FCS Rx : 0 Drops Tx : 0
Alignment Rx : 0 Collisions Tx : 0
Runts Rx : 0 Late Colln Tx : 0
Giants Rx : 0 Excessive Colln : 0
Total Rx Errors : 0 Deferred Tx : 0
Others (Since boot or last clear) :
Discard Rx : 0 Out Queue Len : 0
Unknown Protos : 0
Rates (5 minute weighted average) :
Total Rx (bps) : 0 Total Tx (bps) : 0
Unicast Rx (Pkts/sec) : 0 Unicast Tx (Pkts/sec) : 0
B/Mcast Rx (Pkts/sec) : 0 B/Mcast Tx (Pkts/sec) : 0
Utilization Rx : 0 % Utilization Tx : 0 % However, the stats I get when I send a port_stat_req msg does not match these values.
I am trying to attach the port_stat_reply msg, however, the portal is not accepting any file extension (I tried .png, .jpg, .jpeg ... etc, and nothing works I although I used to be able to upload such files).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2017 03:09 AM
04-17-2017 03:09 AM
Re: Incorrect port stats reported by openflow
Hello Enas,
Do the statistics returned in the port statistics response diverge a lot from what is returned in the CLI.
Can you please paste the dissected OpenFlow port stats reponse for a couple of ports using the 'insert-code' tag to workaround the issue with attaching files?
Thanks!
Abhay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2017 03:24 AM - edited 04-17-2017 03:28 AM
04-17-2017 03:24 AM - edited 04-17-2017 03:28 AM
Re: Incorrect port stats reported by openflow
Thanks Abhay for your reply. Yes, here you go:
OpenFlow (LOXI)
version: 4
type: OFPT_STATS_REPLY (19)
length: 464
xid: 261
stats_type: OFPST_PORT (4)
flags: Unknown (0x00000000)
of_port_stats_entry list
of_port_stats_entry
port_no: 9
rx_packets: 19259849
tx_packets: 397641674
rx_bytes: 1833430896
tx_bytes: 341390900444
rx_dropped: 0
tx_dropped: 7681396
rx_errors: 0
tx_errors: 0
rx_frame_err: 0
rx_over_err: 0
rx_crc_err: 0
collisions: 0
duration_sec: 721943029
duration_nsec: 212403479
of_port_stats_entry
port_no: 8
rx_packets: 2344640
tx_packets: 42320
rx_bytes: 3488273582
tx_bytes: 5059128
rx_dropped: 0
tx_dropped: 0
rx_errors: 0
tx_errors: 0
rx_frame_err: 0
rx_over_err: 0
rx_crc_err: 0
collisions: 0
duration_sec: 721943029
duration_nsec: 1064044055
of_port_stats_entry
port_no: 4294967294
rx_packets: 0
tx_packets: 0
rx_bytes: 0
tx_bytes: 0
rx_dropped: 0
tx_dropped: 0
rx_errors: 0
tx_errors: 0
rx_frame_err: 0
rx_over_err: 0
rx_crc_err: 0
collisions: 0
duration_sec: 721943029
duration_nsec: 1065092631
of_port_stats_entry
port_no: 7
rx_packets: 403029407
tx_packets: 19285451
rx_bytes: 339817282090
tx_bytes: 1837097733
rx_dropped: 0
tx_dropped: 0
rx_errors: 0
tx_errors: 0
rx_frame_err: 0
rx_over_err: 0
rx_crc_err: 0
collisions: 0
duration_sec: 721943029
duration_nsec: 1916733207Notice for example the txDropped and rxBytes in port 9.
Thanks,
Enas
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2017 03:42 AM
04-23-2017 03:42 AM
Re: Incorrect port stats reported by openflow
Hello Enas,
We haven't been able to recreate the issue in our lab.
Can you please share some more details on your setup? The output of the running-configuration would be of help to us to mimic the same configuration.
From the details you have shared, what you are trying to convey is that both the "show openflow instance <x> port-statistics" and the OpenFlow port statistics reponse have incorrect data. Is that right?
How much of traffic has passed through these interfaces and is the output of the "show interface <x>" correct in your setup?
Is the port also carrying traffic for other VLANs that are not members of OpenFlow?
Thanks!
Abhay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2017 05:59 AM
04-23-2017 05:59 AM
Re: Incorrect port stats reported by openflow
Hi Abhay,
I ran more experiments and I think the problem occurs after a clear statistics command. The port statistics are cleared on the switch, however, OpenFlow still reports the old statistics. Can you try this scenario at your lab?
Thanks,
Enas