Hi Pedro zsend with standard drivers uses one syscall / packet copy per packet, probably tcpreplay uses a faster method, did you also try with pfsend? However for line-rate packet transmission please use ZC drivers.
Alfredo > On 28 Aug 2015, at 16:08, pmneveshi5 <[email protected]> wrote: > > Hello, > > I am testing the speed of zsend with normal drivers (non ZC). > I am getting very slow rates 0.01 Gbps. > With tcpreplay I get 557.71 Mbps > > What could be the problem ? > > Thanks, > > Pedro > > > *** info and tests > > > root@ronin02:~/PF_RING/userland/examples_zc# ./zsend -i eth0 -c 1 -l 500 > Sending packets to eth0 > ========================= > Absolute Stats: 2'952 pkts - 1'546'848 bytes > ========================= > > ========================= > Absolute Stats: 5'647 pkts - 2'959'028 bytes > Actual Stats: 2'694.53 pps - 0.01 Gbps > ========================= > > ========================= > Absolute Stats: 8'342 pkts - 4'371'208 bytes > Actual Stats: 2'693.02 pps - 0.01 Gbps > ========================= > > root@ronin02:~/PF_RING/userland/examples_zc# ethtool -i eth0 > driver: vmxnet3 > version: 1.2.0.0-k-NAPI > firmware-version: > bus-info: 0000:03:00.0 > supports-statistics: yes > supports-test: no > supports-eeprom-access: no > supports-register-dump: yes > supports-priv-flags: no > root@ronin02:~/PF_RING/userland/examples_zc# > root@ronin02:~/PF_RING/userland/examples_zc# ethtool eth0 > Settings for eth0: > Supported ports: [ TP ] > Supported link modes: 1000baseT/Full > 10000baseT/Full > Supported pause frame use: No > Supports auto-negotiation: No > Advertised link modes: Not reported > Advertised pause frame use: No > Advertised auto-negotiation: No > Speed: 10000Mb/s > Duplex: Full > Port: Twisted Pair > PHYAD: 0 > Transceiver: internal > Auto-negotiation: off > MDI-X: Unknown > Supports Wake-on: uag > Wake-on: g > Link detected: yes > root@ronin02:~/PF_RING/userland/examples_zc# > > > > > > > supports-priv-flags: no > root@ronin02:~/PF_RING/userland/examples_zc# tcpreplay -i eth0 -tK --loop 50 > --unique-ip /root/smallFlows.pcap > File Cache is enabled > Actual: 713050 packets (460826550 bytes) sent in 6.06 seconds. > Rated: 69714812.0 Bps, 557.71 Mbps, 107871.70 pps > Flows: 60450 flows, 9145.00 fps, 712150 flow packets, 900 non-flow > Statistics for network device: eth0 > Attempted packets: 713050 > Successful packets: 713050 > Failed packets: 0 > Truncated packets: 0 > Retried packets (ENOBUFS): 0 > Retried packets (EAGAIN): 0 > root@ronin02:~/PF_RING/userland/examples_zc# > > root@ronin02:~/PF_RING/userland/examples_zc# tcpreplay -V > tcpreplay version: 4.1.0 (build git:v4.1.0) > Copyright 2013-2014 by Fred Klassen <tcpreplay at appneta dot com> - AppNeta > Inc. > Copyright 2000-2012 by Aaron Turner <aturner at synfin dot net> > The entire Tcpreplay Suite is licensed under the GPLv3 > Cache file supported: 04 > Not compiled with libdnet. > Compiled against libpcap: 1.6.0-PRE-GIT_2015_07_28 > 64 bit packet counters: enabled > Verbose printing via tcpdump: enabled > Packet editing: disabled > Fragroute engine: disabled > Default injection method: PF_PACKET send() > Optional injection method: Quick TX > Optional injection method: netmap > root@ronin02:~/PF_RING/userland/examples_zc# > > _______________________________________________ > Ntop-misc mailing list > [email protected] > http://listgateway.unipi.it/mailman/listinfo/ntop-misc
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Ntop-misc mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-misc
