Re: Communicating on Ethernet Layer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 3 Jun 2003 21:21 pm, Andreas Schaufler wrote:
> Hello,
>
> I want to do some performance measuring on Linux' networking capabilities
> on the ethernet level.
>
> My idea is the following:
>
> I got 2 Linux Boxes wired over a ethernet switch. (no other box is
> connected to the switch). On one box I would write a daemon that is
> listening on the network interface. On the other box a program is sending
> an ethernet packet to the other box, which then replies the same packet.
> This is done several thousand times and the average is then used as the
> result of the measuring. By varieing the amount of user data in the
> ethernet package it would be possible to show some scaling figures.
Microbenchmarks rarely show anything meaningful, but whatever takes your 
fancy.

> But how can I communicate on the ethernet level ? Is there any special
> device that could be used ?
Two options:
1. just use a socket with SOCK_RAW
2. direct control (using stuff like Libnet - 
http://www.packetfactory.net/projects/libnet/ and libpcap - 
http://www.tcpdump.org/, or the equivalent underlying kernel mechanisms if 
the library overhead worries you that much).

I'm sure that there will be other options too. Depends exactly what you are 
trying to test.

Brad
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+3QqbW6pHgIdAuOMRAtUsAJsEHizmf6MwTYxpsrTnRy2ypn2Y6wCfdUbK
S9d+bCkNf27wk5kCPLIwOj0=
=jt33
-----END PGP SIGNATURE-----
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux