I have a video stream I am attempting to send over UDP. It should originally have been playing at 3.75Mbps (payload; about 3.88Mbps or so wire rate.) When I play it back, tcpreplay reports:
# tcpreplay -i eth1 /tmp/replay.pcap sending out eth1 processing file: /tmp/replay.pcap Actual: 31823 packets (43215634 bytes) sent in 127.35 seconds Rated: 339345.4 bps, 2.59 Mbps, 249.89 pps Statistics for network device: eth1 Attempted packets: 31823 Successful packets: 31823 Failed packets: 0 Retried packets (ENOBUFS): 0 Retried packets (EAGAIN): 0 If I try to force it to a faster speed (I don't know whether the original stream really was going out at 3.75Mbps), it returns the "Rated" line showing the same 2.59 Mbps. The three things I tried were -x 3 -M 3.75 -p 365 all had the same result (2.59Mbps). If I send with -t, I get # tcpreplay -t -i eth1 /tmp/replay.pcap sending out eth1 processing file: /tmp/replay.pcap Actual: 31823 packets (43215634 bytes) sent in 0.51 seconds Rated: 84736536.0 bps, 646.49 Mbps, 62398.04 pps Statistics for network device: eth1 Attempted packets: 31823 Successful packets: 31823 Failed packets: 0 Retried packets (ENOBUFS): 0 Retried packets (EAGAIN): 0 The pcap file contains only UDP packets going from 10.220.250.28 (port 0) to 192.168.248.189 port 32800. No other packets are in the file. No packets have identical timestamps. My pcap file was rewritten with tcprewrite -i /tmp/watched.pkt -o /tmp/replay.pcap --enet-dmac=00:02:02:09:65:A5 --enet-smac=52:fe:2b:5f:1a:9e --pnat=10.220.250.238/32:192.168.248.189/32 # tcpreplay -V tcpreplay version: 3.4.3 (build 2375) Copyright 2001-2009 by Aaron Turner <aturner at synfin dot net> Cache file supported: 04 Compiled against libdnet: 1.11 Compiled against libpcap: 0.9.4 64 bit packet counters: enabled Verbose printing via tcpdump: enabled Packet editing: disabled Fragroute engine: enabled Injection method: PF_PACKET send() # rpm -q centos-release centos-release-5-0.0.el5.centos.2 This is running inside a Xen VM, so the network device is virtual. I'm not sure what the physical device is. I can dig that up if needed. The VM can send at 646 Mbps, though. Packet dump is available at <http://0xdeadbeef.net/~sfink/uploads/replay.pcap.bz2>. Warning: it's over a fairly slow uplink. The file is 12MB. (Damn! bzip2 did twice as well on that file as gzip -9!) ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Tcpreplay-users mailing list Tcpreplay-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support