Sounds like you're trying to run tcpreplay on the same box as the target. This doesn't work, because tcpreplay bypasses the host's routing table and sends traffic *out* the interface. Packets are never "seen" by the IP stack and so never get delivered to your daemon.
On Thu, Sep 27, 2012 at 10:35 AM, cwl <cwl...@gmail.com> wrote: > Hi Guys, > > Having some trouble getting a simple multicast transmission replayed. > > Here is the scenario(eth0 == 10.0.2.15), all on the same host: > > 1. I start tcpdump with: > tcpdump -i eth0 -s0 udp dst port 1111 -w mdump2.pcap > > 2. I start my multicast subscribing app: > ./mdump 224.192.16.1 1111 10.0.2.15 > > 3. I start the sender: > ./msend 224.192.16.1 1111 10 10.0.2.15 > > This works fine. > > Then I try to replay the setup with tcpreplay: > > 1. tcpdump -i eth0 -s0 udp dst port 1111 -w tcpreplay.pcap > 2. ./mdump 224.192.16.1 1111 10.0.2.15 > 3. tcpreplay -i eth0 /tmp/mdump2.pcap > > > The network setup is identical(tcpreplay just taking the place of msend), I > played around with tcpprep & tcprewrite I couldn't see anything I would need > to do. The correct source/dest MAC addresses show up in the capture. > > I don't see any errors/drops in /var/log/messages, or netstat -u. Although > the packets from tcpreplay are showing up in tcpdump, they do not increase > the packet count of netstat -s. > > I have compared the msend capture vs the tcpreplay capture, and they are > virtually identical, I am really stumped. I am sure it something simple. > > Details > ---------- > > root@andy-VirtualBox:/tmp/mtools# tcpreplay -V > tcpreplay version: 3.4.3 (build 2375) > Copyright 2001-2009 by Aaron Turner <aturner at synfin dot net> > Cache file supported: 04 > Not compiled with libdnet. > Compiled against libpcap: 1.1.1 > 64 bit packet counters: enabled > Verbose printing via tcpdump: enabled > Packet editing: disabled > Fragroute engine: disabled > Injection method: PF_PACKET send() > > This was captured on virtualbox/ubuntu 12, but I have also tried on CentOS 6 > & RHEL 6 with real hardware and identical results. > > I have attached my captures, if there is anything else I can provide please > let me know. > > Any idea's/suggestions would be very we received! > > Thanks, > > Andrew > > > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://ad.doubleclick.net/clk;258768047;13503038;j? > http://info.appdynamics.com/FreeJavaPerformanceDownload.html > _______________________________________________ > 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 -- Aaron Turner http://synfin.net/ Twitter: @synfinatic http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin "carpe diem quam minimum credula postero" ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html _______________________________________________ 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