Thanks for your replies. However, I tried to run the tool without -f with no result (still sends packet at a much more higher rate than configured):
root@trafficgen:/home/fmayo/PF_RING/userland/examples# ./pfsend -i dna0 -n 0 -r 1 Sending packets on dna0 ################################################### # ERROR: You do not seem to have a valid DNA license for dna0. # ERROR: Please get one at http://shop.ntop.org/. ################################################### # We're now working in demo mode with packet capture # and transmission limited to 5 minutes ################################################### Using PF_RING v.5.2.1 Estimated CPU freq: 3657308000 Hz Number of 64-byte Packet Per Second at 1.00 Gbit/s: 1488095.24 TX rate: [current 13'219'585.56 pps/8.88 Gbps][average 13'219'585.56 pps/8.88 Gbps][total 13'219'612.00 pkts] TX rate: [current 13'283'603.71 pps/8.93 Gbps][average 13'251'595.69 pps/8.91 Gbps][total 26'504'119.00 pkts] Is it a bug or am I still missing something? Thanks! Best regards Fernando > From: [email protected] > Subject: Ntop-misc Digest, Vol 90, Issue 13 > To: [email protected] > Date: Thu, 15 Dec 2011 12:10:19 +0100 > > Send Ntop-misc mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://listgateway.unipi.it/mailman/listinfo/ntop-misc > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ntop-misc digest..." > > > Today's Topics: > > 1. pfsend with DNA (demo) issue (Fernando Mayo) > 2. Re: pfsend with DNA (demo) issue (Luca Deri) > 3. Re: pfsend with DNA (demo) issue (Alfredo Cardigliano) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Thu, 15 Dec 2011 12:00:43 +0100 > From: Fernando Mayo <[email protected]> > To: <[email protected]> > Subject: [Ntop-misc] pfsend with DNA (demo) issue > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > > Hi everyone, > > I just installed the more recent (demo) version of PF_RING DNA driver for > ixgbe, in order to make stress tests on a new router platform. > > Everything is working fine, except that pfsend utility is usually not sending > packet at the configured rate. Don't know if this is related to the demo > version of the driver... > > I am trying to transmit a capture file (containing five packets) at a rate of > 1 Gbps: on the first example shown below I am getting more than 7 Mpps which > is much more than the rate that pfsend utility is calculating (1488095 pps). > > On the second example, the rate fits to the calculated rate using exactly the > same parameters. > > Any ideas? > > First (unsuccessful) example: > > root@trafficgen:/home/fmayo/PF_RING/userland/examples# ./pfsend -i dna0 -f > /home/fmayo/traffic_test.cap -n 0 -r 1 > Sending packets on dna0 > ################################################### > # ERROR: You do not seem to have a valid DNA license for dna0. > # ERROR: Please get one at http://shop.ntop.org/. > ################################################### > # We're now working in demo mode with packet capture > # and transmission limited to 5 minutes > ################################################### > Using PF_RING v.5.2.1 > Estimated CPU freq: 3670602000 Hz > Number of 64-byte Packet Per Second at 1.00 Gbit/s: 1488095.24 > Read 5 packets from pcap file /home/fmayo/traffic_test.cap > TX rate: [current 7'627'165.74 pps/6.47 Gbps][average 7'627'165.74 pps/6.47 > Gbps][total 7'627'181.00 pkts] > TX rate: [current 7'638'615.12 pps/6.48 Gbps][average 7'632'890.61 pps/6.47 > Gbps][total 15'266'285.00 pkts] > TX rate: [current 7'722'359.60 pps/6.55 Gbps][average 7'662'714.28 pps/6.50 > Gbps][total 22'989'162.00 pkts] > ...... > > Second (successful) example: > > root@trafficgen:/home/fmayo/PF_RING/userland/examples# ./pfsend -i dna0 -f > /home/fmayo/traffic_test.cap -n 0 -r 1 > Sending packets on dna0 > ################################################### > # ERROR: You do not seem to have a valid DNA license for dna0. > # ERROR: Please get one at http://shop.ntop.org/. > ################################################### > # We're now working in demo mode with packet capture > # and transmission limited to 5 minutes > ################################################### > Using PF_RING v.5.2.1 > Estimated CPU freq: 3693248000 Hz > Number of 64-byte Packet Per Second at 1.00 Gbit/s: 1488095.24 > Read 5 packets from pcap file /home/fmayo/traffic_test.cap > TX rate: [current 1'463'372.07 pps/1.24 Gbps][average 1'463'372.07 pps/1.24 > Gbps][total 1'463'375.00 pkts] > TX rate: [current 1'402'045.15 pps/1.19 Gbps][average 1'432'708.30 pps/1.21 > Gbps][total 2'865'451.00 pkts] > ..... > > root@trafficgen:/proc/net/pf_ring/dev/dna0# cat > /proc/net/pf_ring/dev/dna0/info > Name: dna0 > Index: 10 > Address: 00:12:C0:80:15:3E > Polling Mode: DNA > Type: Ethernet > Family: Intel ixgbe 82599 > Max # TX Queues: 72 > # Used RX Queues: 1 > > > Thanks! > Best regards > Fernando Mayo > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://listgateway.unipi.it/pipermail/ntop-misc/attachments/20111215/5f9108f9/attachment-0001.htm> > > ------------------------------ > > Message: 2 > Date: Thu, 15 Dec 2011 12:06:31 +0100 > From: Luca Deri <[email protected]> > To: [email protected] > Subject: Re: [Ntop-misc] pfsend with DNA (demo) issue > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Fernando > pfsend is a test utility and we have not planned to make it a network testing > tool. However we're willing to improve it. The tool uses -r properly > basically with self-generated traffic (i.e. no -f). With -f it still assumes > that the pcap file contains 64 byte packets (it prints that on screen), that > does not seem to be your case. > > The demo driver is just a way to limit the tool duration and it has nothing > to do with your tests. > > Bottom line: feel free to patch the tool and adapt it at your needs. In that > case please share the code with us so we can commit it > > Thanks Luca > > > On Dec 15, 2011, at 12:00 PM, Fernando Mayo wrote: > > > Hi everyone, > > > > I just installed the more recent (demo) version of PF_RING DNA driver for > > ixgbe, in order to make stress tests on a new router platform. > > > > Everything is working fine, except that pfsend utility is usually not > > sending packet at the configured rate. Don't know if this is related to the > > demo version of the driver... > > > > I am trying to transmit a capture file (containing five packets) at a rate > > of 1 Gbps: on the first example shown below I am getting more than 7 Mpps > > which is much more than the rate that pfsend utility is calculating > > (1488095 pps). > > > > On the second example, the rate fits to the calculated rate using exactly > > the same parameters. > > > > Any ideas? > > > > First (unsuccessful) example: > > > > root@trafficgen:/home/fmayo/PF_RING/userland/examples# ./pfsend -i dna0 -f > > /home/fmayo/traffic_test.cap -n 0 -r 1 > > Sending packets on dna0 > > ################################################### > > # ERROR: You do not seem to have a valid DNA license for dna0. > > # ERROR: Please get one at http://shop.ntop.org/. > > ################################################### > > # We're now working in demo mode with packet capture > > # and transmission limited to 5 minutes > > ################################################### > > Using PF_RING v.5.2.1 > > Estimated CPU freq: 3670602000 Hz > > Number of 64-byte Packet Per Second at 1.00 Gbit/s: 1488095.24 > > Read 5 packets from pcap file /home/fmayo/traffic_test.cap > > TX rate: [current 7'627'165.74 pps/6.47 Gbps][average 7'627'165.74 pps/6.47 > > Gbps][total 7'627'181.00 pkts] > > TX rate: [current 7'638'615.12 pps/6.48 Gbps][average 7'632'890.61 pps/6.47 > > Gbps][total 15'266'285.00 pkts] > > TX rate: [current 7'722'359.60 pps/6.55 Gbps][average 7'662'714.28 pps/6.50 > > Gbps][total 22'989'162.00 pkts] > > ...... > > > > Second (successful) example: > > > > root@trafficgen:/home/fmayo/PF_RING/userland/examples# ./pfsend -i dna0 -f > > /home/fmayo/traffic_test.cap -n 0 -r 1 > > Sending packets on dna0 > > ################################################### > > # ERROR: You do not seem to have a valid DNA license for dna0. > > # ERROR: Please get one at http://shop.ntop.org/. > > ################################################### > > # We're now working in demo mode with packet capture > > # and transmission limited to 5 minutes > > ################################################### > > Using PF_RING v.5.2.1 > > Estimated CPU freq: 3693248000 Hz > > Number of 64-byte Packet Per Second at 1.00 Gbit/s: 1488095.24 > > Read 5 packets from pcap file /home/fmayo/traffic_test.cap > > TX rate: [current 1'463'372.07 pps/1.24 Gbps][average 1'463'372.07 pps/1.24 > > Gbps][total 1'463'375.00 pkts] > > TX rate: [current 1'402'045.15 pps/1.19 Gbps][average 1'432'708.30 pps/1.21 > > Gbps][total 2'865'451.00 pkts] > > ..... > > > > root@trafficgen:/proc/net/pf_ring/dev/dna0# cat > > /proc/net/pf_ring/dev/dna0/info > > Name: dna0 > > Index: 10 > > Address: 00:12:C0:80:15:3E > > Polling Mode: DNA > > Type: Ethernet > > Family: Intel ixgbe 82599 > > Max # TX Queues: 72 > > # Used RX Queues: 1 > > > > > > Thanks! > > Best regards > > Fernando Mayo > > _______________________________________________ > > Ntop-misc mailing list > > [email protected] > > http://listgateway.unipi.it/mailman/listinfo/ntop-misc > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://listgateway.unipi.it/pipermail/ntop-misc/attachments/20111215/78a57c17/attachment-0001.htm> > > ------------------------------ > > Message: 3 > Date: Thu, 15 Dec 2011 12:10:16 +0100 > From: Alfredo Cardigliano <[email protected]> > To: [email protected] > Subject: Re: [Ntop-misc] pfsend with DNA (demo) issue > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1" > > Fernando > pfsend is an example application and in actual implementation the -r > parameter works fine only without the -f option (it uses the -l parameter for > computing the transmit rate) > > Best regards > Alfredo > > On Dec 15, 2011, at 12:00 PM, Fernando Mayo wrote: > > > Hi everyone, > > > > I just installed the more recent (demo) version of PF_RING DNA driver for > > ixgbe, in order to make stress tests on a new router platform. > > > > Everything is working fine, except that pfsend utility is usually not > > sending packet at the configured rate. Don't know if this is related to the > > demo version of the driver... > > > > I am trying to transmit a capture file (containing five packets) at a rate > > of 1 Gbps: on the first example shown below I am getting more than 7 Mpps > > which is much more than the rate that pfsend utility is calculating > > (1488095 pps). > > > > On the second example, the rate fits to the calculated rate using exactly > > the same parameters. > > > > Any ideas? > > > > First (unsuccessful) example: > > > > root@trafficgen:/home/fmayo/PF_RING/userland/examples# ./pfsend -i dna0 -f > > /home/fmayo/traffic_test.cap -n 0 -r 1 > > Sending packets on dna0 > > ################################################### > > # ERROR: You do not seem to have a valid DNA license for dna0. > > # ERROR: Please get one at http://shop.ntop.org/. > > ################################################### > > # We're now working in demo mode with packet capture > > # and transmission limited to 5 minutes > > ################################################### > > Using PF_RING v.5.2.1 > > Estimated CPU freq: 3670602000 Hz > > Number of 64-byte Packet Per Second at 1.00 Gbit/s: 1488095.24 > > Read 5 packets from pcap file /home/fmayo/traffic_test.cap > > TX rate: [current 7'627'165.74 pps/6.47 Gbps][average 7'627'165.74 pps/6.47 > > Gbps][total 7'627'181.00 pkts] > > TX rate: [current 7'638'615.12 pps/6.48 Gbps][average 7'632'890.61 pps/6.47 > > Gbps][total 15'266'285.00 pkts] > > TX rate: [current 7'722'359.60 pps/6.55 Gbps][average 7'662'714.28 pps/6.50 > > Gbps][total 22'989'162.00 pkts] > > ...... > > > > Second (successful) example: > > > > root@trafficgen:/home/fmayo/PF_RING/userland/examples# ./pfsend -i dna0 -f > > /home/fmayo/traffic_test.cap -n 0 -r 1 > > Sending packets on dna0 > > ################################################### > > # ERROR: You do not seem to have a valid DNA license for dna0. > > # ERROR: Please get one at http://shop.ntop.org/. > > ################################################### > > # We're now working in demo mode with packet capture > > # and transmission limited to 5 minutes > > ################################################### > > Using PF_RING v.5.2.1 > > Estimated CPU freq: 3693248000 Hz > > Number of 64-byte Packet Per Second at 1.00 Gbit/s: 1488095.24 > > Read 5 packets from pcap file /home/fmayo/traffic_test.cap > > TX rate: [current 1'463'372.07 pps/1.24 Gbps][average 1'463'372.07 pps/1.24 > > Gbps][total 1'463'375.00 pkts] > > TX rate: [current 1'402'045.15 pps/1.19 Gbps][average 1'432'708.30 pps/1.21 > > Gbps][total 2'865'451.00 pkts] > > ..... > > > > root@trafficgen:/proc/net/pf_ring/dev/dna0# cat > > /proc/net/pf_ring/dev/dna0/info > > Name: dna0 > > Index: 10 > > Address: 00:12:C0:80:15:3E > > Polling Mode: DNA > > Type: Ethernet > > Family: Intel ixgbe 82599 > > Max # TX Queues: 72 > > # Used RX Queues: 1 > > > > > > Thanks! > > Best regards > > Fernando Mayo > > _______________________________________________ > > Ntop-misc mailing list > > [email protected] > > http://listgateway.unipi.it/mailman/listinfo/ntop-misc > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://listgateway.unipi.it/pipermail/ntop-misc/attachments/20111215/ea46fc71/attachment.htm> > > ------------------------------ > > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc > > > End of Ntop-misc Digest, Vol 90, Issue 13 > *****************************************
_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
