On Mon, Jul 4, 2011 at 5:48 AM, Adam Katz <[email protected]> wrote: > Greetings, > > I'm attempting to use tc to shape traffic sent using tcpreplay, I'm > doing this for a research project. I have a classful scheduler with > several classes, to this scheduler I attach a few filters based on > destination tcp ports. > > My problem is this: When sending packets using a normal userland > socket, the filters work and I see the appropriate traffic entering > the right class. BUT when sending packets with tcpreplay, all packets > end up in the scheduler's default band as if the filters simply refuse > to work. > > This seems related to the "traffic not seen by iptables" thread where > packets skipped iptables... > > I suspect that in my case, the packets simply skip the kernel part > where the filters are located. Is there any solution to this problem?
I assume the TC filters are running on the same box as tcpreplay? If so, that the problem is that where packets are injected is below the TCP/IP stack, right above the NIC driver and iptables/traffic shapping happens above this point and hence never "sees" the traffic sent by tcpreplay. I'm not aware of any workaround at this time. -- 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" ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 _______________________________________________ Tcpreplay-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
