rochafelippe / ostinato

Automatically exported from code.google.com/p/ostinato
GNU General Public License v3.0
0 stars 0 forks source link

No transmit packet counters on client GUI with PF_RING DNA #141

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Compile ostinato source with PF_RING support
2.load PF_RING 6.0.2 kernel module and 10G DNA driver for Intel 82599
3.Run Ostinato and setup IPv4 stream on DNA interface

What is the expected output? What do you see instead?
I would expect transmitted FPS counter to work.  No counters work

What version and revision of the product are you using (available in the
About dialog)? On what operating system?
Ubuntu 14.04 PF_RING 6.0.2 Ostinato .6 from source clone.

Please provide any additional information below.

Downstream switch showing packets received from Ostinato

n3k-1# show interface ethernet 1/51
Ethernet1/51 is up
  Hardware: 1000/10000 Ethernet, address: c08c.6098.4f9a (bia c08c.6098.4f9a)
  Description: UCS C240 M3 eth4 (openstack-1)
  MTU 1500 bytes, BW 10000000 Kbit, DLY 10 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation ARPA
  Port mode is access
  full-duplex, 10 Gb/s, media type is 10G
  Beacon is turned off
  Input flow-control is off, output flow-control is off
  Rate mode is dedicated
  Switchport monitor is off
  EtherType is 0x8100
  Last link flapped 01:22:53
  Last clearing of "show interface" counters never
  30 seconds input rate 9800236288 bits/sec, 1225029536 bytes/sec, 875014 packet
s/sec

Original issue reported on code.google.com by Brendana...@gmail.com on 11 Nov 2014 at 7:19

Attachments:

GoogleCodeExporter commented 9 years ago
- Can you elaborate on how you compiled PF_RING DNA support into Ostinato?
- Please attach startup console log of drone for analysis

Original comment by pstav...@gmail.com on 12 Nov 2014 at 3:04

GoogleCodeExporter commented 9 years ago
I compiled the PF_RING support be editing the obstinate/server/drone.pro with 
the following

LIBS += ~/PF_RING-6.0.2/userland/libpcap/libpcap.a -lpfring -lnuma -lrt

attached is startup log.

Original comment by Brendana...@gmail.com on 15 Nov 2014 at 3:26

Attachments:

GoogleCodeExporter commented 9 years ago
<snip>
###################################################
# ERROR: You do not seem to have a valid DNA license for dna0 [Intel 10 Gbit 
ixgbe 82599-based].
# We're now working in demo mode with packet capture
# and transmission limited to 0 day(s) 00:05:00
###################################################
</snip>

I see the above in the log - not sure if it is because of that. But as per the 
msg you do have 5mins worth of transmit even without a valid license - you did 
click on "apply" and "start transmit" - right?

Ostinato has different methods to collect stats on Linux and I see that it is 
using the netlink method (the preferred method) in your case. You might want to 
check with the pf_ring dna folks that netlink stats will work as expected with 
pf_ring dna.

Check /proc/net/dev and see if you see stats increasing for the pf_ring dna 
ports. If so, you can try the following change -
You could also 
void LinuxPort::StatsMonitor::run()
{
-    if (netlinkStats() < 0)
+    //if (netlinkStats() < 0)
    {
        qDebug("netlink stats not available - using /proc stats");
        procStats();
    }
}

Original comment by pstav...@gmail.com on 19 Nov 2014 at 3:04