Networking Forums

Networking Forums > Computer Networking > Linux Networking > fast transmit of raw ethernet frames

Reply
Thread Tools Display Modes

fast transmit of raw ethernet frames

 
 
adnan.aziz@gmail.com
Guest
Posts: n/a

 
      06-13-2006, 09:16 PM
hi everyone,

i'm looking for a way to transmit raw ethernet frames quickly over
ethernet on a machine running linux.

help in any form - pointers to code, papers, better groups/boards to
post on - would be greatly appreciated,

i'm interested in this, because i want to benchmark a user-space
firewall i wrote, and haven't been able to stress it so far.

on the receive path, i've been very impressed with the performance
boost from using mmap and polling that is implemented in phil wood's
pcap (http://public.lanl.gov/cpw/), and it seems to me that something
similar should work on the transmit side.

i am willing to use a NIC dedicated to transmitting. i'd prefer a
pre-packaged solution, but am happy to try to implement ideas that
people might have. i'm fairly comfortable with C programming, less so
with kernel/driver hacking, but happy to try.

the best ideas i came across were in ncap (http://luca.ntop.org/),
which has some nice ideas, but their kernel fails to boot (and there's
no source code).

i've experimented with libnet (http://www.packetfactory.net/libnet/),
which essentially encapsulates sendto, but is limited to about 330,000
64-byte packets per second (~160 Mbps) on a 3 Ghz Pentium running Linux
2.6.16.14 with an e1000 GigE card on a 64 bit PCI-X 133 MHz bus.

i suspect something like a sendto call which takes a vector of packets
would speed things up quite a bit, but i can't figure out where sendto
is acually implemented, can anyone point me to source?

i've tried the tuning suggestions in
http://datatag.web.cern.ch/datatag/howto/tcp.html (basically, using
sysctl to allocate more buffer) but they didn't help very much.


cheers,
adnan

http://www.ece.utexas.edu/~adnan

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ethernet transmit errors Chris Linux Networking 3 10-14-2006 11:53 PM
Gigabit V Fast Ethernet Steven Campbell Home Networking 2 07-18-2005 09:09 PM
2 E1 bundled in only one fast ethernet port Sax Network Routers 0 02-16-2005 07:36 AM
captured ethernet frames Tom Brown Linux Networking 1 10-29-2004 02:00 AM
Realtek Fast Ethernet Adapter Grobbers Windows Networking 0 12-23-2003 12:49 PM



1 2 3 4 5 6 7 8 9 10 11